26#ifndef DUMUX_EFF_TO_ABS_LAW_HH
27#define DUMUX_EFF_TO_ABS_LAW_HH
58template <
class EffLawT,
class AbsParamsT = EffToAbsLawParams<
typename EffLawT::Params> >
61 using EffLaw = EffLawT;
65 using Scalar =
typename EffLaw::Scalar;
79 return EffLaw::pc(params,
swToSwe(params,
sw));
94 return sweToSw(params, EffLaw::sw(params,
pc));
105 {
return EffLaw::endPointPc(params); }
148 return EffLaw::dswe_dpc(params,
pc)*
dsw_dswe(params);
164 return EffLaw::krw(params,
swToSwe(params,
sw));
193 return EffLaw::krn(params,
swToSwe(params,
sw));
220 return (
sw - params.swr())/(1. - params.swr() - params.snr());
234 return (sn - params.snr())/(1. - params.swr() - params.snr());
247 {
return swe*(1. - params.swr() - params.snr()) + params.swr(); }
249 [[deprecated(
"Will be removed after 3.2. Use sweToSw (without underscore suffix) instead!")]]
251 {
return sweToSw(params, swe); }
264 return sne*(1. - params.swr() - params.snr()) + params.snr();
276 {
return 1.0/(1. - params.swr() - params.snr()); }
278 [[deprecated(
"Will be removed after 3.2. Use dswe_dsw (without underscore suffix) instead!")]]
291 {
return 1. - params.swr() - params.snr(); }
293 [[deprecated(
"Will be removed after 3.2. Use dsw_dswe (without underscore suffix) instead!")]]
This material law takes a material law defined for effective saturations and converts it to a materia...
Definition: 2p/efftoabslaw.hh:60
static Scalar dkrn_dsw(const Params ¶ms, Scalar sw)
Returns the partial derivative of the relative permeability of the non-wetting phase with respect to ...
Definition: 2p/efftoabslaw.hh:204
static Scalar krn(const Params ¶ms, Scalar sw)
The relative permeability for the non-wetting phase.
Definition: 2p/efftoabslaw.hh:191
static Scalar snToSne(const Params ¶ms, Scalar sn)
Convert an absolute non-wetting saturation to an effective one.
Definition: 2p/efftoabslaw.hh:232
static Scalar endPointPc(const Params ¶ms)
The capillary pressure at Swe = 1.0 also called end point capillary pressure.
Definition: 2p/efftoabslaw.hh:104
static Scalar sweToSw(const Params ¶ms, Scalar swe)
Convert an effective wetting saturation to an absolute one.
Definition: 2p/efftoabslaw.hh:246
static Scalar dpc_dsw(const Params ¶ms, Scalar sw)
Returns the partial derivative of the capillary pressure w.r.t the absolute saturation.
Definition: 2p/efftoabslaw.hh:123
static Scalar dswe_dsw(const Params ¶ms)
Derivative of the effective saturation w.r.t. the absolute saturation.
Definition: 2p/efftoabslaw.hh:275
static Scalar dswe_dsw_(const Params ¶ms)
Definition: 2p/efftoabslaw.hh:279
static Scalar dsw_dpc(const Params ¶ms, Scalar pc)
Returns the partial derivative of the absolute saturation w.r.t. the capillary pressure.
Definition: 2p/efftoabslaw.hh:146
static Scalar sw(const Params ¶ms, Scalar pc)
The saturation-capillary pressure curve.
Definition: 2p/efftoabslaw.hh:92
AbsParamsT Params
Definition: 2p/efftoabslaw.hh:64
static Scalar swToSwe(const Params ¶ms, Scalar sw)
Convert an absolute wetting saturation to an effective one.
Definition: 2p/efftoabslaw.hh:218
static Scalar dsw_dswe_(const Params ¶ms)
Definition: 2p/efftoabslaw.hh:294
static Scalar dsw_dswe(const Params ¶ms)
Derivative of the absolute saturation w.r.t. the effective saturation.
Definition: 2p/efftoabslaw.hh:290
static Scalar sweToSw_(const Params ¶ms, Scalar swe)
Definition: 2p/efftoabslaw.hh:250
static Scalar pc(const Params ¶ms, Scalar sw)
The capillary pressure-saturation curve.
Definition: 2p/efftoabslaw.hh:77
typename EffLaw::Scalar Scalar
Definition: 2p/efftoabslaw.hh:65
static Scalar sneToSn(const Params ¶ms, Scalar sne)
Convert an effective non-wetting saturation to an absolute one.
Definition: 2p/efftoabslaw.hh:262
static Scalar dkrw_dsw(const Params ¶ms, Scalar sw)
Returns the partial derivative of the relative permeability of the wetting phase with respect to the ...
Definition: 2p/efftoabslaw.hh:175
static Scalar krw(const Params ¶ms, Scalar sw)
The relative permeability for the wetting phase.
Definition: 2p/efftoabslaw.hh:162
A default implementation of the parameters for the adapter class to convert material laws from effect...