applying the efficiency factor to flow

This commit is contained in:
Kai Bao
2016-10-19 10:40:11 +02:00
parent aca587b76b
commit 623ef3850e
3 changed files with 23 additions and 10 deletions

View File

@@ -967,8 +967,10 @@ namespace detail {
// Add well contributions to mass balance equations
const int nc = Opm::AutoDiffGrid::numCells(grid_);
const int np = asImpl().numPhases();
const V& efficiency_factors = wellModel().wellPerfEfficiencyFactors();
for (int phase = 0; phase < np; ++phase) {
residual_.material_balance_eq[phase] -= superset(cq_s[phase], wellModel().wellOps().well_cells, nc);
residual_.material_balance_eq[phase] -= superset(efficiency_factors * cq_s[phase],
wellModel().wellOps().well_cells, nc);
}
}