14 #include "libmesh/fe_type.h" 29 virtual void act()
override;
52 determineType(
const FEType & fe_type,
unsigned int components,
bool is_fv =
false);
61 variableType(
const FEType & fe_type,
const bool is_fv =
false,
const bool is_array =
false);
102 std::function<void(FEProblemBase &, const std::string &, const std::string &, InputParameters &)>
static InputParameters validParams()
Class constructor.
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
Method to add objects to the simulation or perform other setup tasks.
static std::string variableType(const FEType &fe_type, const bool is_fv=false, const bool is_array=false)
Determines a variable type.
FEType _fe_type
FEType for the variable being created.
static MooseEnum getNonlinearVariableFamilies()
Get the possible variable families.
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.
static std::string determineType(const FEType &fe_type, unsigned int components, bool is_fv=false)
DEPRECATED: Use variableType instead.
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
static 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)
void createInitialConditionAction()
Create the action to generate the InitialCondition object.
std::function< void(FEProblemBase &, const std::string &, const std::string &, InputParameters &)> _problem_add_var_method