update well state when switching to THP control for producers

hopefully, it begins at a reasonably good initial point. When the Newton
iteration begins with certian solution region, the nonlinear solution
might fail.
This commit is contained in:
Kai Bao
2023-01-30 12:41:45 +01:00
parent 989c048db6
commit 57bf959efd
7 changed files with 104 additions and 24 deletions

View File

@@ -258,6 +258,10 @@ namespace Opm
const Simulator& ebos_simulator,
DeferredLogger& deferred_logger) const;
bool updateWellStateWithTHPTargetProd(const Simulator& ebos_simulator,
WellState& well_state,
DeferredLogger& deferred_logger) const;
virtual double getRefDensity() const override;
virtual bool iterateWellEqWithControl(const Simulator& ebosSimulator,