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.");
T * get(const std::unique_ptr< T > &u)
The MooseUtils::get() specializations are used to support making forwards-compatible code changes fro...
MooseVariableScalar & _var
Scalar variable.
bool solutionStatesInitialized() const
Whether or not the solution states have been initialized via initSolutionState()
SystemBase & _sys
Reference to the EquationSystem object.
const VariableValue & slnOld() const
ScalarKernelBase(const InputParameters ¶meters)
const VariableValue & uOld() const
Retrieves the old value of the variable that this ScalarKernelBase operates on.
const std::string & type() const
Get the type of this class.
static InputParameters validParams()
OutputTools< Real >::VariableValue VariableValue
This is the common base class for objects that give residual contributions.
Interface for objects that needs scalar coupling capabilities.
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type.
static InputParameters validParams()