mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
checking Producer or Injector when comparing bhp against BHP constraint
during well operability check.
This commit is contained in:
parent
69a98ac56d
commit
ed4aa75721
@ -1222,7 +1222,8 @@ namespace Opm
|
||||
this->operability_status_.can_obtain_bhp_with_thp_limit = true;
|
||||
|
||||
const double bhp_limit = WellBhpThpCalculator(*this).mostStrictBhpFromBhpLimits(summaryState);
|
||||
this->operability_status_.obey_bhp_limit_with_thp_limit = (*obtain_bhp >= bhp_limit);
|
||||
this->operability_status_.obey_bhp_limit_with_thp_limit = this->isProducer() ?
|
||||
*obtain_bhp >= bhp_limit : *obtain_bhp <= bhp_limit ;
|
||||
|
||||
const double thp_limit = this->getTHPConstraint(summaryState);
|
||||
if (this->isProducer() && *obtain_bhp < thp_limit) {
|
||||
|
Loading…
Reference in New Issue
Block a user