PerforationData.hpp
Go to the documentation of this file.
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
25namespace Opm {
26
28template<class Scalar>
30{
32
33 bool operator==(const PerforationData&) const;
34
38 int satnum_id{};
40 std::size_t ecl_index{};
44 int grid_id{};
55 std::size_t global_index{};
56
57 template<class Serializer>
58 void serializeOp(Serializer& serializer)
59 {
60 serializer(cell_index);
62 serializer(connection_d_factor);
63 serializer(satnum_id);
64 serializer(ecl_index);
65 serializer(grid_id);
66 serializer(global_index);
67 }
68};
69
70template<class Scalar>
72{
73 Scalar dis_gas = 0.0;
74 Scalar dis_gas_in_water = 0.0;
75 Scalar vap_oil = 0.0;
76 Scalar vap_wat = 0.0;
77};
78
79} // namespace Opm
80
81#endif // OPM_PERFORATIONDATA_HEADER_INCLUDED
Definition: blackoilbioeffectsmodules.hh:45
Static data associated with a well perforation.
Definition: PerforationData.hpp:30
bool operator==(const PerforationData &) const
void serializeOp(Serializer &serializer)
Definition: PerforationData.hpp:58
Scalar connection_d_factor
Definition: PerforationData.hpp:37
int grid_id
Grid identity for this perforation: 0 = global grid, > 0 = numeric LGR level (refined grid in CARFIN ...
Definition: PerforationData.hpp:44
static PerforationData serializationTestObject()
int satnum_id
Definition: PerforationData.hpp:38
Scalar connection_transmissibility_factor
Definition: PerforationData.hpp:36
int cell_index
Definition: PerforationData.hpp:35
std::size_t ecl_index
The original index of the perforation in ECL Schedule.
Definition: PerforationData.hpp:40
std::size_t global_index
Linearised Cartesian cell index relative to the cell's own grid origin. For grid_id == 0 this is the ...
Definition: PerforationData.hpp:55
Definition: PerforationData.hpp:72
Scalar dis_gas
Definition: PerforationData.hpp:73
Scalar vap_wat
Definition: PerforationData.hpp:76
Scalar vap_oil
Definition: PerforationData.hpp:75
Scalar dis_gas_in_water
Definition: PerforationData.hpp:74