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"))
MetaPhysicL::DualNumber< V, D, asd > abs(const MetaPhysicL::DualNumber< V, D, asd > &a)
const MooseArray< Point > & _q_point
registerMooseObject("MooseApp", ElementW1pError)
This postprocessor computes a volume integral of the specified variable.
static constexpr std::size_t dim
This is the dimension of all vector and tensor datastructures used in MOOSE.
const VariableGradient & _grad_u
Holds the solution gradient at the current quadrature points.
ElementW1pError(const InputParameters ¶meters)
static InputParameters validParams()
const VariableValue & _u
Holds the solution at current quadrature points.
static InputParameters validParams()
virtual Real getValue() const override
This will get called to actually grab the final value the postprocessor has calculated.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual Real getValue() const override
This will get called to actually grab the final value the postprocessor has calculated.
IntRange< T > make_range(T beg, T end)
virtual RealGradient gradient(Real t, const Point &p) const
Function objects can optionally provide a gradient at a point.
virtual Real computeQpIntegral() override
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...
MooseUnits pow(const MooseUnits &, int)
This postprocessor computes the Sobolev norm W^{1,p} of the difference between the computed solution ...