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:
Kai Bao
2015-10-09 12:33:33 +02:00
parent 9c1c87a040
commit be293962b6

View File

@@ -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