mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
changing the perforation pressure initialization
to make it slightly different from the pressure of the perforation cell to avoid NaN for cqt_is. anotehr way can be initialized them related to the bhp of the well. some tests will be performed in the future.
This commit is contained in:
@@ -208,7 +208,8 @@ namespace Opm
|
||||
for (int p = 0; p < np; ++p) {
|
||||
perfPhaseRates()[np * (i + start_perforation) + p] = wellRates()[np * w + p] / double(number_of_perforations);
|
||||
}
|
||||
perfPress()[i + start_perforation] = state.pressure()[wells[w]->wellCells()[i]];
|
||||
const double safety_factor = (wells[w]->wellType() == INJECTOR) ? 1.01 : 0.99;
|
||||
perfPress()[i + start_perforation] = safety_factor * state.pressure()[wells[w]->wellCells()[i]];
|
||||
}
|
||||
|
||||
// 5. Segment rates and pressures
|
||||
|
||||
Reference in New Issue
Block a user