My Project
segment.hpp
1 /*
2  Copyright 2020 Equinor ASA.
3 
4  This file is part of the Open Porous Media project (OPM).
5 
6  OPM is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
7  the Free Software Foundation, either version 3 of the License, or
8  (at your option) any later version.
9 
10  OPM is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with OPM. If not, see <http://www.gnu.org/licenses/>.
17 */
18 
19 #ifndef RST_SEGMENT
20 #define RST_SEGMENT
21 
22 #include <vector>
23 
24 #include <opm/parser/eclipse/EclipseState/Schedule/MSW/Segment.hpp>
25 #include <opm/parser/eclipse/EclipseState/Schedule/MSW/icd.hpp>
26 
27 namespace Opm {
28 class UnitSystem;
29 
30 namespace RestartIO {
31 
32 struct RstSegment {
33  RstSegment(const ::Opm::UnitSystem& unit_system, int segment_number, const int* iseg, const double * rseg);
34 
35  int segment;
36  int outlet_segment;
37  int branch;
38  Segment::SegmentType segment_type;
39  int icd_scaling_mode;
40  ICDStatus icd_status;
41 
42  double dist_outlet;
43  double outlet_dz;
44  double diameter;
45  double roughness;
46  double area;
47  double volume;
48  double dist_bhp_ref;
49  double bhp_ref_dz;
50  double total_flow;
51  double water_flow_fraction;
52  double gas_flow_fraction;
53  double pressure;
54  double valve_length;
55  double valve_area;
56  double valve_flow_coeff;
57  double valve_max_area;
58  double base_strength;
59  double fluid_density;
60  double fluid_viscosity;
61  double critical_water_fraction;
62  double transition_region_width;
63  double max_emulsion_ratio;
64  double max_valid_flow_rate;
65  double icd_length;
66  double valve_area_fraction;
67 
68  std::vector<int> inflow_segments;
69 };
70 
71 
72 }
73 }
74 
75 
76 
77 
78 #endif
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:29
Definition: segment.hpp:32