26#ifndef DUMUX_EFF_TO_ABS_LAW_HH
27#define DUMUX_EFF_TO_ABS_LAW_HH
29#warning "This header is deprecated. Removal after 3.3. Use new material laws."
60template <
class EffLawT,
class AbsParamsT = EffToAbsLawParams<
typename EffLawT::Params> >
63 using EffLaw = EffLawT;
67 using Scalar =
typename EffLaw::Scalar;
81 return EffLaw::pc(params,
swToSwe(params,
sw));
96 return sweToSw(params, EffLaw::sw(params,
pc));
107 {
return EffLaw::endPointPc(params); }
150 return EffLaw::dswe_dpc(params,
pc)*
dsw_dswe(params);
166 return EffLaw::krw(params,
swToSwe(params,
sw));
195 return EffLaw::krn(params,
swToSwe(params,
sw));
222 return (
sw - params.swr())/(1. - params.swr() - params.snr());
236 return (sn - params.snr())/(1. - params.swr() - params.snr());
249 {
return swe*(1. - params.swr() - params.snr()) + params.swr(); }
261 {
return sne*(1. - params.swr() - params.snr()) + params.snr(); }
272 {
return 1.0/(1. - params.swr() - params.snr()); }
283 {
return 1. - params.swr() - params.snr(); }
This material law takes a material law defined for effective saturations and converts it to a materia...
Definition: 2p/efftoabslaw.hh:62
static Scalar dkrn_dsw(const Params ¶ms, Scalar sw)
Returns the partial derivative of the relative permeability of the nonwetting phase with respect to t...
Definition: 2p/efftoabslaw.hh:206
static Scalar krn(const Params ¶ms, Scalar sw)
The relative permeability for the nonwetting phase.
Definition: 2p/efftoabslaw.hh:193
static Scalar snToSne(const Params ¶ms, Scalar sn)
Convert an absolute nonwetting saturation to an effective one.
Definition: 2p/efftoabslaw.hh:234
static Scalar endPointPc(const Params ¶ms)
The capillary pressure at Swe = 1.0 also called end point capillary pressure.
Definition: 2p/efftoabslaw.hh:106
static Scalar sweToSw(const Params ¶ms, Scalar swe)
Convert an effective wetting saturation to an absolute one.
Definition: 2p/efftoabslaw.hh:248
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:125
static Scalar dswe_dsw(const Params ¶ms)
Derivative of the effective saturation w.r.t. the absolute saturation.
Definition: 2p/efftoabslaw.hh:271
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:148
static Scalar sw(const Params ¶ms, Scalar pc)
The saturation-capillary pressure curve.
Definition: 2p/efftoabslaw.hh:94
AbsParamsT Params
Definition: 2p/efftoabslaw.hh:66
static Scalar swToSwe(const Params ¶ms, Scalar sw)
Convert an absolute wetting saturation to an effective one.
Definition: 2p/efftoabslaw.hh:220
static Scalar dsw_dswe(const Params ¶ms)
Derivative of the absolute saturation w.r.t. the effective saturation.
Definition: 2p/efftoabslaw.hh:282
static Scalar pc(const Params ¶ms, Scalar sw)
The capillary pressure-saturation curve.
Definition: 2p/efftoabslaw.hh:79
typename EffLaw::Scalar Scalar
Definition: 2p/efftoabslaw.hh:67
static Scalar sneToSn(const Params ¶ms, Scalar sne)
Convert an effective nonwetting saturation to an absolute one.
Definition: 2p/efftoabslaw.hh:260
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:177
static Scalar krw(const Params ¶ms, Scalar sw)
The relative permeability for the wetting phase.
Definition: 2p/efftoabslaw.hh:164
A default implementation of the parameters for the adapter class to convert material laws from effect...