32 controls(controls_arg)
36 bool hasControl(WellProducerCMode cmode_arg)
const
38 return (this->controls &
static_cast<int>(cmode_arg)) != 0;
41 void skipControl(WellProducerCMode cmode_arg) {
42 auto int_arg =
static_cast<int>(cmode_arg);
43 if ((this->controls & int_arg) != 0)
44 this->controls -= int_arg;
47 void addControl(WellProducerCMode cmode_arg) {
48 auto int_arg =
static_cast<int>(cmode_arg);
49 if ((this->controls & int_arg) == 0)
50 this->controls += int_arg;
59 return this->cmode == other.cmode &&
60 this->oil_rate == other.oil_rate &&
61 this->water_rate == other.water_rate &&
62 this->gas_rate == other.gas_rate &&
63 this->liquid_rate == other.liquid_rate &&
64 this->resv_rate == other.resv_rate &&
65 this->bhp_history == other.bhp_history &&
66 this->thp_history == other.thp_history &&
67 this->bhp_limit == other.bhp_limit &&
68 this->thp_limit == other.thp_limit &&
69 this->alq_value == other.alq_value &&
70 this->vfp_table_number == other.vfp_table_number &&
71 this->prediction_mode == other.prediction_mode;
74 WellProducerCMode cmode = WellProducerCMode::NONE;
78 double liquid_rate{0};
80 double bhp_history{0};
81 double thp_history{0};
85 int vfp_table_number{0};
86 bool prediction_mode{0};
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30