My Project
Loading...
Searching...
No Matches
connection.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
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 OPM is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with OPM. If not, see <http://www.gnu.org/licenses/>.
18*/
19
20#ifndef RST_CONNECTION
21#define RST_CONNECTION
22
23#include <opm/input/eclipse/Schedule/Well/Connection.hpp>
24
25#include <array>
26
27namespace Opm {
28
29class UnitSystem;
30
31} // namespace Opm
32
33namespace Opm { namespace RestartIO {
34
36{
37 RstConnection(const UnitSystem& unit_system,
38 std::size_t rst_index,
39 int nsconz,
40 const int* icon,
41 const float* scon,
42 const double *xcon);
43
44 static double inverse_peaceman(double cf, double kh, double rw, double skin);
45
46 std::size_t rst_index;
47 std::array<int,3> ijk;
48 int lgr_grid{0};
49 Connection::State state;
50 int drain_sat_table;
51 int imb_sat_table;
52 int completion;
53 Connection::Direction dir;
54 int segment;
55 Connection::CTFKind cf_kind;
56
57 float skin_factor;
58 float cf;
59 float depth;
60 float diameter;
61 float kh;
62 float denom;
63 float length;
64 float static_dfac_corr_coeff;
65 float segdist_end;
66 float segdist_start;
67
68 double oil_rate;
69 double water_rate;
70 double gas_rate;
71 double pressure;
72 double resv_rate;
73 double r0;
74};
75
76}} // namespace Opm::RestartIO
77
78#endif // RST_CONNECTION
Definition UnitSystem.hpp:34
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30
Definition connection.hpp:36