opm-simulators
PerforationData.hpp
1 /*
2  Copyright 2019 SINTEF Digital, Mathematics and Cybernetics.
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 OPM_PERFORATIONDATA_HEADER_INCLUDED
21 #define OPM_PERFORATIONDATA_HEADER_INCLUDED
22 
23 #include <cstddef>
24 
25 namespace Opm {
26 
28 template<class Scalar>
29 struct PerforationData
30 {
31  int cell_index{};
32  Scalar connection_transmissibility_factor{};
33  Scalar connection_d_factor{};
34  int satnum_id{};
36  std::size_t ecl_index{};
40  int grid_id{};
51  std::size_t global_index{};
52 };
53 
54 template<class Scalar>
56 {
57  Scalar dis_gas = 0.0;
58  Scalar dis_gas_in_water = 0.0;
59  Scalar vap_oil = 0.0;
60  Scalar vap_wat = 0.0;
61 };
62 
63 } // namespace Opm
64 
65 #endif // OPM_PERFORATIONDATA_HEADER_INCLUDED
std::size_t global_index
Linearised Cartesian cell index relative to the cell&#39;s own grid origin.
Definition: PerforationData.hpp:51
Structs needed for tpfalinearizer and its gpuparams struct extracted to be defined in one place that ...
Definition: blackoilbioeffectsmodules.hh:45
Definition: PerforationData.hpp:55
int grid_id
Grid identity for this perforation: 0 = global grid, > 0 = numeric LGR level (refined grid in CARFIN ...
Definition: PerforationData.hpp:40
std::size_t ecl_index
The original index of the perforation in ECL Schedule.
Definition: PerforationData.hpp:36