10#ifdef MOOSE_MFEM_ENABLED
21 params.addClassDescription(
"Sets the initial values of a complex MFEM scalar variable from a "
22 "pair of user-specified scalar coefficients.");
23 params.addRequiredParam<MFEMScalarCoefficientName>(
"coefficient_real",
24 "The real part of the scalar coefficient");
25 params.addRequiredParam<MFEMScalarCoefficientName>(
26 "coefficient_imag",
"The imaginary part of the scalar coefficient");
41 grid_function->ProjectCoefficient(coeff_real, coeff_imag);
registerMooseObject("MooseApp", MFEMComplexScalarIC)
Class used to set the initial value(s) on a complex scalar valued MFEMVariable.
virtual void execute() override
Perform the main work for this object.
MFEMComplexScalarIC(const InputParameters ¶ms)
static InputParameters validParams()
Base class used to set the initial value(s) on an MFEMVariable.
static InputParameters validParams()
MFEMProblem & getMFEMProblem()
Return the owning MFEM problem.
mfem::Coefficient & getScalarCoefficient(const std::string &name)
Retrieve a scalar MFEM coefficient using the value of an input parameter.
std::shared_ptr< mfem::ParComplexGridFunction > getComplexGridFunction(const std::string &name)