My Project
RwgsaltTable.hpp
1/*
2 Copyright (C) 2020 by Equinor
3 Copyright (C) 2020 by TNO
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#ifndef OPM_PARSER_RWGSALT_TABLE_HPP
21#define OPM_PARSER_RWGSALT_TABLE_HPP
22
23#include <vector>
24
25namespace Opm {
26
27 class DeckKeyword;
28
30 public:
32
33 static RwgsaltTable serializationTestObject();
34
35 void init(const Opm::DeckRecord& record1);
36 size_t size() const;
37 std::vector<double> getPressureColumn() const;
38 std::vector<double> getSaltConcentrationColumn() const;
39 std::vector<double> getVaporizedWaterGasRatioColumn() const;
40 const std::vector<double>& getTableValues() const;
41
42 bool operator==(const RwgsaltTable& data) const;
43
44 template<class Serializer>
45 void serializeOp(Serializer& serializer)
46 {
47 serializer(m_tableValues);
48 }
49
50 protected:
51
52 std::vector <double> m_tableValues;
53
54 };
55
56}
57
58#endif
Definition: DeckRecord.hpp:32
Definition: RwgsaltTable.hpp:29
Class for (de-)serializing.
Definition: Serializer.hpp:75
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:29