Limit well rates to honor group rates

If a well is under a group that is limited by a target, it should use as little gaslift as possible.
The reduction algorithm will reduce the gaslift of the well as long as the groups potential is above the groups target.
This commit is contained in:
Tor Harald Sandve
2022-02-01 12:55:04 +01:00
parent 29ec104bb6
commit 009134d037
5 changed files with 68 additions and 23 deletions

View File

@@ -387,18 +387,18 @@ getProducerWellRates_(int well_index)
{
const auto& pu = this->phase_usage_;
const auto& ws= this->well_state_.well(well_index);
const auto& wrate = ws.surface_rates;
const auto& wrate = ws.well_potentials;
const auto oil_rate = pu.phase_used[Oil]
? -wrate[pu.phase_pos[Oil]]
? wrate[pu.phase_pos[Oil]]
: 0.0;
const auto gas_rate = pu.phase_used[Gas]
? -wrate[pu.phase_pos[Gas]]
? wrate[pu.phase_pos[Gas]]
: 0.0;
const auto water_rate = pu.phase_used[Water]
? -wrate[pu.phase_pos[Water]]
? wrate[pu.phase_pos[Water]]
: 0.0;
return {oil_rate, gas_rate, water_rate};