23 "List of variables that represent the porepressures or " 24 "(porepressure, saturations). In single-phase models you will just " 25 "have one (eg \'pressure\'), in two-phase models you will have two " 26 "(eg \'p_water p_gas\', or \'p_water s_water\', etc. These names " 27 "must also be used in your kernels and material.");
32 "Variable types for the problem. Eg, 'pppp' means all the variables are pressure variables");
40 _num_v(coupledComponents(
"richards_vars")),
41 _var_types(getParam<
MooseEnum>(
"var_types")),
42 _moose_var_num(coupledIndices(
"richards_vars")),
43 _moose_var_value(coupledValues(
"richards_vars")),
44 _moose_var_value_old(_is_transient ? coupledValuesOld(
"richards_vars")
46 _moose_grad_var(coupledGradients(
"richards_vars"))
48 unsigned int max_moose_var_num_seen = 0;
52 for (
unsigned int i = 0; i <
_num_v; ++i)
54 max_moose_var_num_seen =
65 for (
unsigned int i = 0; i < max_moose_var_num_seen + 1; ++i)
67 for (
unsigned int i = 0; i <
_num_v; ++i)
98 " is not a richards according to the RichardsVarNames UserObject");
virtual const VariableValue & coupledDofValues(const std::string &var_name, unsigned int comp=0) const
OutputTools< Real >::VariableGradient VariableGradient
const VariableValue & _zero
static InputParameters validParams()
const std::vector< const VariableValue * > _moose_var_value_old
moose_var_value_old[i] = old values of richards variable i
std::vector< const VariableValue * > _moose_nodal_var_value
moose_var_value[i] = values of richards variable i
virtual const VariableValue & coupledDofValuesOld(const std::string &var_name, unsigned int comp=0) const
const VariableValue * richards_vals_old(unsigned int richards_var_num) const
a vector of pointers to old VariableValues
std::vector< const VariableValue * > _moose_nodal_var_value_old
moose_var_value_old[i] = old values of richards variable i
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 ...
bool not_richards_var(unsigned int moose_var_num) const
returns true if moose_var_num is not a richards var
This holds maps between pressure_var or pressure_var, sat_var used in RichardsMaterial and kernels...
unsigned int num_v() const
the number of porepressure variables
static InputParameters validParams()
std::string var_types() const
return the _var_types string
const VariableGradient * grad_var(unsigned int richards_var_num) const
a vector of pointers to grad(Variable)
const VariableValue * nodal_var_old(unsigned int richards_var_num) const
The old nodal variable values for the given richards_var_num.
const std::vector< const VariableValue * > _moose_var_value
moose_var_value[i] = values of richards variable i
const std::vector< const VariableGradient * > _moose_grad_var
moose_grad_var[i] = gradient values of richards variable i
std::vector< unsigned int > _ps_var_num
_pressure_var_num[i] = the richards variable corresponding to moose variable i
registerMooseObject("RichardsApp", RichardsVarNames)
const std::vector< unsigned int > _moose_var_num
_moose_var_num[i] = the moose variable number corresponding to richards variable i ...
OutputTools< Real >::VariableValue VariableValue
const VariableValue * richards_vals(unsigned int richards_var_num) const
a vector of pointers to VariableValues
unsigned int richards_var_num(unsigned int moose_var_num) const
the richards variable number
void mooseError(Args &&... args) const
RichardsVarNames(const InputParameters ¶meters)
MooseEnum _var_types
physical meaning of the variables. Eg 'pppp' means 'all variables are pressure variables' ...
unsigned int _num_v
number of richards variables