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