26#ifndef DUMUX_EFF_TO_ABS_LAW_HH
27#define DUMUX_EFF_TO_ABS_LAW_HH
29#include <dune/common/exceptions.hh>
32#warning "This header is deprecated. Removal after 3.3. Use new material laws."
61template <
class EffLawT,
class AbsParamsT = EffToAbsLawParams<
typename EffLawT::Params> >
64 using EffLaw = EffLawT;
68 using Scalar =
typename EffLaw::Scalar;
82 return EffLaw::pc(params,
swToSwe(params,
sw));
92 return EffLaw::pcgw(params,
swToSwe(params,
sw));
102 return EffLaw::pcnw(params,
swToSwe(params,
sw));
112 return EffLaw::pcgn(params,
stToSte(params, st));
122 return EffLaw::pcAlpha(params, sn);
138 return EffLaw::sw(params,
pc);
158 return EffLaw::dpc_dswe(params,
pc);
180 return EffLaw::dsw_dpc(params,
pc);
199 return EffLaw::krw(params,
swToSwe(params,
sw));
237 return EffLaw::krg(params,
stToSte(params, st));
251 return EffLaw::kr(params, phaseIdx,
swToSwe(params,
sw), sn,
stToSte(params, st));
260 return EffLaw::bulkDensTimesAdsorpCoeff(params);
274 return (
sw-params.swr())/(1.-params.swr());
302 return (st-params.swr()) / (1-params.swr());
316 DUNE_THROW(Dune::NotImplemented,
"sgTosge for three phases not implemented!");
331 DUNE_THROW(Dune::NotImplemented,
"sweTosw for three phases not implemented!");
336 DUNE_THROW(Dune::NotImplemented,
"sneTosn for three phases not implemented!");
341 DUNE_THROW(Dune::NotImplemented,
"sgeTosg for three phases not implemented!");
353 DUNE_THROW(Dune::NotImplemented,
"dswe_dsw for three phases not implemented!");
366 DUNE_THROW(Dune::NotImplemented,
"dsw_dswe for three phases not implemented!");
static Scalar pcgn(const Params ¶ms, const Scalar st)
The capillary pressure-saturation curve for the gas and nonwetting phase.
Definition: 3p/efftoabslaw.hh:110
static Scalar pcgw(const Params ¶ms, const Scalar sw)
The capillary pressure-saturation curve for the gas and wetting phase.
Definition: 3p/efftoabslaw.hh:90
static Scalar krw(const Params ¶ms, Scalar sw, const Scalar sn)
The relative permeability for the wetting phase.
Definition: 3p/efftoabslaw.hh:197
static Scalar dpc_dsw(const Params ¶ms, const Scalar sw)
Returns the partial derivative of the capillary pressure w.r.t the absolute saturation....
Definition: 3p/efftoabslaw.hh:156
static Scalar pcAlpha(const Params ¶ms, const Scalar sn)
This function ensures a continuous transition from 2 to 3 phases and vice versa.
Definition: 3p/efftoabslaw.hh:120
static Scalar dswe_dsw_(const Params ¶ms)
Derivative of the effective saturation w.r.t. the absolute saturation.
Definition: 3p/efftoabslaw.hh:351
static Scalar dsw_dpc(const Params ¶ms, const Scalar pc)
Returns the partial derivative of the absolute saturation w.r.t. the capillary pressure....
Definition: 3p/efftoabslaw.hh:178
static Scalar sw(const Params ¶ms, Scalar pc)
The saturation-capillary pressure curve.
Definition: 2p/efftoabslaw.hh:94
static Scalar snToSne(const Params ¶ms, const Scalar sn)
Convert an absolute nonwetting saturation to an effective one.
Definition: 3p/efftoabslaw.hh:286
static Scalar pcnw(const Params ¶ms, const Scalar sw)
The capillary pressure-saturation curve the nonwetting and wetting phase.
Definition: 3p/efftoabslaw.hh:100
static Scalar krg(const Params ¶ms, const Scalar sw, const Scalar sn)
The relative permeability for the gas phase.
Definition: 3p/efftoabslaw.hh:234
static Scalar krn(const Params ¶ms, const Scalar sw, const Scalar sn)
The relative permeability for the nonwetting phase.
Definition: 3p/efftoabslaw.hh:215
static Scalar sgToSge(const Params ¶ms, Scalar sg)
Convert an absolute gas saturation to an effective one.
Definition: 3p/efftoabslaw.hh:314
static Scalar sneToSn_(const Params ¶ms, Scalar sne)
Definition: 3p/efftoabslaw.hh:334
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 sw(const Params ¶ms, const Scalar pc)
The saturation-capillary pressure curve.
Definition: 3p/efftoabslaw.hh:136
static Scalar bulkDensTimesAdsorpCoeff(const Params ¶ms)
the basis for calculating adsorbed NAPL in storage term
Definition: 3p/efftoabslaw.hh:258
static Scalar dsw_dswe_(const Params ¶ms)
Derivative of the absolute saturation w.r.t. the effective saturation.
Definition: 3p/efftoabslaw.hh:364
static Scalar swToSwe(const Params ¶ms, const Scalar sw)
Convert an absolute wetting saturation to an effective one.
Definition: 3p/efftoabslaw.hh:272
static Scalar sgeToSg_(const Params ¶ms, Scalar sge)
Definition: 3p/efftoabslaw.hh:339
static Scalar sweToSw_(const Params ¶ms, Scalar swe)
Convert an effective wetting saturation to an absolute one.
Definition: 3p/efftoabslaw.hh:329
static Scalar kr(const Params ¶ms, const int phaseIdx, const Scalar sw, const Scalar sn, const Scalar sg)
The relative permeability for a phase.
Definition: 3p/efftoabslaw.hh:248
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 stToSte(const Params ¶ms, const Scalar st)
Convert an absolute total liquid saturation to an effective one.
Definition: 3p/efftoabslaw.hh:300
static Scalar pc(const Params ¶ms, const Scalar sw)
The capillary pressure-saturation curve.
Definition: 3p/efftoabslaw.hh:80
A default implementation of the parameters for the adapter class to convert material laws from effect...