This holds maps between pressure_var or pressure_var, sat_var used in RichardsMaterial and kernels, etc, and the variable number used internally by MOOSE. More...
#include <RichardsVarNames.h>
Public Member Functions | |
RichardsVarNames (const InputParameters ¶meters) | |
void | initialize () |
void | execute () |
void | finalize () |
unsigned int | num_v () const |
the number of porepressure variables More... | |
unsigned int | richards_var_num (unsigned int moose_var_num) const |
the richards variable number More... | |
bool | not_richards_var (unsigned int moose_var_num) const |
returns true if moose_var_num is not a richards var More... | |
std::string | richards_names () const |
a space-separated string of richards variable names eg richards_names() = 'pwater pgas' More... | |
const VariableValue * | richards_vals (unsigned int richards_var_num) const |
a vector of pointers to VariableValues More... | |
const VariableValue * | richards_vals_old (unsigned int richards_var_num) const |
a vector of pointers to old VariableValues More... | |
const VariableGradient * | grad_var (unsigned int richards_var_num) const |
a vector of pointers to grad(Variable) More... | |
const VariableValue * | nodal_var (unsigned int richards_var_num) const |
The nodal variable values for the given richards_var_num To extract a the value of pressure variable "pvar", at node i, use (*RichardsVarNames.nodal_var(pvar))[i]. More... | |
const VariableValue * | nodal_var_old (unsigned int richards_var_num) const |
The old nodal variable values for the given richards_var_num. More... | |
std::string | var_types () const |
return the _var_types string More... | |
Protected Attributes | |
unsigned int | _num_v |
number of richards variables More... | |
MooseEnum | _var_types |
physical meaning of the variables. Eg 'pppp' means 'all variables are pressure variables' More... | |
std::vector< unsigned int > | _moose_var_num |
_moose_var_num[i] = the moose variable number corresponding to richards variable i More... | |
std::vector< unsigned int > | _ps_var_num |
_pressure_var_num[i] = the richards variable corresponding to moose variable i More... | |
std::vector< const VariableValue * > | _moose_var_value |
moose_var_value[i] = values of richards variable i More... | |
std::vector< const VariableValue * > | _moose_var_value_old |
moose_var_value_old[i] = old values of richards variable i More... | |
std::vector< const VariableValue * > | _moose_nodal_var_value |
moose_var_value[i] = values of richards variable i More... | |
std::vector< const VariableValue * > | _moose_nodal_var_value_old |
moose_var_value_old[i] = old values of richards variable i More... | |
std::vector< const VariableGradient * > | _moose_grad_var |
moose_grad_var[i] = gradient values of richards variable i More... | |
This holds maps between pressure_var or pressure_var, sat_var used in RichardsMaterial and kernels, etc, and the variable number used internally by MOOSE.
Definition at line 25 of file RichardsVarNames.h.
RichardsVarNames::RichardsVarNames | ( | const InputParameters & | parameters | ) |
Definition at line 38 of file RichardsVarNames.C.
void RichardsVarNames::execute | ( | ) |
Definition at line 83 of file RichardsVarNames.C.
void RichardsVarNames::finalize | ( | ) |
Definition at line 88 of file RichardsVarNames.C.
const VariableGradient * RichardsVarNames::grad_var | ( | unsigned int | richards_var_num | ) | const |
a vector of pointers to grad(Variable)
richards_var_num | the richards variable number eg if richards_vars = 'pwater pgas', then (*grad_var(1))[qp] = grad(pgas) evaluated at quadpoint qp Also grad_var(i) = &coupledGradient |
Definition at line 130 of file RichardsVarNames.C.
Referenced by RichardsMaterial::computePandSeff().
void RichardsVarNames::initialize | ( | ) |
Definition at line 78 of file RichardsVarNames.C.
const VariableValue * RichardsVarNames::nodal_var | ( | unsigned int | richards_var_num | ) | const |
The nodal variable values for the given richards_var_num To extract a the value of pressure variable "pvar", at node i, use (*RichardsVarNames.nodal_var(pvar))[i].
richards_var_num | the richards variable number |
Definition at line 142 of file RichardsVarNames.C.
Referenced by RichardsBorehole::RichardsBorehole(), RichardsFullyUpwindFlux::RichardsFullyUpwindFlux(), RichardsLumpedMassChange::RichardsLumpedMassChange(), and RichardsPiecewiseLinearSink::RichardsPiecewiseLinearSink().
const VariableValue * RichardsVarNames::nodal_var_old | ( | unsigned int | richards_var_num | ) | const |
The old nodal variable values for the given richards_var_num.
richards_var_num | the richards variable number |
Definition at line 148 of file RichardsVarNames.C.
Referenced by RichardsLumpedMassChange::RichardsLumpedMassChange().
bool RichardsVarNames::not_richards_var | ( | unsigned int | moose_var_num | ) | const |
returns true if moose_var_num is not a richards var
moose_var_num | the MOOSE variable number eg if richards_vars = 'pwater pgas', and the variables in the simulation are 'temperature pwater pgas displacement' then not_pressure_var(0) = true, no_pressure_var(1) = false |
Definition at line 109 of file RichardsVarNames.C.
Referenced by RichardsFlux::computeQpOffDiagJacobian(), RichardsMassChange::computeQpOffDiagJacobian(), RichardsHalfGaussianSink::computeQpOffDiagJacobian(), RichardsLumpedMassChange::computeQpOffDiagJacobian(), RichardsPolyLineSink::computeQpOffDiagJacobian(), RichardsPiecewiseLinearSink::computeQpOffDiagJacobian(), RichardsBorehole::computeQpOffDiagJacobian(), and RichardsFullyUpwindFlux::upwind().
unsigned int RichardsVarNames::num_v | ( | ) | const |
the number of porepressure variables
Definition at line 93 of file RichardsVarNames.C.
std::string RichardsVarNames::richards_names | ( | ) | const |
a space-separated string of richards variable names eg richards_names() = 'pwater pgas'
const VariableValue * RichardsVarNames::richards_vals | ( | unsigned int | richards_var_num | ) | const |
a vector of pointers to VariableValues
richards_var_num | the pressure variable number eg if richards_vars = 'pwater pgas', then (*richards_vals(1))[qp] = pgas evaluated at quadpoint qp Also richards_vals(i) = &coupledValue |
Definition at line 117 of file RichardsVarNames.C.
Referenced by RichardsMaterial::computePandSeff().
const VariableValue * RichardsVarNames::richards_vals_old | ( | unsigned int | richards_var_num | ) | const |
a vector of pointers to old VariableValues
richards_var_num | the richards variable number eg if richards_vars = 'pwater pgas', then (*richards_vals_old(1))[qp] = old pgas evaluated at quadpoint qp Also richards_vals_old(i) = &coupledValueOld |
Definition at line 124 of file RichardsVarNames.C.
Referenced by RichardsMaterial::computePandSeff().
unsigned int RichardsVarNames::richards_var_num | ( | unsigned int | moose_var_num | ) | const |
the richards variable number
moose_var_num | the MOOSE variable number eg if richards_vars = 'pwater pgas', and the variables in the simulation are 'temperature pwater pgas displacement' then richards_var_num(2) = 1 |
Definition at line 99 of file RichardsVarNames.C.
Referenced by RichardsFlux::computeQpOffDiagJacobian(), RichardsMassChange::computeQpOffDiagJacobian(), RichardsHalfGaussianSink::computeQpOffDiagJacobian(), RichardsLumpedMassChange::computeQpOffDiagJacobian(), RichardsPolyLineSink::computeQpOffDiagJacobian(), RichardsPiecewiseLinearSink::computeQpOffDiagJacobian(), RichardsBorehole::computeQpOffDiagJacobian(), grad_var(), nodal_var(), nodal_var_old(), richards_vals(), richards_vals_old(), and RichardsFullyUpwindFlux::upwind().
std::string RichardsVarNames::var_types | ( | ) | const |
return the _var_types string
Definition at line 136 of file RichardsVarNames.C.
Referenced by RichardsMaterial::computePandSeff().
|
protected |
moose_grad_var[i] = gradient values of richards variable i
Definition at line 133 of file RichardsVarNames.h.
Referenced by grad_var(), and RichardsVarNames().
|
protected |
moose_var_value[i] = values of richards variable i
Definition at line 127 of file RichardsVarNames.h.
Referenced by nodal_var(), and RichardsVarNames().
|
protected |
moose_var_value_old[i] = old values of richards variable i
Definition at line 130 of file RichardsVarNames.h.
Referenced by nodal_var_old(), and RichardsVarNames().
|
protected |
_moose_var_num[i] = the moose variable number corresponding to richards variable i
Definition at line 113 of file RichardsVarNames.h.
Referenced by RichardsVarNames().
|
protected |
moose_var_value[i] = values of richards variable i
Definition at line 120 of file RichardsVarNames.h.
Referenced by richards_vals(), and RichardsVarNames().
|
protected |
moose_var_value_old[i] = old values of richards variable i
Definition at line 123 of file RichardsVarNames.h.
Referenced by richards_vals_old(), and RichardsVarNames().
|
protected |
number of richards variables
Definition at line 107 of file RichardsVarNames.h.
Referenced by not_richards_var(), num_v(), richards_var_num(), and RichardsVarNames().
|
protected |
_pressure_var_num[i] = the richards variable corresponding to moose variable i
Definition at line 116 of file RichardsVarNames.h.
Referenced by not_richards_var(), richards_var_num(), and RichardsVarNames().
|
protected |
physical meaning of the variables. Eg 'pppp' means 'all variables are pressure variables'
Definition at line 110 of file RichardsVarNames.h.
Referenced by var_types().