18 params.
addClassDescription(
"Limits the value of a variable to be within user-specified bounds.");
21 "The maximum permissible iterative value for the variable.");
23 std::numeric_limits<Real>::lowest(),
24 "The minimum permissible iterative value for the variable.");
30 _max_value(parameters.
get<
Real>(
"max_value")),
31 _min_value(parameters.
get<
Real>(
"min_value"))
34 mooseError(
"max_value must be greater than min_value");
registerMooseObject("MooseApp", BoundingValueNodalDamper)
T * get(const std::unique_ptr< T > &u)
The MooseUtils::get() specializations are used to support making forwards-compatible code changes fro...
const VariableValue & _u
Holds the current solution at the current node.
auto max(const L &left, const R &right)
static InputParameters validParams()
const Real & _min_value
The minimum permissible value of the variable.
This class implements a damper that limits the value of a variable to be within user-specified bounds...
Base class for deriving nodal dampers.
unsigned int _qp
Quadrature point index.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
BoundingValueNodalDamper(const InputParameters ¶meters)
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type.
virtual Real computeQpDamping() override
Compute the damping for the current node.
static InputParameters validParams()
const VariableValue & _u_increment
The current Newton increment.
const Real & _max_value
The maximum permissible value of the variable.