20 params.
addRequiredParam<FunctionName>(
"function",
"The analytic solution to compare against");
21 params.
addClassDescription(
"Computes the W1p norm of the difference between a variable and an "
22 "analytic solution, as a function");
28 _p(getParam<Real>(
"p")),
29 _func(getFunction(
"function"))
registerMooseObject("MooseApp", ElementW1pError)
virtual Real getValue() const override
This will get called to actually grab the final value the postprocessor has calculated.
This postprocessor computes a volume integral of the specified variable.
static InputParameters validParams()
const VariableGradient & _grad_u
Holds the solution gradient at the current quadrature points.
const VariableValue & _u
Holds the solution at current quadrature points.
const MooseArray< Point > & _q_point
This postprocessor computes the Sobolev norm W^{1,p} of the difference between the computed solution ...
virtual Real computeQpIntegral() override
ElementW1pError(const InputParameters ¶meters)
static InputParameters validParams()
virtual Real getValue() const override
This will get called to actually grab the final value the postprocessor has calculated.
virtual RealGradient gradient(Real t, const Point &p) const
Function objects can optionally provide a gradient at a point.
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,...
static constexpr std::size_t dim
This is the dimension of all vector and tensor datastructures used in MOOSE.
MooseUnits pow(const MooseUnits &, int)