10 #ifdef MOOSE_MFEM_ENABLED 22 params.addClassDescription(
"Sets the initial values of an MFEM scalar variable from a " 23 "user-specified scalar coefficient.");
24 params.addRequiredParam<MFEMScalarCoefficientName>(
"coefficient",
"The scalar coefficient");
31 params, getMFEMProblem().getMFEMVariableMesh(getParam<VariableName>(
"variable")))
Class used to set the initial value(s) on a scalar valued MFEMVariable.
std::shared_ptr< mfem::ParGridFunction > getGridFunction(const std::string &name)
MFEMProblem & getMFEMProblem()
Return the owning MFEM problem.
static InputParameters validParams()
Base class used to set the initial value(s) on an MFEMVariable.
MFEMScalarBoundaryIC(const InputParameters ¶ms)
static InputParameters validParams()
mfem::Array< int > & getBoundaryMarkers()
registerMooseObject("MooseApp", MFEMScalarBoundaryIC)
Base class for construction of an object that is restricted to a subset of boundaries of the problem ...
virtual void execute() override
Perform the main work for this object.
mfem::Coefficient & getScalarCoefficient(const std::string &name)
Retrieve a scalar MFEM coefficient using the value of an input parameter.
static InputParameters validParams()