23 params.
addClassDescription(
"Compute L2 error of a scalar variable using analytic function.");
24 params.
addRequiredParam<VariableName>(
"variable",
"The name of the scalar variable");
25 params.
addRequiredParam<FunctionName>(
"function",
"The analytic solution to compare against");
31 _var(_subproblem.getScalarVariable(_tid, getParam<VariableName>(
"variable"))),
32 _func(getFunction(
"function"))
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
static InputParameters validParams()
void reinit(bool reinit_for_derivative_reordering=false)
Fill out the VariableValue arrays from the system solution vector.
registerMooseObject("MooseApp", ScalarL2Error)
ADRealEigenVector< T, D, asd > sqrt(const ADRealEigenVector< T, D, asd > &)
This class is here to combine the Postprocessor interface and the base class Postprocessor object alo...
virtual void execute() override
Execute method.
static InputParameters validParams()
virtual Real getValue() const override
Get the L2 Error.
MooseVariableScalar & _var
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual Real value(Real t, const Point &p) const
Override this to evaluate the scalar function at point (t,x,y,z), by default this returns zero...
ScalarL2Error(const InputParameters ¶meters)
const VariableValue & sln() const
Postprocessor for computing the error in a scalar value relative to a known Function's value...