10 #ifdef MOOSE_MFEM_ENABLED 21 params.addClassDescription(
"Sets the initial values of an MFEM scalar variable from a " 22 "user-specified scalar coefficient.");
23 params.addRequiredParam<MFEMScalarCoefficientName>(
"coefficient",
"The scalar coefficient");
34 grid_function->ProjectCoefficient(coeff);
std::shared_ptr< mfem::ParGridFunction > getGridFunction(const std::string &name)
MFEMProblem & getMFEMProblem()
Return the owning MFEM problem.
Base class used to set the initial value(s) on an MFEMVariable.
registerMooseObject("MooseApp", MFEMScalarIC)
Class used to set the initial value(s) on a scalar valued MFEMVariable.
MFEMScalarIC(const InputParameters ¶ms)
static InputParameters validParams()
mfem::Coefficient & getScalarCoefficient(const std::string &name)
Retrieve a scalar MFEM coefficient using the value of an input parameter.
virtual void execute() override
Perform the main work for this object.
static InputParameters validParams()