mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
wells under zero injection target are also treated as stopped well
when formulating the well control equations
This commit is contained in:
@@ -116,7 +116,7 @@ assembleControlEq(const WellState& well_state,
|
||||
return rates;
|
||||
};
|
||||
|
||||
if (well_.wellIsStopped()) {
|
||||
if (well_.wellUnderZeroRateControl(summaryState, well_state)) {
|
||||
control_eq = primary_variables.getWQTotal();
|
||||
} else if (well_.isInjector() ) {
|
||||
// Find scaling factor to get injection rate,
|
||||
@@ -164,9 +164,6 @@ assembleControlEq(const WellState& well_state,
|
||||
bhp_from_thp,
|
||||
control_eq,
|
||||
deferred_logger);
|
||||
} else if (wellhelpers::rateControlWithZeroTarget(well_state.well(well_.indexOfWell()).production_cmode, prod_controls)) {
|
||||
// Production mode, zero target. Treat as STOP.
|
||||
control_eq = primary_variables.getWQTotal();
|
||||
} else {
|
||||
// Find rates.
|
||||
const auto rates = getRates();
|
||||
|
||||
Reference in New Issue
Block a user