14 #include "libmesh/fe_type.h" 26 virtual void act()
override;
58 const bool is_fv =
false,
59 const bool is_array =
false);
105 std::function<void(FEProblemBase &, const std::string &, const std::string &, InputParameters &)>
static InputParameters validParams()
std::set< SubdomainID > getSubdomainIDs()
Get the block ids from the input parameters.
virtual std::string varName() const
Return the name of the nonlinear variable to be created.
bool _scalar_var
True if the variable being created is a scalar.
virtual void act() override
Method to add objects to the simulation or perform other setup tasks.
static MooseEnum getNonlinearVariableFamilies()
Get the possible variable families.
libMesh::FEType _fe_type
FEType for the variable being created.
bool _fv_var
True if the variable being created is finite volume.
static MooseEnum getNonlinearVariableOrders()
Get the possible variable orders.
unsigned int _components
Number of components for an array variable.
void createInitialConditionAction(const std::vector< Real > &value)
Create the action to generate the InitialCondition object.
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
static std::string variableType(const libMesh::FEType &fe_type, const bool is_fv=false, const bool is_array=false)
Determines a variable type.
const std::string _name
The name of this class.
static libMesh::FEType feType(const InputParameters ¶ms)
determine the FEType by examining family and order in the provided parameters
virtual void init()
Initialize the action's member variables.
void addVariable(const std::string &var_name)
Adds a nonlinear variable to the system.
AddVariableAction(const InputParameters ¶ms)
static std::string determineType(const libMesh::FEType &fe_type, unsigned int components, bool is_fv=false)
DEPRECATED: Use variableType instead.
std::function< void(FEProblemBase &, const std::string &, const std::string &, InputParameters &)> _problem_add_var_method