10#ifdef MOOSE_MFEM_ENABLED
22 "Computes L2 error $\\left\\Vert u_{ex} - u_{h}\\right\\Vert_{\\rm L2}$ for "
23 "complex gridfunctions using H1 or L2 elements.");
24 params.
addParam<MFEMScalarCoefficientName>(
25 "function_real",
"The real part of the analytic solution to compare against.");
26 params.
addParam<MFEMScalarCoefficientName>(
27 "function_imag",
"The imaginary part of the analytic solution to compare against.");
28 MFEMExecutedObject::addRequiredDependencyParam<VariableName>(
29 params,
"variable",
"Name of the variable of which to find the norm of the error.");
35 _coeff_real(getScalarCoefficient(
"function_real")),
36 _coeff_imag(getScalarCoefficient(
"function_imag")),
37 _var(*getMFEMProblem().getComplexGridFunction(getParam<VariableName>(
"variable")))
registerMooseObject("MooseApp", MFEMComplexL2Error)
Real PostprocessorValue
various MOOSE typedefs
Compute the L2 error for a complex variable.
virtual PostprocessorValue getValue() const override final
Get the L2 Error.
static InputParameters validParams()
mfem::Coefficient & _coeff_imag
mfem::Coefficient & _coeff_real
MFEMComplexL2Error(const InputParameters ¶meters)
mfem::ParComplexGridFunction & _var
Postprocessor for MFEM results.
static InputParameters validParams()