19 #ifndef WELLTEST_CONFIG_H 20 #define WELLTEST_CONFIG_H 24 #include <unordered_map> 39 namespace EclConfigReason {
40 constexpr
int NONE = 1;
41 constexpr
int PHYSICAL = 2;
42 constexpr
int ECONOMIC = 3;
43 constexpr
int GCON = 5;
44 constexpr
int THPLimit = 7;
45 constexpr
int CONNECTION = 11;
48 namespace EclCloseReason {
49 constexpr
int NONE = 1;
50 constexpr
int PHYSICAL = 3;
51 constexpr
int ECONOMIC = 5;
52 constexpr
int GCON = 6;
53 constexpr
int THPLimit = 9;
70 using Reason = WTest::Reason;
74 double test_interval{};
76 double startup_time{};
79 int begin_report_step{};
81 bool operator==(
const WTESTWell& data)
const {
82 return name == data.name &&
83 reasons == data.reasons &&
84 test_interval == data.test_interval &&
85 num_test == data.num_test &&
86 startup_time == data.startup_time &&
87 begin_report_step == data.begin_report_step;
91 WTESTWell(
const std::string& name,
int reasons,
double test_interval,
int num_test,
double startup_time,
int begin_report_step);
92 bool test_well(
int num_attempt,
double elapsed)
const;
94 static int inverse_ecl_reasons(
int ecl_reasons);
95 static WTESTWell serializationTestObject();
96 int ecl_reasons()
const;
98 template<
class Serializer>
103 serializer(test_interval);
104 serializer(num_test);
105 serializer(startup_time);
106 serializer(begin_report_step);
114 void add_well(
const std::string& well,
int reasons,
double test_interval,
115 int num_test,
double startup_time,
int current_step);
116 void add_well(
const std::string& well,
const std::string& reasons,
double test_interval,
117 int num_test,
double startup_time,
int current_step);
118 void drop_well(
const std::string& well);
119 bool has(
const std::string& well)
const;
120 bool has(
const std::string& well, Reason reason)
const;
121 const WTESTWell&
get(
const std::string& well)
const;
127 template<
class Serializer>
134 std::unordered_map<std::string, WTESTWell> wells;
Definition: WellTestConfig.hpp:71
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:30
Definition: WellTestConfig.hpp:67
Class for (de-)serializing.
Definition: Serializer.hpp:94