not updating the connection pressure for StandardWell

at the early stage of computeWellRatesWithBhpIterations. The perforation rates are not updated,
and it is not sensible to update based on the inconsistent well rates and perforation rates.

Better to keep the original explicit quantities for better consistency.

Furthermore, it can be dangerous to update the explicit quantities based on the
irrelevant perforation rates, since the ratios can be very undesirable due to crossflow.
This commit is contained in:
Kai Bao 2023-11-22 08:47:35 +01:00
parent 8f6b2b99e7
commit 3aed0b9501

View File

@ -1438,7 +1438,9 @@ namespace Opm
well_state_copy.wellRates(this->index_of_well_)[phase]
= sign * ws.well_potentials[phase];
}
well_copy.calculateExplicitQuantities(ebosSimulator, well_state_copy, deferred_logger);
well_copy.updatePrimaryVariables(summary_state, well_state_copy, deferred_logger);
well_copy.initPrimaryVariablesEvaluation();
well_copy.computeAccumWell();
const double dt = ebosSimulator.timeStepSize();
const bool converged = well_copy.iterateWellEqWithControl(ebosSimulator, dt, inj_controls, prod_controls, well_state_copy, group_state, deferred_logger);