mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Add well contributions to mass balance residuals.
This commit is contained in:
@@ -490,6 +490,9 @@ namespace Opm {
|
||||
const ADB perf_flux = perf_mob * (nkgradp_well); // No gravity term for perforations.
|
||||
const ADB well_rates = wops_.p2w * (perf_flux*perf_b);
|
||||
qs = qs + superset(well_rates, Span(nw, 1, phase*nw), nw*np);
|
||||
|
||||
const ADB well_contrib = superset(perf_flux*perf_b, well_cells, nc);
|
||||
residual_.mass_balance[phase] += well_contrib;
|
||||
}
|
||||
// Handling BHP and SURFACE_RATE wells.
|
||||
V bhp_targets(nw);
|
||||
|
||||
Reference in New Issue
Block a user