23 params.addRequiredParam<NonlinearVariableName>(
24 "variable",
"The name of the variable that this residual object operates on");
26 params.declareControllable(
"enable");
27 params.set<
bool>(
"_residual_object") =
true;
43 *parameters.getCheckedPointerParam<
FEProblemBase *>(
"_fe_problem_base"),
49 _subproblem(*getCheckedPointerParam<
SubProblem *>(
"_subproblem")),
50 _fe_problem(*parameters.get<
FEProblemBase *>(
"_fe_problem_base")),
51 _sys(*getCheckedPointerParam<
SystemBase *>(
"_sys")),
53 _assembly(_subproblem.assembly(_tid, _sys.number())),
54 _mesh(_subproblem.
mesh())
58#ifdef MOOSE_KOKKOS_ENABLED
72 _subproblem(object._subproblem),
73 _fe_problem(object._fe_problem),
76 _assembly(object._assembly),
92 "This object has not yet implemented 'computeResidualAndJacobian'. If you would like that "
93 "feature for this object, please contact a MOOSE developer.");
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
Interface for objects that need to use functions.
Interface for notifications that the mesh has changed.
static InputParameters validParams()
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type and optionally a file path to the top-level block p...
Every object that can be built by the factory should be derived from this class.
static InputParameters validParams()
Interface class for classes which interact with Postprocessors.
Interface for objects that need parallel consistent random numbers without patterns over the course o...
static InputParameters validParams()
This is the common base class for objects that give residual contributions.
THREAD_ID _tid
The thread ID for this kernel.
virtual void prepareShapes(unsigned int var_num)
Prepare shape functions.
static InputParameters validParams()
virtual void computeResidualAndJacobian()
Compute this object's contribution to the residual and Jacobian simultaneously.
ResidualObject(const InputParameters ¶meters, bool nodal=false)
Class constructor.
SubProblem & _subproblem
Reference to this kernel's SubProblem.
A class for creating restricted objects.
Generic class for solving transient nonlinear problems.
virtual void prepareShapes(unsigned int var, const THREAD_ID tid)=0
Base class for a system (of equations)
static InputParameters validParams()
Interface for objects that needs transient capabilities.
static InputParameters validParams()
Interface for objects that need to use UserObjects.