mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
set thp msw
This commit is contained in:
@@ -1363,6 +1363,12 @@ updateThp(WellState& well_state,
|
||||
ws.thp = 0;
|
||||
return;
|
||||
}
|
||||
// For THP controled wells, we know the thp value
|
||||
bool thp_controled = baseif_.isInjector() ? ws.injection_cmode == Well::InjectorCMode::THP:
|
||||
ws.production_cmode == Well::ProducerCMode::THP;
|
||||
if (thp_controled) {
|
||||
return;
|
||||
}
|
||||
|
||||
// the well is under other control types, we calculate the thp based on bhp and rates
|
||||
std::vector<double> rates(3, 0.0);
|
||||
|
||||
@@ -572,6 +572,8 @@ updateThp(WellState& well_state,
|
||||
ws.thp = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
// For THP controled wells, we know the thp value
|
||||
bool thp_controled = baseif_.isInjector() ? ws.injection_cmode == Well::InjectorCMode::THP:
|
||||
ws.production_cmode == Well::ProducerCMode::THP;
|
||||
if (thp_controled) {
|
||||
|
||||
Reference in New Issue
Block a user