ConnFiltrateData.hpp
Go to the documentation of this file.
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
26namespace Opm {
27
28template<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
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: BlackoilPhases.hpp:27
Definition: ConnFiltrateData.hpp:29
static ConnFiltrateData serializationTestObject()
std::vector< Scalar > radius
Definition: ConnFiltrateData.hpp:55
std::vector< Scalar > thickness
Definition: ConnFiltrateData.hpp:52
std::vector< Scalar > skin_factor
Definition: ConnFiltrateData.hpp:51
void serializeOp(Serializer &serializer)
Definition: ConnFiltrateData.hpp:34
std::vector< Scalar > rates
Definition: ConnFiltrateData.hpp:49
void resize(std::size_t num_perf)
std::vector< Scalar > area_of_flow
Definition: ConnFiltrateData.hpp:56
bool operator==(const ConnFiltrateData &rhs) const
std::vector< Scalar > poro
Definition: ConnFiltrateData.hpp:54
std::vector< Scalar > perm
Definition: ConnFiltrateData.hpp:53
std::vector< Scalar > total
Definition: ConnFiltrateData.hpp:50