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");
35 grid_function->ProjectCoefficient(coeff);
std::shared_ptr< mfem::ParGridFunction > getGridFunction(const std::string &name)
mfem::Coefficient & getScalarCoefficient(const std::string &name)
Returns references to coefficients stored in the MFEMProblem PropertiesManager.
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()
MFEMProblem & getMFEMProblem()
Returns a reference to the MFEMProblem instance.
virtual void execute() override
Execute method.
static InputParameters validParams()