www.mooseframework.org
AddVariableAction.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
15 #ifndef ADDVARIABLEACTION_H
16 #define ADDVARIABLEACTION_H
17 
18 // MOOSE includes
19 #include "Action.h"
20 #include "OutputInterface.h"
21 
22 #include "libmesh/fe_type.h"
23 
24 // Forward declerations
25 class AddVariableAction;
26 
27 template <>
29 
34 {
35 public:
40 
41  virtual void act() override;
42 
48 
54 
55 protected:
61  void addVariable(std::string & var_name);
62 
70 
75  std::set<SubdomainID> getSubdomainIDs();
76 
78  FEType _fe_type;
79 
82 
84  static const Real _abs_zero_tol;
85 };
86 
87 #endif // ADDVARIABLEACTION_H
AddVariableAction(InputParameters params)
Class constructor.
InputParameters validParams< AddVariableAction >()
std::set< SubdomainID > getSubdomainIDs()
Get the block ids from the input parameters.
bool _scalar_var
True if the variable being created is a scalar.
virtual void act() override
Adds nonlinear variable.
FEType _fe_type
FEType for the variable being created.
A class to provide an common interface to objects requiring "outputs" option.
void addVariable(std::string &var_name)
Adds a nonlinear variable to the system.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Base class for actions.
Definition: Action.h:39
static MooseEnum getNonlinearVariableFamilies()
Get the possible variable families.
static MooseEnum getNonlinearVariableOrders()
Get the possible variable orders.
static const Real _abs_zero_tol
Absolute zero tolerance.
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
Definition: MooseEnum.h:37
void createInitialConditionAction()
Create the action to generate the InitialCondition object.