Include perforation data in SingleWellState

This commit is contained in:
Joakim Hove
2021-08-06 13:14:00 +02:00
parent 46f45e3999
commit 579aba8d08
9 changed files with 45 additions and 62 deletions

View File

@@ -694,7 +694,8 @@ StandardWellEval<FluidSystem,Indices,Scalar>::
updateWellStateFromPrimaryVariablesPolyMW(WellState& well_state) const
{
if (baseif_.isInjector()) {
auto& perf_data = well_state.perfData(baseif_.indexOfWell());
auto& ws = well_state.well(baseif_.indexOfWell());
auto& perf_data = ws.perf_data;
auto& perf_water_velocity = perf_data.water_velocity;
auto& perf_skin_pressure = perf_data.skin_pressure;
for (int perf = 0; perf < baseif_.numPerfs(); ++perf) {