mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Honor GEFAC of topmost group when summing solvent rates.
This commit is contained in:
parent
6e8b1e8d2e
commit
39546864ab
@ -194,8 +194,7 @@ namespace WellGroupHelpers
|
|||||||
double rate = 0.0;
|
double rate = 0.0;
|
||||||
for (const std::string& groupName : group.groups()) {
|
for (const std::string& groupName : group.groups()) {
|
||||||
const Group& groupTmp = schedule.getGroup(groupName, reportStepIdx);
|
const Group& groupTmp = schedule.getGroup(groupName, reportStepIdx);
|
||||||
rate += groupTmp.getGroupEfficiencyFactor()
|
rate += sumSolventRates(groupTmp, schedule, wellState, reportStepIdx, injector);
|
||||||
* sumSolventRates(groupTmp, schedule, wellState, reportStepIdx, injector);
|
|
||||||
}
|
}
|
||||||
const auto& end = wellState.wellMap().end();
|
const auto& end = wellState.wellMap().end();
|
||||||
for (const std::string& wellName : group.wells()) {
|
for (const std::string& wellName : group.wells()) {
|
||||||
@ -224,7 +223,8 @@ namespace WellGroupHelpers
|
|||||||
else
|
else
|
||||||
rate -= factor * wellState.solventWellRate(well_index);
|
rate -= factor * wellState.solventWellRate(well_index);
|
||||||
}
|
}
|
||||||
return rate;
|
const auto& gefac = group.getGroupEfficiencyFactor();
|
||||||
|
return gefac * rate;
|
||||||
}
|
}
|
||||||
|
|
||||||
void updateGroupTargetReduction(const Group& group,
|
void updateGroupTargetReduction(const Group& group,
|
||||||
|
Loading…
Reference in New Issue
Block a user