25#ifndef VAN_GENUCHTEN_PARAMS_HH
26#define VAN_GENUCHTEN_PARAMS_HH
28#include <dune/common/float_cmp.hh>
40template<
class ScalarT>
58 template<
class OtherParams>
61 return Dune::FloatCmp::eq(vgAlpha_, otherParams.vgAlpha(), 1e-6*vgAlpha_)
62 && Dune::FloatCmp::eq(vgn_, otherParams.vgn(), 1e-6*vgn_);
93 { vgm_ = m; vgn_ = 1/(1 - vgm_); }
109 { vgn_ = n; vgm_ = 1 - 1/vgn_; }
make the local view function available whenever we use the grid geometry
Definition: adapt.hh:29
Specification of the material parameters for the van Genuchten constitutive relations.
Definition: vangenuchtenparams.hh:42
Scalar vgAlpha() const
Return the shape parameter of van Genuchten's curve.
Definition: vangenuchtenparams.hh:69
VanGenuchtenParams()
Definition: vangenuchtenparams.hh:46
void setVgAlpha(Scalar v)
Set the shape parameter of van Genuchten's curve.
Definition: vangenuchtenparams.hh:76
VanGenuchtenParams(Scalar vgAlpha, Scalar vgn)
Definition: vangenuchtenparams.hh:49
bool operator==(const OtherParams &otherParams) const
Equality comparison with another set of params.
Definition: vangenuchtenparams.hh:59
void setVgm(Scalar m)
Set the shape parameter of van Genuchten's curve.
Definition: vangenuchtenparams.hh:92
Scalar vgn() const
Return the shape parameter of van Genuchten's curve.
Definition: vangenuchtenparams.hh:99
Scalar vgm() const
Return the shape parameter of van Genuchten's curve.
Definition: vangenuchtenparams.hh:83
void setVgn(Scalar n)
Set the shape parameter of van Genuchten's curve.
Definition: vangenuchtenparams.hh:108
ScalarT Scalar
Definition: vangenuchtenparams.hh:44