www.mooseframework.org
PorousFlow2PhasePP_VG.C
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 
9 
10 template <>
11 InputParameters
13 {
14  InputParameters params = validParams<PorousFlow2PhasePP>();
15  params.addRequiredRangeCheckedParam<Real>(
16  "al", "al > 0", "van Genuchten parameter alpha. Must be positive");
17  params.addRequiredRangeCheckedParam<Real>(
18  "m",
19  "m > 0 & m < 1",
20  "van Genuchten exponent m. Must be between 0 and 1, and optimally should be set to >0.5");
21  params.addClassDescription("This Material calculates the 2 porepressures and the 2 saturations "
22  "in a 2-phase isothermal situation, and derivatives of these with "
23  "respect to the PorousFlowVariables. Calculates the 1 porepressure "
24  "and the 1 saturation in a 1-phase isothermal situation, and "
25  "derivatives of these with respect to the PorousFlowVariables. A van "
26  "Genuchten effective saturation (1 + (-al * p)^(1 / (1 - m)))^(-m) is "
27  "assumed, where p = phase0_porepressure - phase1_porepressure <= 0");
28  return params;
29 }
30 
31 PorousFlow2PhasePP_VG::PorousFlow2PhasePP_VG(const InputParameters & parameters)
32  : PorousFlow2PhasePP(parameters), _al(getParam<Real>("al")), _m(getParam<Real>("m"))
33 {
34  mooseDeprecated("PorousFlow2PhasePP_VG is deprecated. Please use PorousFlow2PhasePP and a "
35  "PorousFlowCapillaryPressureVG UserObject instead");
36 }
37 
38 Real
40 {
42 }
43 
44 Real
46 {
48 }
49 
50 Real
52 {
54 }
const Real _m
van Genuchten exponent m
Real d2EffectiveSaturation_dP2(Real pressure) const override
Second derivative of effective saturation wrt to porepressure.
Real effectiveSaturation(Real pressure) const override
Effective saturation as a function of porepressure (a negative quantity).
const Real _al
van Genuchten parameter alpha
PorousFlow2PhasePP_VG(const InputParameters &parameters)
Real effectiveSaturation(Real p, Real alpha, Real m)
Effective saturation as a function of porepressure.
const std::string pressure
Definition: NS.h:24
Base material designed to calculate fluid phase porepressure and saturation for the two-phase situati...
Real d2EffectiveSaturation(Real p, Real alpha, Real m)
Second derivative of effective saturation wrt porepressure.
Real dEffectiveSaturation_dP(Real pressure) const override
Derivative of effective saturation wrt to p.
Real dEffectiveSaturation(Real p, Real alpha, Real m)
Derivative of effective saturation wrt porepressure.
InputParameters validParams< PorousFlow2PhasePP >()
InputParameters validParams< PorousFlow2PhasePP_VG >()