www.mooseframework.org
ConservedAction.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 #ifndef CONSERVEDACTION_H
8 #define CONSERVEDACTION_H
9 
10 // MOOSE includes
11 #include "Action.h"
12 
13 #include "libmesh/fe_type.h"
14 
15 // Forward declaration
16 class ConservedAction;
17 
18 template <>
19 InputParameters validParams<ConservedAction>();
20 
21 class ConservedAction : public Action
22 {
23 public:
24  ConservedAction(const InputParameters & params);
25 
26  virtual void act() override;
27 
28 protected:
30  enum class SolveType
31  {
32  DIRECT,
35  };
37  std::string _chempot_name;
41  const NonlinearVariableName _var_name;
43  FEType _fe_type;
45  const Real _scaling;
46 };
47 
48 #endif // CONSERVEDACTION_H
FEType _fe_type
FEType for the variable being created.
virtual void act() override
const Real _scaling
Scaling parameter.
std::string _chempot_name
Name of chemical potential variable for split solves.
SolveType
Type of solve.
const NonlinearVariableName _var_name
Name of the variable being created.
const SolveType _solve_type
Type of solve to use used in the action.
InputParameters validParams< ConservedAction >()
ConservedAction(const InputParameters &params)