28#ifndef PARKERVANGEN_PARAMS_3P_HH
29#define PARKERVANGEN_PARAMS_3P_HH
31#warning "This header is deprecated. Removal after 3.3. Use new material laws."
33#include <dune/common/fvector.hh>
42template<
class ScalarT>
49 {betaGw_ = betaNw_ = betaGn_ = 1.0;}
52 Dune::FieldVector<Scalar, 4> residualSaturation,
Scalar betaNw = 1.0,
57 setSwr(residualSaturation[0]);
58 setSnr(residualSaturation[1]);
59 setSgr(residualSaturation[2]);
98 { vgm_ = m; vgn_ = 1/(1 - vgm_); }
115 { vgn_ = n; vgm_ = 1 - 1/vgn_; }
130 DUNE_THROW(Dune::NotImplemented,
"sgr for three phases not required and therefore not implemented");
132 DUNE_THROW(Dune::InvalidStateException,
"Invalid phase index " << phaseIdx);
140 setSwr(residualSaturation[0]);
141 setSnr(residualSaturation[1]);
142 setSgr(residualSaturation[2]);
194 std::cerr <<
"swrx for three phases not implemented anymore. Equals swr" << std::endl;
204 std::cerr <<
"swrx for three phases not implemented anymore. Equals swr" << std::endl;
235 { krRegardsSnr_ = input; }
241 {
return krRegardsSnr_; }
255 { rhoBulk_ = input; }
Reference implementation of a van Genuchten params.
Definition: parkervangen3pparams.hh:44
ScalarT Scalar
Definition: parkervangen3pparams.hh:46
Scalar vgm() const
Return the shape parameter of van Genuchten's curve.
Definition: parkervangen3pparams.hh:87
Scalar satResidual(int phaseIdx) const
Return the residual saturation.
Definition: parkervangen3pparams.hh:121
void setKdNAPL(Scalar input)
Set the adsorption coefficient.
Definition: parkervangen3pparams.hh:267
Scalar snr() const
Return the residual nonwetting saturation.
Definition: parkervangen3pparams.hh:162
Scalar rhoBulk() const
Return the bulk density of the porous medium in .
Definition: parkervangen3pparams.hh:247
void setResiduals(Dune::FieldVector< Scalar, 3 > residualSaturation)
Set all residual saturations.
Definition: parkervangen3pparams.hh:138
Scalar sgr() const
Return the residual gas saturation.
Definition: parkervangen3pparams.hh:175
bool krRegardsSnr() const
Calls if residual n-phase saturation should be regarded in its relative permeability.
Definition: parkervangen3pparams.hh:240
void setBetaGn(Scalar input)
Definition: parkervangen3pparams.hh:212
void setVgAlpha(Scalar v)
Set the shape parameter of van Genuchten's curve.
Definition: parkervangen3pparams.hh:80
void setSnr(Scalar input)
Set the residual nonwetting saturation.
Definition: parkervangen3pparams.hh:169
void setRhoBulk(Scalar input)
Set the bulk density of the porous medium.
Definition: parkervangen3pparams.hh:254
void setVgn(Scalar n)
Set the shape parameter of van Genuchten's curve.
Definition: parkervangen3pparams.hh:114
Scalar betaGn() const
Definition: parkervangen3pparams.hh:224
Scalar KdNAPL() const
Return the adsorption coefficient.
Definition: parkervangen3pparams.hh:260
Scalar betaNw() const
Return the values for the beta scaling parameters of capillary pressure between the phases.
Definition: parkervangen3pparams.hh:221
void setVgm(Scalar m)
Set the shape parameter of van Genuchten's curve.
Definition: parkervangen3pparams.hh:97
void setSwr(Scalar input)
Set the residual wetting saturation.
Definition: parkervangen3pparams.hh:156
void setKrRegardsSnr(bool input)
defines if residual n-phase saturation should be regarded in its relative permeability.
Definition: parkervangen3pparams.hh:234
void setSwrx(Scalar v)
Set the residual total liquid saturation.
Definition: parkervangen3pparams.hh:202
void setSgr(Scalar input)
Set the residual gas saturation.
Definition: parkervangen3pparams.hh:184
Scalar swr() const
Return the residual wetting saturation.
Definition: parkervangen3pparams.hh:149
Scalar betaGw() const
Definition: parkervangen3pparams.hh:227
Scalar swrx() const
Set the residual total liquid saturation.
Definition: parkervangen3pparams.hh:192
Scalar vgAlpha() const
Return the shape parameter of van Genuchten's curve.
Definition: parkervangen3pparams.hh:72
Scalar vgn() const
Return the shape parameter of van Genuchten's curve.
Definition: parkervangen3pparams.hh:104
ParkerVanGen3PParams()
Definition: parkervangen3pparams.hh:48
void setBetaGw(Scalar input)
Definition: parkervangen3pparams.hh:215
void setBetaNw(Scalar input)
defines the scaling parameters of capillary pressure between the phases (=1 for Gas-Water)
Definition: parkervangen3pparams.hh:209
ParkerVanGen3PParams(Scalar vgAlpha, Scalar vgn, Scalar KdNAPL, Scalar rhoBulk, Dune::FieldVector< Scalar, 4 > residualSaturation, Scalar betaNw=1.0, Scalar betaGn=1.0, Scalar betaGw=1.0, bool regardSnr=false)
Definition: parkervangen3pparams.hh:51