From 040be401e0e24d582dff15120c69e2d789cf47c8 Mon Sep 17 00:00:00 2001 From: Kjetil Olsen Lye Date: Tue, 27 Mar 2012 09:23:24 +0200 Subject: [PATCH] added initial input reading for group control (GRUP-keyword) --- opm/core/WellsManager.cpp | 5 +++++ opm/core/newwells.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/opm/core/WellsManager.cpp b/opm/core/WellsManager.cpp index f864d2d64..bdff38fbd 100644 --- a/opm/core/WellsManager.cpp +++ b/opm/core/WellsManager.cpp @@ -342,6 +342,8 @@ namespace Opm well_data[wix].control = BHP; well_data[wix].target = wconinjes.wconinje[kw].THP_limit_; break; + case 4: + break; default: THROW("Unknown well control mode; WCONIJE = " << wconinjes.wconinje[kw].control_mode_ @@ -411,6 +413,9 @@ namespace Opm well_data[wix].control = BHP; well_data[wix].target = wconprods.wconprod[kw].THP_limit_; break; + case 7: + well_data[wix].control = GRUP; + break; default: THROW("Unknown well control mode; WCONPROD = " << wconprods.wconprod[kw].control_mode_ diff --git a/opm/core/newwells.h b/opm/core/newwells.h index 425eefd21..6017729c1 100644 --- a/opm/core/newwells.h +++ b/opm/core/newwells.h @@ -25,7 +25,7 @@ extern "C" { #endif enum well_type { INJECTOR, PRODUCER }; -enum control_type { BHP , RATE }; +enum control_type { BHP , RATE, GRUP }; enum surface_component { WATER = 0, OIL = 1, GAS = 2 };