www.mooseframework.org
PorousFlowCapillaryPressureRSC.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
13 
15 
16 template <>
18 
23 {
24 public:
25  PorousFlowCapillaryPressureRSC(const InputParameters & parameters);
26 
27  virtual Real capillaryPressureCurve(Real saturation, unsigned qp = 0) const override;
28  virtual Real dCapillaryPressureCurve(Real saturation, unsigned qp = 0) const override;
29  virtual Real d2CapillaryPressureCurve(Real saturation, unsigned qp = 0) const override;
30 
31  virtual Real effectiveSaturation(Real pc, unsigned qp = 0) const override;
32  virtual Real dEffectiveSaturation(Real pc, unsigned qp = 0) const override;
33  virtual Real d2EffectiveSaturation(Real pc, unsigned qp = 0) const override;
34 
35 protected:
37  const Real _oil_viscosity;
39  const Real _scale_ratio;
41  const Real _shift;
43  const Real _scale;
44 };
45 
PorousFlowCapillaryPressureRSC::effectiveSaturation
virtual Real effectiveSaturation(Real pc, unsigned qp=0) const override
Effective saturation as a function of capillary pressure.
Definition: PorousFlowCapillaryPressureRSC.C:69
PorousFlowCapillaryPressure
Base class for capillary pressure for multiphase flow in porous media.
Definition: PorousFlowCapillaryPressure.h:39
PorousFlowCapillaryPressureRSC::dEffectiveSaturation
virtual Real dEffectiveSaturation(Real pc, unsigned qp=0) const override
Derivative of effective saturation wrt capillary pressure.
Definition: PorousFlowCapillaryPressureRSC.C:75
PorousFlowCapillaryPressure.h
PorousFlowCapillaryPressureRSC::_scale_ratio
const Real _scale_ratio
Scale ratio: porosity/permeability/beta^2, where beta is chosen by the user.
Definition: PorousFlowCapillaryPressureRSC.h:39
PorousFlowCapillaryPressureRSC::_scale
const Real _scale
Scale = 0.25 * scale_ratio * oil_viscosity.
Definition: PorousFlowCapillaryPressureRSC.h:43
PorousFlowCapillaryPressureRSC::_oil_viscosity
const Real _oil_viscosity
Oil viscosity (which must be twice the water viscocity in this formulation)
Definition: PorousFlowCapillaryPressureRSC.h:37
validParams< PorousFlowCapillaryPressureRSC >
InputParameters validParams< PorousFlowCapillaryPressureRSC >()
Definition: PorousFlowCapillaryPressureRSC.C:17
PorousFlowCapillaryPressureRSC::d2CapillaryPressureCurve
virtual Real d2CapillaryPressureCurve(Real saturation, unsigned qp=0) const override
Second derivative of raw capillary pressure wrt true saturation.
Definition: PorousFlowCapillaryPressureRSC.C:62
PorousFlowCapillaryPressureRSC::_shift
const Real _shift
Shift. seff_water = 1/Sqrt(1 + Exp((Pc - shift)/scale)), where scale = 0.25 * scale_ratio * oil_visco...
Definition: PorousFlowCapillaryPressureRSC.h:41
PorousFlowCapillaryPressureRSC::d2EffectiveSaturation
virtual Real d2EffectiveSaturation(Real pc, unsigned qp=0) const override
Second derivative of effective saturation wrt capillary pressure.
Definition: PorousFlowCapillaryPressureRSC.C:81
PorousFlowCapillaryPressureRSC::dCapillaryPressureCurve
virtual Real dCapillaryPressureCurve(Real saturation, unsigned qp=0) const override
Derivative of raw capillary pressure wrt true saturation.
Definition: PorousFlowCapillaryPressureRSC.C:55
PorousFlowCapillaryPressureRSC::capillaryPressureCurve
virtual Real capillaryPressureCurve(Real saturation, unsigned qp=0) const override
Raw capillary pressure curve (does not include logarithmic extension)
Definition: PorousFlowCapillaryPressureRSC.C:48
PorousFlowCapillaryPressureRSC::PorousFlowCapillaryPressureRSC
PorousFlowCapillaryPressureRSC(const InputParameters &parameters)
Definition: PorousFlowCapillaryPressureRSC.C:36
PorousFlowCapillaryPressureRSC
Rogers-Stallybrass-Clements form of capillary pressure.
Definition: PorousFlowCapillaryPressureRSC.h:22
PorousFlowCapillaryPressure::saturation
Real saturation(Real pc, unsigned qp=0) const
Saturation as a function of capillary pressure.
Definition: PorousFlowCapillaryPressure.C:97