19 "PorousFlowDictator",
"The UserObject that holds the list of PorousFlow variable names.");
20 params.
addParam<
unsigned int>(
"phase", 0,
"Use the Darcy velocity of this fluid phase");
22 "Advective flux of a Variable using the Darcy velocity of the fluid phase");
29 _ph(getParam<unsigned
int>(
"phase")),
33 "dPorousFlow_darcy_velocity_qp_dvar")),
34 _ddarcy_velocity_dgradvar(
36 "dPorousFlow_darcy_velocity_qp_dgradvar"))
40 "The Dictator proclaims that the maximum phase index in this simulation is ",
42 " whereas you have used ",
44 ". Remember that indexing starts at 0. The Dictator is watching you, to " 45 "ensure your wellbeing.");
70 for (
unsigned j = 0;
j < LIBMESH_DIM; ++
j)
static InputParameters validParams()
static InputParameters validParams()
const MaterialProperty< std::vector< std::vector< RealVectorValue > > > & _ddarcy_velocity_dvar
_ddarcy_velocity_dvar[_qp][ph][v](j) = d(j^th component of the Darcy velocity of phase ph)/d(PorousFl...
bool notPorousFlowVariable(unsigned int moose_var_num) const
Returns true if moose_var_num is not a porous flow variabe.
unsigned int number() const
const VariablePhiGradient & _grad_phi
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
const unsigned _ph
Phase of Darcy velocity.
registerMooseObject("PorousFlowApp", PorousFlowBasicAdvection)
virtual Real computeQpJacobian() override
void paramError(const std::string ¶m, Args... args) const
unsigned int numPhases() const
The number of fluid phases.
const MaterialProperty< std::vector< std::vector< std::vector< RealVectorValue > > > > & _ddarcy_velocity_dgradvar
_ddarcy_velocity_dgradvar[_qp][ph][j][v](k) = d(k^th component of the Darcy velocity of phase ph)/d(j...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
This holds maps between the nonlinear variables used in a PorousFlow simulation and the variable numb...
const VariableTestGradient & _grad_test
PorousFlowBasicAdvection(const InputParameters ¶meters)
const PorousFlowDictator & _dictator
Holds info on the Porous Flow variables.
static const std::complex< double > j(0, 1)
Complex number "j" (also known as "i")
unsigned int porousFlowVariableNum(unsigned int moose_var_num) const
The PorousFlow variable number.
Kernel = grad(test) * darcy_velocity * u.
const VariablePhiValue & _phi
void ErrorVector unsigned int
const MaterialProperty< std::vector< RealVectorValue > > & _darcy_velocity
_darcy_velocity[_qp][ph](j) = j^th component of the Darcy velocity of phase ph
virtual Real computeQpResidual() override