25#ifndef DUMUX_VAN_GENUCHTEN_HH
26#define DUMUX_VAN_GENUCHTEN_HH
50template <
class ScalarT,
class ParamsT = VanGenuchtenParams<ScalarT> >
55 using Scalar =
typename Params::Scalar;
78 swe = min(max(swe, 0.0), 1.0);
80 const Scalar pc = pow(pow(swe, -1.0/params.vgm()) - 1, 1.0/params.vgn())/params.vgAlpha();
107 const Scalar sw = pow(pow(params.vgAlpha()*
pc, params.vgn()) + 1, -params.vgm());
148 swe = min(max(swe, 0.0), 1.0);
150 const Scalar powSwe = pow(swe, -1/params.vgm());
151 return - 1.0/params.vgAlpha() * pow(powSwe - 1, 1.0/params.vgn() - 1)/params.vgn()
152 * powSwe/swe/params.vgm();
175 const Scalar powAlphaPc = pow(params.vgAlpha()*
pc, params.vgn());
176 return -pow(powAlphaPc + 1, -params.vgm()-1)*params.vgm()*powAlphaPc/
pc*params.vgn();
199 swe = min(max(swe, 0.0), 1.0);
201 const Scalar r = 1.0 - pow(1.0 - pow(swe, 1.0/params.vgm()), params.vgm());
202 return pow(swe, params.vgl())*r*r;
225 swe = min(max(swe, 0.0), 1.0);
227 const Scalar x = 1.0 - pow(swe, 1.0/params.vgm());
228 const Scalar xToM = pow(x, params.vgm());
229 return (1.0 - xToM)*pow(swe, params.vgl()-1) * ( (1.0 - xToM)*params.vgl() + 2*xToM*(1.0-x)/x );
253 swe = min(max(swe, 0.0), 1.0);
255 return pow(1 - swe, params.vgl()) * pow(1 - pow(swe, 1.0/params.vgm()), 2*params.vgm());
279 swe = min(max(swe, 0.0), 1.0);
281 const auto sne = 1.0 - swe;
282 const auto x = 1.0 - pow(swe, 1.0/params.vgm());
283 return -pow(sne, params.vgl()-1.0) * pow(x, 2*params.vgm() - 1.0) * ( params.vgl()*x + 2.0*sne/swe*(1.0 - x) );
Specification of the material parameters for the van Genuchten-Mualem constitutive relations.
Implementation of the van Genuchten capillary pressure <-> saturation relation. This class bundles th...
Definition: vangenuchten.hh:52
static Scalar dkrw_dswe(const Params ¶ms, Scalar swe)
The derivative of the relative permeability for the wetting phase in regard to the wetting saturation...
Definition: vangenuchten.hh:219
static Scalar sw(const Params ¶ms, Scalar pc)
The saturation-capillary pressure curve according to van Genuchten.
Definition: vangenuchten.hh:100
typename Params::Scalar Scalar
Definition: vangenuchten.hh:55
static Scalar dpc_dswe(const Params ¶ms, Scalar swe)
The partial derivative of the capillary pressure w.r.t. the effective saturation according to van Gen...
Definition: vangenuchten.hh:142
static Scalar krw(const Params ¶ms, Scalar swe)
The relative permeability for the wetting phase of the medium implied by van Genuchten / Mualem param...
Definition: vangenuchten.hh:193
static Scalar dswe_dpc(const Params ¶ms, Scalar pc)
The partial derivative of the effective saturation to the capillary pressure according to van Genucht...
Definition: vangenuchten.hh:168
static Scalar endPointPc(const Params ¶ms)
The capillary pressure at Swe = 1.0 also called end point capillary pressure.
Definition: vangenuchten.hh:119
static Scalar krn(const Params ¶ms, Scalar swe)
The relative permeability for the non-wetting phase of the medium implied by van Genuchten's paramete...
Definition: vangenuchten.hh:247
ParamsT Params
Definition: vangenuchten.hh:54
static Scalar pc(const Params ¶ms, Scalar swe)
The capillary pressure-saturation curve according to van Genuchten.
Definition: vangenuchten.hh:72
static Scalar dkrn_dswe(const Params ¶ms, Scalar swe)
The derivative of the relative permeability for the non-wetting phase in regard to the wetting satura...
Definition: vangenuchten.hh:273