From 9ce58ec2ad32c765388afedd9c5e490ea679dae2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A5rd=20Skaflestad?= Date: Tue, 2 Nov 2021 12:00:29 +0100 Subject: [PATCH] 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. --- src/opm/output/eclipse/LoadRestart.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/opm/output/eclipse/LoadRestart.cpp b/src/opm/output/eclipse/LoadRestart.cpp index a6d0e4366..dd93de910 100644 --- a/src/opm/output/eclipse/LoadRestart.cpp +++ b/src/opm/output/eclipse/LoadRestart.cpp @@ -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]);