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.");
27 "variable",
"Name of the vector variable of which to find the norm of the error.");
33 _var_name(getParam<VariableName>(
"variable")),
34 _coeff_name(getParam<MFEMVectorCoefficientName>(
"function")),
35 _vec_coeff(getVectorCoefficient(_coeff_name)),
36 _var(getMFEMProblem().getProblemData().gridfunctions.GetRef(_var_name))
mfem::GridFunction & _var
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
MFEMVectorL2Error(const InputParameters ¶meters)
mfem::VectorCoefficient & _vec_coeff
virtual PostprocessorValue getValue() const override final
Get the L2 Error.
Real PostprocessorValue
various MOOSE typedefs
registerMooseObject("MooseApp", MFEMVectorL2Error)
static InputParameters validParams()
virtual void execute() override
Execute method.
static InputParameters validParams()