This basically reverts changes applied in PR 3095.

With this gefac is only applied with accumulating rates from the level below
This commit is contained in:
Tor Harald Sandve
2021-08-06 11:47:30 +02:00
parent b6c4b2e509
commit bc70fd5540
3 changed files with 25 additions and 34 deletions

View File

@@ -114,7 +114,6 @@ getGroupInjectionControl(const Group& group,
}
}
efficiencyFactor *= group.getGroupEfficiencyFactor();
const auto& well = baseif_.wellEcl();
const auto pu = baseif_.phaseUsage();
@@ -165,7 +164,8 @@ getGroupInjectionControl(const Group& group,
}
// Avoid negative target rates coming from too large local reductions.
const double target_rate = std::max(0.0, target / efficiencyFactor);
const auto current_rate = injection_rate; // Switch sign since 'rates' are negative for producers.
const auto current_rate = injection_rate;
control_eq = current_rate - target_rate;
}
@@ -207,7 +207,6 @@ getGroupProductionControl(const Group& group,
}
}
efficiencyFactor *= group.getGroupEfficiencyFactor();
const auto& well = baseif_.wellEcl();
const auto pu = baseif_.phaseUsage();