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_real",
24 "The real part of the vector coefficient");
25 params.addRequiredParam<MFEMVectorCoefficientName>(
26 "vector_coefficient_imag",
"The imaginary part of the vector coefficient");
41 grid_function->ProjectCoefficient(coeff_real, coeff_imag);
registerMooseObject("MooseApp", MFEMComplexVectorIC)
Class used to set the initial value(s) on a complex vector valued MFEMVariable.
static InputParameters validParams()
MFEMComplexVectorIC(const InputParameters ¶ms)
virtual void execute() override
Perform the main work for this object.
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::ParComplexGridFunction > getComplexGridFunction(const std::string &name)