opm-simulators
ConnFiltrateData.hpp
1 /*
2  Copyright 2023 Equinor ASA.
3 
4 
5  This file is part of the Open Porous Media project (OPM).
6 
7  OPM is free software: you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation, either version 3 of the License, or
10  (at your option) any later version.
11 
12  OPM is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with OPM. If not, see <http://www.gnu.org/licenses/>.
19 */
20 
21 #ifndef OPM_CONNFILTRATEDATA_HPP
22 #define OPM_CONNFILTRATEDATA_HPP
23 
24 #include <vector>
25 
26 namespace Opm {
27 
28 template<class Scalar>
30 
31  void resize(std::size_t num_perf);
32 
33  template<class Serializer>
34  void serializeOp(Serializer& serializer) {
35  serializer(rates);
36  serializer(total);
37  serializer(skin_factor);
38  serializer(thickness);
39  serializer(perm);
40  serializer(poro);
41  serializer(radius);
42  serializer(area_of_flow);
43  }
44 
45  static ConnFiltrateData serializationTestObject();
46 
47  bool operator==(const ConnFiltrateData& rhs) const;
48 
49  std::vector<Scalar> rates;
50  std::vector<Scalar> total;
51  std::vector<Scalar> skin_factor;
52  std::vector<Scalar> thickness;
53  std::vector<Scalar> perm;
54  std::vector<Scalar> poro;
55  std::vector<Scalar> radius;
56  std::vector<Scalar> area_of_flow;
57 };
58 
59 }
60 
61 #endif // OPM_CONNFILTRATEDATA_HPP
Definition: ConnFiltrateData.hpp:29
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition: blackoilbioeffectsmodules.hh:45