27 #ifndef OPM_ECL_HYSTERESIS_CONFIG_HPP
28 #define OPM_ECL_HYSTERESIS_CONFIG_HPP
31 #include <opm/input/eclipse/Deck/Deck.hpp>
32 #include <opm/input/eclipse/Deck/DeckKeyword.hpp>
33 #include <opm/input/eclipse/Deck/DeckRecord.hpp>
34 #include <opm/input/eclipse/Deck/DeckItem.hpp>
52 enableHysteresis_ =
false;
53 pcHysteresisModel_ = 0;
54 krHysteresisModel_ = 0;
61 { enableHysteresis_ = yesno; }
67 {
return enableHysteresis_; }
76 { pcHysteresisModel_ = value; }
85 {
return pcHysteresisModel_; }
97 { krHysteresisModel_ = value; }
106 {
return krHysteresisModel_; }
114 void initFromState(
const Runspec& runspec)
116 enableHysteresis_ =
false;
118 enableHysteresis_ = runspec.hysterPar().active();
120 if (!enableHysteresis_)
123 krHysteresisModel_ = runspec.hysterPar().krHysteresisModel();
124 pcHysteresisModel_ = runspec.hysterPar().pcHysteresisModel();
130 bool enableHysteresis_;
133 int pcHysteresisModel_;
134 int krHysteresisModel_;
Specifies the configuration used by the ECL kr/pC hysteresis code.
Definition: EclHysteresisConfig.hpp:48
int pcHysteresisModel() const
Return the type of the hysteresis model which is used for capillary pressure.
Definition: EclHysteresisConfig.hpp:84
void setPcHysteresisModel(int value)
Set the type of the hysteresis model which is used for capillary pressure.
Definition: EclHysteresisConfig.hpp:75
int krHysteresisModel() const
Return the type of the hysteresis model which is used for relative permeability.
Definition: EclHysteresisConfig.hpp:105
void setKrHysteresisModel(int value)
Set the type of the hysteresis model which is used for relative permeability.
Definition: EclHysteresisConfig.hpp:96
void setEnableHysteresis(bool yesno)
Specify whether hysteresis is enabled or not.
Definition: EclHysteresisConfig.hpp:60
bool enableHysteresis() const
Returns whether hysteresis is enabled.
Definition: EclHysteresisConfig.hpp:66