27 #ifndef OPM_ECL_HYSTERESIS_CONFIG_HPP
28 #define OPM_ECL_HYSTERESIS_CONFIG_HPP
31 #include <opm/input/eclipse/EclipseState/Runspec.hpp>
45 enableHysteresis_ =
false;
46 pcHysteresisModel_ = -1;
47 krHysteresisModel_ = -1;
54 { enableHysteresis_ = yesno; }
60 {
return enableHysteresis_; }
69 { pcHysteresisModel_ = value; }
78 {
return pcHysteresisModel_; }
94 { krHysteresisModel_ = value; }
104 {
return krHysteresisModel_; }
112 {
return modParamTrapped_; }
120 {
return curvatureCapPrs_; }
128 void initFromState(
const Runspec& runspec)
130 enableHysteresis_ =
false;
132 enableHysteresis_ = runspec.hysterPar().active();
134 if (!enableHysteresis_)
137 krHysteresisModel_ = runspec.hysterPar().krHysteresisModel();
138 pcHysteresisModel_ = runspec.hysterPar().pcHysteresisModel();
139 modParamTrapped_ = runspec.hysterPar().modParamTrapped();
140 curvatureCapPrs_ = runspec.hysterPar().curvatureCapPrs();
146 bool enableHysteresis_;
149 int pcHysteresisModel_;
150 int krHysteresisModel_;
151 double modParamTrapped_;
152 double curvatureCapPrs_;
Specifies the configuration used by the ECL kr/pC hysteresis code.
Definition: EclHysteresisConfig.hpp:41
int pcHysteresisModel() const
Return the type of the hysteresis model which is used for capillary pressure.
Definition: EclHysteresisConfig.hpp:77
void setPcHysteresisModel(int value)
Set the type of the hysteresis model which is used for capillary pressure.
Definition: EclHysteresisConfig.hpp:68
int krHysteresisModel() const
Return the type of the hysteresis model which is used for relative permeability.
Definition: EclHysteresisConfig.hpp:103
double curvatureCapPrs() const
Curvature parameter used for capillary pressure hysteresis.
Definition: EclHysteresisConfig.hpp:119
void setKrHysteresisModel(int value)
Set the type of the hysteresis model which is used for relative permeability.
Definition: EclHysteresisConfig.hpp:93
void setEnableHysteresis(bool yesno)
Specify whether hysteresis is enabled or not.
Definition: EclHysteresisConfig.hpp:53
bool enableHysteresis() const
Returns whether hysteresis is enabled.
Definition: EclHysteresisConfig.hpp:59
double modParamTrapped() const
Regularisation parameter used for Killough model.
Definition: EclHysteresisConfig.hpp:111