108 Real
saturation(Real pc,
unsigned qp = 0)
const;
DualNumber< Real, DNDerivativeType, true > ADReal
const InputParameters & parameters() const
Base class for capillary pressure for multiphase flow in porous media.
virtual Real dCapillaryPressure(Real saturation, unsigned qp=0) const
Derivative of capillary pressure wrt true saturation.
bool _log_ext
Flag to use a logarithmic extension for low saturation.
virtual void initialSetup() override
Real interceptFunction(Real s) const
Calculates the saturation where the logarithmic extension to capillary pressure at low saturation.
Real dCapillaryPressureLogExt(Real s) const
The derivative of capillary pressure in the logarithmic extension This implementation assumes capilla...
Real _sat_ext
Saturation where the logarithmic extension meets the raw curve This is computed only for qp=0.
Real d2CapillaryPressureLogExt(Real s) const
The second derivative of capillary pressure in the logarithmic extension This implementation assumes ...
virtual Real d2CapillaryPressure(Real saturation, unsigned qp=0) const
Second derivative of capillary pressure wrt true saturation.
virtual Real d2EffectiveSaturation(Real pc, unsigned qp=0) const =0
Second derivative of effective saturation wrt capillary pressure.
virtual Real dCapillaryPressureCurve(Real saturation, unsigned qp=0) const =0
Derivative of raw capillary pressure wrt true saturation.
virtual Real dEffectiveSaturation(Real pc, unsigned qp=0) const =0
Derivative of effective saturation wrt capillary pressure.
virtual Real capillaryPressure(Real saturation, unsigned qp=0) const
Capillary pressure is calculated as a function of true saturation.
const Real _pc_max
Maximum capillary pressure (Pa). Note: must be <= 0.
const Real _sat_lr
Liquid residual saturation.
virtual Real capillaryPressureCurve(Real saturation, unsigned qp=0) const =0
Raw capillary pressure curve (does not include logarithmic extension)
Real interceptFunctionDeriv(Real s) const
Calculates the saturation where the logarithmic extension to capillary pressure at low saturation.
Real _slope_ext
Gradient of the logarithmic extension This is computed only for qp=0.
Real capillaryPressureLogExt(Real s) const
The capillary pressure in the logarithmic extension This implementation assumes capillary-pressure is...
Real d2Saturation(Real pc, unsigned qp=0) const
Second derivative of saturation wrt capillary pressure.
const Real _dseff_ds
Derivative of effective saturation with respect to saturation.
Real extensionSaturation() const
Calculates the saturation where the logarithmic extension to capillary pressure meets the raw curve u...
ADReal dSaturation(const ADReal &pc, unsigned int qp=0) const
virtual Real effectiveSaturation(Real pc, unsigned qp=0) const =0
Effective saturation as a function of capillary pressure.
virtual Real d2CapillaryPressureCurve(Real saturation, unsigned qp=0) const =0
Second derivative of raw capillary pressure wrt true saturation.
static InputParameters validParams()
Real _pc_ext
Capillary pressure where the extension meets the raw curve.
Real saturation(Real pc, unsigned qp=0) const
Saturation as a function of capillary pressure.
Real effectiveSaturationFromSaturation(Real saturation) const
Effective saturation of liquid phase given liquid saturation and residual liquid saturation.
virtual void initialize() final
Real dSaturation(Real pc, unsigned qp=0) const
Derivative of saturation wrt capillary pressure.