refactor the network update

moving the well controls and network update out of assembleImpl to avoid
call assmebleImpl in a recursive manner
This commit is contained in:
Kai Bao
2022-10-20 11:03:29 +02:00
parent 4bf2dd7269
commit 1542f2c087
4 changed files with 141 additions and 38 deletions

View File

@@ -166,6 +166,20 @@ public:
const GroupState& group_state,
DeferredLogger& deferred_logger);
void assembleWellEqWithoutIteration(const Simulator& ebosSimulator,
const double dt,
WellState& well_state,
const GroupState& group_state,
DeferredLogger& deferred_logger);
// TODO: better name or further refactoring the function to make it more clear
void prepareWellBeforeAssembling(const Simulator& ebosSimulator,
const double dt,
WellState& well_state,
const GroupState& group_state,
DeferredLogger& deferred_logger);
virtual void computeWellRatesWithBhp(
const Simulator& ebosSimulator,
const double& bhp,