Class for stuff related to variables.
This class provides an interface for common operations on field variables of both FE and FV types wit...
NonlinearVariableName _bounded_var_name
Name of MOOSE variable we set the bound for.
dof_id_type getDoFIndex() const
Return the current DOF index to apply the bound on.
MooseVariableFE< Real > * _fe_var
Pointer to the finite element variable we set the bound for. Will be null for finite volume...
NumericVector< Number > & _bounded_vector
Reference to the bounded vector of nonlinear system.
MooseVariableFieldBase & _bounded_var
MOOSE variable (base class) we set the bound for.
static InputParameters validParams()
virtual Real computeValue() override final
Compute and return the value of the aux variable.
BoundsBase(const InputParameters ¶meters)
virtual Real getBound()=0
Method to get bound value for a variable.
BoundType _type
The bound type ("upper" or "lower")
const InputParameters & parameters() const
Get the parameters of the object.
This is a base class used to set an upper and/or lower bound of a variable for the PETSc's variationa...
virtual void initialSetup() override final
Gets called at the beginning of the simulation before this object is asked to do its job...