Compute the group rates that takes into account limitation on the sublevels

This commit is contained in:
Tor Harald Sandve
2022-11-03 09:02:41 +01:00
parent 1a09608263
commit 9c8f778495
8 changed files with 129 additions and 171 deletions

View File

@@ -247,7 +247,7 @@ GasLiftSingleWellGeneric::checkGroupTargetsViolated(const BasicRates& rates, con
auto target_opt = this->group_info_.getTarget(rate_type, group_name);
if (target_opt) {
auto delta_rate = new_rates[rate_type] - rates[rate_type];
auto new_group_rate = this->group_info_.getRate(rate_type, group_name) + efficiency * delta_rate;
auto new_group_rate = this->group_info_.getPotential(rate_type, group_name) + efficiency * delta_rate;
if (new_group_rate > *target_opt) {
if (this->debug) {
const std::string msg