Allows a constraint u>=v to be enforced during the nonlinear iteration process. More...
#include <RichardsMultiphaseProblem.h>
Public Member Functions | |
RichardsMultiphaseProblem (const InputParameters ¶ms) | |
virtual | ~RichardsMultiphaseProblem () |
virtual void | initialSetup () |
extracts the moose variable numbers associated with bounded_var and lower_var More... | |
virtual bool | shouldUpdateSolution () |
returns true, indicating that updateSolution should be run More... | |
virtual bool | updateSolution (NumericVector< Number > &vec_solution, NumericVector< Number > &ghosted_solution) |
Does the bounding by modifying vec_solution, and then ghosted_solution. More... | |
Protected Attributes | |
NonlinearVariableName | _bounded_var_name |
name of the bounded variable (this is the variable that gets altered to respect bounded_var > lower_var) More... | |
NonlinearVariableName | _lower_var_name |
name of the variable that acts as the lower bound to bounded_var More... | |
unsigned int | _bounded_var_num |
internal moose variable number associated with _bounded_var More... | |
unsigned int | _lower_var_num |
internal moose variable number associated with _lower_var More... | |
Allows a constraint u>=v to be enforced during the nonlinear iteration process.
This is done by modifying u (which is called bounded_var below)
Definition at line 24 of file RichardsMultiphaseProblem.h.
RichardsMultiphaseProblem::RichardsMultiphaseProblem | ( | const InputParameters & | params | ) |
Definition at line 33 of file RichardsMultiphaseProblem.C.
|
virtual |
Definition at line 45 of file RichardsMultiphaseProblem.C.
|
virtual |
extracts the moose variable numbers associated with bounded_var and lower_var
Definition at line 48 of file RichardsMultiphaseProblem.C.
|
virtual |
returns true, indicating that updateSolution should be run
Definition at line 80 of file RichardsMultiphaseProblem.C.
|
virtual |
Does the bounding by modifying vec_solution, and then ghosted_solution.
vec_solution | is the solution that Petsc says we should use. |
ghosted_solution | is a ghosted version of vec_solution. |
Definition at line 86 of file RichardsMultiphaseProblem.C.
|
protected |
name of the bounded variable (this is the variable that gets altered to respect bounded_var > lower_var)
Definition at line 49 of file RichardsMultiphaseProblem.h.
Referenced by initialSetup().
|
protected |
internal moose variable number associated with _bounded_var
Definition at line 55 of file RichardsMultiphaseProblem.h.
Referenced by initialSetup(), and updateSolution().
|
protected |
name of the variable that acts as the lower bound to bounded_var
Definition at line 52 of file RichardsMultiphaseProblem.h.
Referenced by initialSetup().
|
protected |
internal moose variable number associated with _lower_var
Definition at line 58 of file RichardsMultiphaseProblem.h.
Referenced by initialSetup(), and updateSolution().