mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Ensuring that the UDA is updated every time step, not just only report step.
This commit is contained in:
@@ -411,6 +411,7 @@ namespace Opm {
|
||||
updateAndCommunicateGroupData(reportStepIdx,
|
||||
ebosSimulator_.model().newtonMethod().numIterations());
|
||||
|
||||
this->wellState().updateWellsDefaultALQ(this->wells_ecl_, this->summaryState());
|
||||
this->wellState().gliftTimeStepInit();
|
||||
|
||||
const double simulationTime = ebosSimulator_.time();
|
||||
|
||||
@@ -206,6 +206,12 @@ public:
|
||||
this->alq_state.reset_count();
|
||||
}
|
||||
|
||||
// If the ALQ has changed since the previous time step,
|
||||
// reset current_alq and update default_alq. ALQ is used for
|
||||
// constant lift gas injection and for gas lift optimization
|
||||
// (THP controlled wells).
|
||||
void updateWellsDefaultALQ(const std::vector<Well>& wells_ecl, const SummaryState& summary_state);
|
||||
|
||||
int wellNameToGlobalIdx(const std::string &name) {
|
||||
return this->global_well_info.value().well_index(name);
|
||||
}
|
||||
@@ -331,13 +337,6 @@ private:
|
||||
const int seg_ix,
|
||||
const int seg_no) const;
|
||||
|
||||
// If the ALQ has changed since the previous report step,
|
||||
// reset current_alq and update default_alq. ALQ is used for
|
||||
// constant lift gas injection and for gas lift optimization
|
||||
// (THP controlled wells).
|
||||
|
||||
void updateWellsDefaultALQ(const std::vector<Well>& wells_ecl, const SummaryState& summary_state);
|
||||
|
||||
|
||||
/// Allocate and initialize if wells is non-null.
|
||||
/// Also tries to give useful initial values to the bhp() and
|
||||
|
||||
Reference in New Issue
Block a user