22 params.
addParam<
bool>(
"use_displaced_mesh",
24 "Whether or not this object should use the "
25 "displaced mesh for computation. Note that "
26 "in the case this is true but no "
27 "displacements are provided in the Mesh block "
28 "the undisplaced mesh will still be used.");
40 _var(_sys.getScalarVariable(_tid, parameters.get<NonlinearVariableName>(
"variable")))
48 mooseError(
"The solution states have already been initialized when calling ",
51 "Make sure to call uOld() within the object constructor.");
OutputTools< Real >::VariableValue VariableValue
const std::string & type() const
Get the type of this class.
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...
const VariableValue & slnOld() const
This is the common base class for objects that give residual contributions.
static InputParameters validParams()
SystemBase & _sys
Reference to the EquationSystem object.
Interface for objects that needs scalar coupling capabilities.
const VariableValue & uOld() const
Retrieves the old value of the variable that this ScalarKernelBase operates on.
MooseVariableScalar & _var
Scalar variable.
ScalarKernelBase(const InputParameters ¶meters)
static InputParameters validParams()
bool solutionStatesInitialized() const
Whether or not the solution states have been initialized via initSolutionState()