22 params.addClassDescription(
"Sets the initial values of an MFEM vector variable from a " 23 "user-specified vector coefficient.");
24 params.addRequiredParam<MFEMVectorCoefficientName>(
"coefficient",
"The vector coefficient");
35 grid_function->ProjectCoefficient(coeff);
std::shared_ptr< mfem::ParGridFunction > getGridFunction(const std::string &name)
Base class used to set the initial value(s) on an MFEMVariable.
Class used to set the initial value(s) on a vector valued MFEMVariable.
virtual void execute() override
Execute method.
registerMooseObject("MooseApp", MFEMVectorIC)
static InputParameters validParams()
MFEMProblem & getMFEMProblem()
Returns a reference to the MFEMProblem instance.
MFEMVectorIC(const InputParameters ¶ms)
mfem::VectorCoefficient & getVectorCoefficient(const std::string &name)
static InputParameters validParams()