mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-11-02 20:30:55 -06:00
Merge pull request #6958 from steink/fix-max-well-status-switch-for-wells
Update operability status when max_well_status_switch is exceeded
This commit is contained in:
1 file changed
+6
-1
@@ -1021,14 +1021,19 @@ namespace Opm
|
||||
"and the well is therefore kept stopped.",
|
||||
this->name(), number_of_well_reopenings_);
|
||||
deferred_logger.debug(msg);
|
||||
changed_to_stopped_this_step_ = old_well_operable;
|
||||
} else {
|
||||
changed_to_stopped_this_step_ = false;
|
||||
}
|
||||
this->stopWell();
|
||||
changed_to_stopped_this_step_ = true;
|
||||
bool converged_zero_rate = this->solveWellWithZeroRate(
|
||||
simulator, dt, groupStateHelper, well_state
|
||||
);
|
||||
if (this->param_.shut_unsolvable_wells_ && !converged_zero_rate ) {
|
||||
this->operability_status_.solvable = false;
|
||||
} else {
|
||||
this->operability_status_.can_obtain_bhp_with_thp_limit = false;
|
||||
this->operability_status_.obey_thp_limit_under_bhp_limit = false;
|
||||
}
|
||||
// we increse the number of reopenings to avoid output in the next iteration
|
||||
number_of_well_reopenings_++;
|
||||
|
||||
Reference in new issue
Block a user