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