www.mooseframework.org
PorousFlow2PhasePP_RSC.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.addParam<Real>("oil_viscosity",
16  "Viscosity of oil (gas) phase. It is assumed this is "
17  "double the water-phase viscosity. (Note that this "
18  "effective saturation is mostly useful for 2-phase, not "
19  "single-phase.)");
20  params.addParam<Real>("scale_ratio",
21  "This is porosity / permeability / beta^2, where beta may "
22  "be chosen by the user. It has dimensions [time]");
23  params.addParam<Real>("shift", "effective saturation is a function of (Pc - shift)");
24  params.addClassDescription("Rogers-Stallybrass-Clements version of effective saturation for the "
25  "water phase, valid for residual saturations = 0, and viscosityOil = "
26  "2 * viscosityWater. seff_water = 1 / sqrt(1 + exp((Pc - shift) / "
27  "scale)), where scale = 0.25 * scale_ratio * oil_viscosity.");
28  return params;
29 }
30 
31 PorousFlow2PhasePP_RSC::PorousFlow2PhasePP_RSC(const InputParameters & parameters)
32  : PorousFlow2PhasePP(parameters),
33  _oil_viscosity(getParam<Real>("oil_viscosity")),
34  _scale_ratio(getParam<Real>("scale_ratio")),
35  _shift(getParam<Real>("shift")),
36  _scale(0.25 * _scale_ratio * _oil_viscosity)
37 {
38  mooseDeprecated("PorousFlow2PhasePP_RSC is deprecated. Please use PorousFlow2PhasePP and a "
39  "PorousFlowCapillaryPressureRSC UserObject instead");
40 }
41 
42 Real
44 {
46 }
47 
48 Real
50 {
52 }
53 
54 Real
56 {
58 }
InputParameters validParams< PorousFlow2PhasePP_RSC >()
Real dEffectiveSaturation_dP(Real pressure) const override
Derivative of effective saturation wrt to p.
Real dEffectiveSaturation(Real pc, Real shift, Real scale)
Derivative of effective saturation wrt capillary pressure.
Real d2EffectiveSaturation_dP2(Real pressure) const override
Second derivative of effective saturation wrt to porepressure.
const Real _scale
scale = 0.25 * scale_ratio * oil_viscosity
Real effectiveSaturation(Real pressure) const override
Effective saturation as a function of porepressure (a negative quantity).
PorousFlow2PhasePP_RSC(const InputParameters &parameters)
const std::string pressure
Definition: NS.h:24
Real d2EffectiveSaturation(Real pc, Real shift, Real scale)
Second derivative of effective saturation wrt capillary pressure.
Base material designed to calculate fluid phase porepressure and saturation for the two-phase situati...
Real effectiveSaturation(Real pc, Real shift, Real scale)
Effective saturation as a function of capillary pressure.
const Real _shift
shift. seff_water = 1/Sqrt(1 + Exp((Pc - shift)/scale)), where scale = 0.25 * scale_ratio * oil_visco...
InputParameters validParams< PorousFlow2PhasePP >()