21 "variable over a time step or between nonlinear iterations.");
23 MooseEnum change_over(
"time_step nonlinear_iteration");
25 "change_over", change_over,
"Interval over which to compute the change");
35 _change_over(getParam<
MooseEnum>(
"change_over")),
36 _u_change_old(_change_over ==
"time_step" ? coupledValueOld(
"variable")
37 : coupledValuePreviousNL(
"variable")),
39 _norm_exponent(_norm ==
"L1" ? 1 : 2),
MetaPhysicL::DualNumber< V, D, asd > abs(const MetaPhysicL::DualNumber< V, D, asd > &a)
virtual void finalize() override
This is called after execute() and after threadJoin()! This is probably where you want to do MPI comm...
bool absoluteFuzzyEqual(const T &var1, const T2 &var2, const T3 &tol=libMesh::TOLERANCE *libMesh::TOLERANCE)
Function to check whether two variables are equal within an absolute tolerance.
This postprocessor computes a volume integral of the specified variable.
const VariableValue & _u_change_old
"Old" solution value in the change
const Real & _current_elem_volume
The current element volume (available during execute())
virtual void threadJoin(const UserObject &y) override
Must override.
static InputParameters validParams()
void gatherSum(T &value)
Gather the parallel sum of the variable passed in.
virtual void execute() override
Execute method.
const VariableValue & _u
Holds the solution at current quadrature points.
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
static InputParameters validParams()
virtual void execute() override
Execute method.
virtual Real computeQpIntegral() override
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.
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
virtual void threadJoin(const UserObject &y) override
Must override.
registerMooseObject("MooseApp", AverageVariableChange)
Real _volume
Subdomain(s) volume.
const unsigned int _norm_exponent
Norm exponent.
MooseUnits pow(const MooseUnits &, int)
Computes the volume-weighted L1 or L2 norm of the change of a variable over a time step or between no...
AverageVariableChange(const InputParameters ¶meters)
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
Base class for user-specific data.