Add support for maximum total gas (alq + gas rate) in GLIFTOPT

Dont increase gaslift if the groups alq + gas production rate is above the given target
This commit is contained in:
Tor Harald Sandve
2022-02-02 10:28:13 +01:00
parent eb6265b148
commit 0b923e505a
4 changed files with 42 additions and 0 deletions

View File

@@ -202,6 +202,14 @@ maxAlq(const std::string& group_name)
return group_rate.maxAlq();
}
std::optional<double>
GasLiftGroupInfo::
maxTotalGasRate(const std::string& group_name)
{
auto& group_rate = this->group_rate_map_.at(group_name);
return group_rate.maxTotalGasRate();
}
double
GasLiftGroupInfo::
oilRate(const std::string &group_name) const