15 #include "libmesh/fe.h" 42 _type =
"MooseVariableConstMonomial";
56 std::string variable =
name();
registerMooseAction("MooseApp", AddElementalFieldAction, "add_elemental_field_variable")
static InputParameters validParams()
bool _scalar_var
True if the variable being created is a scalar.
void init() override
Initialize the action's member variables.
virtual void addAuxVariable(const std::string &var_type, const std::string &var_name, InputParameters ¶ms)
Canonical method for adding an auxiliary variable.
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
virtual const std::string & name() const
Get the name of the class.
libMesh::FEType _fe_type
FEType for the variable being created.
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
virtual void act() override
Method to add objects to the simulation or perform other setup tasks.
std::string _type
The Object type that is being created.
AddElementalFieldAction(const InputParameters ¶ms)
InputParameters _moose_object_pars
The parameters for the object to be created.
void addVariable(const std::string &var_name)
Adds a nonlinear variable to the system.
static InputParameters validParams()
std::function< void(FEProblemBase &, const std::string &, const std::string &, InputParameters &)> _problem_add_var_method