mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
updating pressure and phase rates for top segments in updateWellControls
This commit is contained in:
parent
70d6d253fe
commit
2b4922a986
@ -994,6 +994,7 @@ namespace Opm {
|
|||||||
switch (well_controls_iget_type(wc, current)) {
|
switch (well_controls_iget_type(wc, current)) {
|
||||||
case BHP:
|
case BHP:
|
||||||
xw.bhp()[w] = target;
|
xw.bhp()[w] = target;
|
||||||
|
xw.segPress()[xw.topSegmentLoc()[w]] = target;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case THP: {
|
case THP: {
|
||||||
@ -1051,7 +1052,8 @@ namespace Opm {
|
|||||||
case SURFACE_RATE:
|
case SURFACE_RATE:
|
||||||
for (int phase = 0; phase < np; ++phase) {
|
for (int phase = 0; phase < np; ++phase) {
|
||||||
if (distr[phase] > 0.0) {
|
if (distr[phase] > 0.0) {
|
||||||
xw.wellRates()[np*w + phase] = target * distr[phase];
|
xw.wellRates()[np * w + phase] = target * distr[phase];
|
||||||
|
xw.segPhaseRates()[np * xw.topSegmentLoc()[w] + phase] = target * distr[phase];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user