mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-09-05 04:40:19 -05:00
unifying the well flux equaions for multi-segment and non-segment wells
verified with non-segment wells.
This commit is contained in:
@@ -885,13 +885,9 @@ namespace Opm {
|
|||||||
// the segment rates of this well
|
// the segment rates of this well
|
||||||
const ADB& segqs_well = subset(segqs, Span(nseg, 1, start_position));
|
const ADB& segqs_well = subset(segqs, Span(nseg, 1, start_position));
|
||||||
|
|
||||||
if (well->isMultiSegmented()) {
|
segqs -= superset(cq_s_seg + well->wellOps().s2s_inlets * segqs_well, Span(nseg, 1, start_position), np * nseg_total);
|
||||||
segqs -= superset(cq_s_seg + well->wellOps().s2s_inlets * segqs_well, Span(nseg, 1, start_position), np * nseg_total);
|
// another form for non-segment wells, keep here for future reference
|
||||||
}
|
// segqs -= superset(cq_s_seg, Span(1, 1, start_position), np * nseg_total);
|
||||||
else
|
|
||||||
{
|
|
||||||
segqs -= superset(cq_s_seg, Span(1, 1, start_position), np * nseg_total);
|
|
||||||
}
|
|
||||||
start_segment += nseg;
|
start_segment += nseg;
|
||||||
start_perforation += nperf;
|
start_perforation += nperf;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user