10#ifdef MOOSE_MFEM_ENABLED
22 "Computes L2 error $\\left\\Vert \\vec u_{ex} - \\vec u_{h}\\right\\Vert_{\\rm L2}$ for "
23 "vector gridfunctions.");
24 params.
addParam<MFEMVectorCoefficientName>(
"function",
25 "The analytic solution to compare against.");
26 MFEMExecutedObject::addRequiredDependencyParam<VariableName>(
27 params,
"variable",
"Name of the vector variable of which to find the norm of the error.");
33 _vec_coeff(getVectorCoefficient(
"function")),
34 _var(*getMFEMProblem().getGridFunction(getParam<VariableName>(
"variable")))
registerMooseObject("MooseApp", MFEMVectorL2Error)
Real PostprocessorValue
various MOOSE typedefs
Postprocessor for MFEM results.
static InputParameters validParams()
Compute the L2 error for a vector variable.
static InputParameters validParams()
virtual void initialize() override
Perform any pre-execution setup for this object.
mfem::GridFunction & _var
virtual void execute() override
Perform the main work for this object.
virtual PostprocessorValue getValue() const override final
Get the L2 Error.
MFEMVectorL2Error(const InputParameters ¶meters)
mfem::VectorCoefficient & _vec_coeff