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);
std::shared_ptr< mfem::ParGridFunction > getGridFunction(const std::string &name)
MFEMProblem & getMFEMProblem()
Return the owning MFEM problem.
mfem::VectorCoefficient & getVectorCoefficient(const std::string &name)
Retrieve a vector MFEM coefficient using the value of an input parameter.
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
Perform the main work for this object.
registerMooseObject("MooseApp", MFEMVectorIC)
static InputParameters validParams()
MFEMVectorIC(const InputParameters ¶ms)
static InputParameters validParams()