set thp msw

This commit is contained in:
Tor Harald Sandve
2022-10-04 09:08:38 +02:00
parent 14428120d9
commit 9538db85b1
2 changed files with 8 additions and 0 deletions

View File

@@ -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);

View File

@@ -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) {