27#ifndef OPM_THREE_PHASE_PARKER_VAN_GENUCHTEN_PARAMS_HPP
28#define OPM_THREE_PHASE_PARKER_VAN_GENUCHTEN_PARAMS_HPP
46template<
class TraitsT>
52 typedef TraitsT Traits;
53 typedef typename Traits::Scalar Scalar;
66 { EnsureFinalized::check();
return vgAlpha_; }
80 { EnsureFinalized::check();
return vgM_; }
89 { vgM_ = m; vgN_ = 1/(1 - vgM_); }
96 { EnsureFinalized::check();
return vgN_; }
105 { vgN_ = n; vgM_ = 1 - 1/vgN_; }
111 { EnsureFinalized::check();
return Swr_; }
123 { EnsureFinalized::check();
return Snr_; }
135 { EnsureFinalized::check();
return Sgr_; }
144 { EnsureFinalized::check();
return Swrx_; }
158 void setBetaGN(Scalar input)
165 { EnsureFinalized::check();
return betaNW_; }
167 Scalar betaGN()
const
168 { EnsureFinalized::check();
return betaGN_; }
174 { krRegardsSnr_ = input; }
179 { EnsureFinalized::check();
return krRegardsSnr_; }
181 void checkDefined()
const
183 Valgrind::CheckDefined(vgAlpha_);
184 Valgrind::CheckDefined(vgM_);
185 Valgrind::CheckDefined(vgN_);
186 Valgrind::CheckDefined(Swr_);
187 Valgrind::CheckDefined(Snr_);
188 Valgrind::CheckDefined(Sgr_);
189 Valgrind::CheckDefined(Swrx_);
190 Valgrind::CheckDefined(betaNW_);
191 Valgrind::CheckDefined(betaGN_);
192 Valgrind::CheckDefined(krRegardsSnr_);
Default implementation for asserting finalization of parameter objects.
Some templates to wrap the valgrind client request macros.
Default implementation for asserting finalization of parameter objects.
Definition EnsureFinalized.hpp:47
void finalize()
Mark the object as finalized.
Definition EnsureFinalized.hpp:75
Specification of the material params for the three-phase van Genuchten capillary pressure model.
Definition ThreePhaseParkerVanGenuchtenParams.hpp:48
void setVgN(Scalar n)
Set the shape parameter of van Genuchten's curve.
Definition ThreePhaseParkerVanGenuchtenParams.hpp:104
void setVgM(Scalar m)
Set the shape parameter of van Genuchten's curve.
Definition ThreePhaseParkerVanGenuchtenParams.hpp:88
Scalar Snr() const
Return the residual non-wetting saturation.
Definition ThreePhaseParkerVanGenuchtenParams.hpp:122
Scalar vgAlpha() const
Return the shape parameter of van Genuchten's curve.
Definition ThreePhaseParkerVanGenuchtenParams.hpp:65
void setSwrx(Scalar input)
Set the residual gas saturation.
Definition ThreePhaseParkerVanGenuchtenParams.hpp:149
void setkrRegardsSnr(bool input)
defines if residual n-phase saturation should be regarded in its relative permeability.
Definition ThreePhaseParkerVanGenuchtenParams.hpp:173
Scalar Sgr() const
Return the residual gas saturation.
Definition ThreePhaseParkerVanGenuchtenParams.hpp:134
Scalar Swr() const
Return the residual wetting saturation.
Definition ThreePhaseParkerVanGenuchtenParams.hpp:110
void setSnr(Scalar input)
Set the residual non-wetting saturation.
Definition ThreePhaseParkerVanGenuchtenParams.hpp:128
Scalar vgM() const
Return the shape parameter of van Genuchten's curve.
Definition ThreePhaseParkerVanGenuchtenParams.hpp:79
Scalar vgN() const
Return the shape parameter of van Genuchten's curve.
Definition ThreePhaseParkerVanGenuchtenParams.hpp:95
void setBetaNW(Scalar input)
defines the scaling parameters of capillary pressure between the phases (=1 for Gas-Water)
Definition ThreePhaseParkerVanGenuchtenParams.hpp:155
void setSgr(Scalar input)
Set the residual gas saturation.
Definition ThreePhaseParkerVanGenuchtenParams.hpp:140
void setVgAlpha(Scalar v)
Set the shape parameter of van Genuchten's curve.
Definition ThreePhaseParkerVanGenuchtenParams.hpp:72
bool krRegardsSnr() const
Calls if residual n-phase saturation should be regarded in its relative permeability.
Definition ThreePhaseParkerVanGenuchtenParams.hpp:178
void setSwr(Scalar input)
Set the residual wetting saturation.
Definition ThreePhaseParkerVanGenuchtenParams.hpp:116
Scalar betaNW() const
Return the values for the beta scaling parameters of capillary pressure between the phases.
Definition ThreePhaseParkerVanGenuchtenParams.hpp:164
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30