This commit adds a few identifiers for items in the XGRP and RSEG restart vectors to enable restoring segment rates and cumulative group production/injection quantities.
65 lines
2.5 KiB
C++
65 lines
2.5 KiB
C++
/*
|
|
Copyright (c) 2018 Equinor ASA
|
|
|
|
This file is part of the Open Porous Media project (OPM).
|
|
|
|
OPM is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
OPM is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with OPM. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef OPM_OUTPUT_ECLIPSE_VECTOR_MSW_HPP
|
|
#define OPM_OUTPUT_ECLIPSE_VECTOR_MSW_HPP
|
|
|
|
#include <vector>
|
|
|
|
namespace Opm { namespace RestartIO { namespace Helpers { namespace VectorItems {
|
|
|
|
namespace ISeg {
|
|
enum index : std::vector<int>::size_type {
|
|
SegNo = 0, // Segment number (one-based)
|
|
OutSeg = 1, // Outlet segment (one-based)
|
|
InSegCurBranch = 2, // Inflow segment current branch (one-based)
|
|
BranchNo = 3, // Branch number (one-based)
|
|
};
|
|
} // ISeg
|
|
|
|
namespace RSeg {
|
|
enum index : std::vector<double>::size_type {
|
|
DistOutlet = 0, // Segment's distance to outlet
|
|
OutletDepthDiff = 1, // Segment's depth differential to outlet
|
|
SegDiam = 2, // Internal diameter of segment
|
|
SegRough = 3, // Roughness parameter of segment
|
|
SegArea = 4, // Cross-sectional area of segment
|
|
SegVolume = 5, // Physical volume of segment
|
|
DistBHPRef = 6, // Segment's distance to BHP reference node
|
|
DepthBHPRef = 7, // Segment's depth differential to BHP ref. node
|
|
|
|
TotFlowRate = 8, // Normalised total segment flow rate
|
|
WatFlowFract = 9, // Normalised Water flow rate fraction
|
|
GasFlowFract = 10, // Normalised Gas flow rate fraction
|
|
Pressure = 11, // Segment pressure
|
|
|
|
item40 = 39, // Unknown
|
|
item106 = 105, // Unknown
|
|
item107 = 106, // Unknown
|
|
item108 = 107, // Unknown
|
|
item109 = 108, // Unknown
|
|
item110 = 109, // Unknown
|
|
item111 = 110, // Unknown
|
|
};
|
|
} // RSeg
|
|
|
|
}}}} // Opm::RestartIO::Helpers::VectorItems
|
|
|
|
#endif // OPM_OUTPUT_ECLIPSE_VECTOR_MSW_HPP
|