From bf3273b1159c519538005594e671a019689a5131 Mon Sep 17 00:00:00 2001 From: Kjetil Olsen Lye Date: Wed, 9 May 2012 15:54:25 +0200 Subject: [PATCH] Included voidage_replacment in injection specification. --- opm/core/InjectionSpecification.cpp | 3 ++- opm/core/InjectionSpecification.hpp | 1 + opm/core/WellsGroup.cpp | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/opm/core/InjectionSpecification.cpp b/opm/core/InjectionSpecification.cpp index 691830c6c..dca7fc76b 100644 --- a/opm/core/InjectionSpecification.cpp +++ b/opm/core/InjectionSpecification.cpp @@ -8,7 +8,8 @@ namespace Opm surface_flow_max_rate_(-1e100), reservoir_flow_max_rate_(-1e100), BHP_limit_(-1e100), - reinjection_fraction_target_(-1e100), + reinjection_fraction_target_(1), + voidage_replacment_fraction_(1), guide_rate_(1.0), guide_rate_type_(NONE_GRT) { diff --git a/opm/core/InjectionSpecification.hpp b/opm/core/InjectionSpecification.hpp index 62c9e6678..107296c66 100644 --- a/opm/core/InjectionSpecification.hpp +++ b/opm/core/InjectionSpecification.hpp @@ -32,6 +32,7 @@ namespace Opm double reservoir_flow_max_rate_; double BHP_limit_; double reinjection_fraction_target_; + double voidage_replacment_fraction_; double guide_rate_; GuideRateType guide_rate_type_; }; diff --git a/opm/core/WellsGroup.cpp b/opm/core/WellsGroup.cpp index bd4694738..bd14e69d4 100644 --- a/opm/core/WellsGroup.cpp +++ b/opm/core/WellsGroup.cpp @@ -1099,6 +1099,8 @@ namespace Opm injection_specification.control_mode_ = toInjectionControlMode(line.control_mode_); injection_specification.surface_flow_max_rate_ = line.surface_flow_max_rate_; injection_specification.reservoir_flow_max_rate_ = line.resv_flow_max_rate_; + injection_specification.reinjection_fraction_target_ = line.reinjection_fraction_target_; + injection_specification.voidage_replacment_fraction_ = line.voidage_replacement_fraction_; } } }