17 #include "libmesh/enum_norm_type.h" 26 "The name of the variable to compute the residual for");
29 "Computes the L2 norm of the residual of a single variable in the solution vector.");
35 _var(_fe_problem.getVariable(_tid,
36 getParam<VariableName>(
"variable"),
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
unsigned int number() const
Get variable number coming from libMesh.
This class is here to combine the Postprocessor interface and the base class Postprocessor object alo...
MooseVariableFEBase & _var
MOOSE variable we compute the residual for.
Nonlinear system to be solved.
static InputParameters validParams()
static InputParameters validParams()
VariableResidual(const InputParameters ¶meters)
VarKindType
Framework-wide stuff.
Real PostprocessorValue
various MOOSE typedefs
NonlinearSystemBase & getNonlinearSystemBase(const unsigned int sys_num)
SystemBase & _sys
Reference to the system object for this user object.
unsigned int number() const
Gets the number of this system.
virtual PostprocessorValue getValue() const override
This will get called to actually grab the final value the postprocessor has calculated.
virtual NumericVector< Number > & RHS()=0
virtual void execute() override
Execute method.
FEProblemBase & _fe_problem
Reference to the FEProblemBase for this user object.
virtual System & system() override
Get the reference to the libMesh system.
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...
Real _var_residual
The residual of the variable.
registerMooseObject("MooseApp", VariableResidual)