From c333b21c90666bd22d39efb6bb59c0dcfceab192 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A5rd=20Skaflestad?= Date: Wed, 27 Nov 2019 20:32:29 +0100 Subject: [PATCH] Prepare Restart File Support for Valves and ICDs This commit identifies certain items in restart vectors ISEG and RSEG that pertain to valves (keyword WSEGVALV) and spiral ICDs (keyword WSEGSICD). In particular, we identify segment type flag and a couple of relevant values for this flag. Also, relevant parameters that describe the geometry and pressure drops of these devices. --- opm/output/eclipse/VectorItems/msw.hpp | 33 ++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/opm/output/eclipse/VectorItems/msw.hpp b/opm/output/eclipse/VectorItems/msw.hpp index e0a0bea72..7dfaeb54c 100644 --- a/opm/output/eclipse/VectorItems/msw.hpp +++ b/opm/output/eclipse/VectorItems/msw.hpp @@ -30,7 +30,20 @@ namespace Opm { namespace RestartIO { namespace Helpers { namespace VectorItems OutSeg = 1, // Outlet segment (one-based) InSegCurBranch = 2, // Inflow segment current branch (one-based) BranchNo = 3, // Branch number (one-based) + + SegmentType = 11, + + ICDScalingMode = 18, + ICDOpenShutFlag = 19, }; + + namespace Value { + enum SegmentType : int { + AICD = -8, + SICD = -7, + Valve = -5, + }; + } // Value } // ISeg namespace RSeg { @@ -50,6 +63,26 @@ namespace Opm { namespace RestartIO { namespace Helpers { namespace VectorItems Pressure = 11, // Segment pressure item40 = 39, // Unknown + + ValveLength = 40, // Length of valve + ValveArea = 41, // Cross-sectional area of valve + ValveFlowCoeff = 42, // Valve's dimensionless flow coefficient + ValveMaxArea = 43, // Maximal cross-sectional valve area + + DeviceBaseStrength = 86, + + CalibrFluidDensity = 88, + CalibrFluidViscosity = 89, + + CriticalWaterFraction = 90, + TransitionRegWidth = 91, + MaxEmulsionRatio = 92, + MaxValidFlowRate = 97, + + ICDLength = 102, + + ValveAreaFraction = 103, + item106 = 105, // Unknown item107 = 106, // Unknown item108 = 107, // Unknown