www.mooseframework.org
PorousFlow2PhasePP.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
8 #ifndef POROUSFLOW2PHASEPP_H
9 #define POROUSFLOW2PHASEPP_H
10 
11 #include "PorousFlowVariableBase.h"
12 
13 // Forward Declarations
15 class PorousFlow2PhasePP;
16 
17 template <>
18 InputParameters validParams<PorousFlow2PhasePP>();
19 
27 {
28 public:
29  PorousFlow2PhasePP(const InputParameters & parameters);
30 
31 protected:
32  virtual void initQpStatefulProperties() override;
33  virtual void computeQpProperties() override;
34 
39  Real buildQpPPSS();
40 
49  virtual Real effectiveSaturation(Real pressure) const;
50 
59  virtual Real dEffectiveSaturation_dP(Real pressure) const;
60 
69  virtual Real d2EffectiveSaturation_dP2(Real pressure) const;
70 
72  const VariableValue & _phase0_porepressure;
74  const VariableGradient & _phase0_gradp_qp;
76  const unsigned int _phase0_porepressure_varnum;
78  const unsigned int _p0var;
80  const VariableValue & _phase1_porepressure;
82  const VariableGradient & _phase1_gradp_qp;
84  const unsigned int _phase1_porepressure_varnum;
86  const unsigned int _p1var;
91 };
92 
93 #endif // POROUSFLOW2PHASEPP_H
virtual Real d2EffectiveSaturation_dP2(Real pressure) const
Second derivative of effective saturation wrt to porepressure.
const unsigned int _p0var
PorousFlow variable number of the phase0 porepressure.
PorousFlow2PhasePP(const InputParameters &parameters)
const unsigned int _phase0_porepressure_varnum
Moose variable number of the phase0 porepressure.
Base class for capillary pressure for multiphase flow in porous media.
const VariableValue & _phase0_porepressure
Nodal or quadpoint value of porepressure of the zero phase (eg, the water phase)
Real buildQpPPSS()
Assemble std::vectors of porepressure and saturation at the nodes and quadpoints, and return the capi...
const VariableGradient & _phase0_gradp_qp
Gradient(phase0_porepressure) at the qps.
virtual Real effectiveSaturation(Real pressure) const
Effective saturation as a function of porepressure (a negative quantity).
const unsigned int _phase1_porepressure_varnum
Moose variable number of the phase1 porepressure.
const unsigned int _p1var
PorousFlow variable number of the phase1 porepressure.
virtual Real dEffectiveSaturation_dP(Real pressure) const
Derivative of effective saturation wrt to p.
const VariableGradient & _phase1_gradp_qp
Gradient(phase1_porepressure) at the qps.
const PorousFlowCapillaryPressure * _pc_uo
Capillary pressure UserObject Note: This pointer can be replaced with a reference once the deprecated...
const std::string pressure
Definition: NS.h:24
virtual void computeQpProperties() override
virtual void initQpStatefulProperties() override
Base material designed to calculate fluid phase porepressure and saturation for the two-phase situati...
const VariableValue & _phase1_porepressure
Nodal or quadpoint value of porepressure of the one phase (eg, the gas phase)
Base class for thermophysical variable materials, which assemble materials for primary variables such...
InputParameters validParams< PorousFlow2PhasePP >()