Ensure Continuous Cumulative Liquid Production On Restart

The xLPT curves should not start at zero in a restarted simulation
run.  This commit initialises the cumulative liquid production
volume using the value

    xOPT + xWPT

with the individual terms taken from XWEL or XGRP as appropriate.
This commit is contained in:
Bård Skaflestad 2021-11-02 12:00:29 +01:00
parent cbfc727cd2
commit 9ce58ec2ad

View File

@ -1451,6 +1451,11 @@ namespace {
smry.update_well_var(well, "WGPT", xwel[VI::XWell::index::GasPrTotal]);
smry.update_well_var(well, "WVPT", xwel[VI::XWell::index::VoidPrTotal]);
// Cumulative liquid production = WOPT + WWPT
smry.update_well_var(well, "WLPT",
xwel[VI::XWell::index::OilPrTotal] +
xwel[VI::XWell::index::WatPrTotal]);
smry.update_well_var(well, "WWIT", xwel[VI::XWell::index::WatInjTotal]);
smry.update_well_var(well, "WGIT", xwel[VI::XWell::index::GasInjTotal]);
smry.update_well_var(well, "WVIT", xwel[VI::XWell::index::VoidInjTotal]);
@ -1494,6 +1499,11 @@ namespace {
update("GPT", xgrp[VI::XGroup::index::GasPrTotal]);
update("VPT", xgrp[VI::XGroup::index::VoidPrTotal]);
// Cumulative liquid production = xOPT + xWPT
update("LPT",
xgrp[VI::XGroup::index::OilPrTotal] +
xgrp[VI::XGroup::index::WatPrTotal]);
update("WIT", xgrp[VI::XGroup::index::WatInjTotal]);
update("GIT", xgrp[VI::XGroup::index::GasInjTotal]);
update("VIT", xgrp[VI::XGroup::index::VoidInjTotal]);