My Project
Loading...
Searching...
No Matches
PvtwsaltTable.hpp
1/*
2 Copyright (C) 2019 by Norce
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#ifndef OPM_PARSER_PVTWSALT_TABLE_HPP
20#define OPM_PARSER_PVTWSALT_TABLE_HPP
21
22#include <cstddef>
23#include <vector>
24
25namespace Opm {
26
27 class DeckKeyword;
28 class DeckRecord;
29
31 {
32 public:
34
35 static PvtwsaltTable serializationTestObject();
36
37 void init(const Opm::DeckRecord& record0, const Opm::DeckRecord& record1);
38 std::size_t size() const;
39 std::vector<double> getSaltConcentrationColumn() const;
40 std::vector<double> getFormationVolumeFactorColumn() const;
41 std::vector<double> getCompressibilityColumn() const;
42 std::vector<double> getViscosityColumn() const;
43 std::vector<double> getViscosibilityColumn() const;
44 double getReferencePressureValue() const;
45 double getReferenceSaltConcentrationValue() const;
46 const std::vector<double>& getTableValues() const;
47
48 bool operator==(const PvtwsaltTable& data) const;
49
50 template<class Serializer>
51 void serializeOp(Serializer& serializer)
52 {
53 serializer(m_pRefValues);
54 serializer(m_saltConsRefValues);
55 serializer(m_tableValues);
56 }
57
58 protected:
59 double m_pRefValues{};
60 double m_saltConsRefValues{};
61 std::vector <double> m_tableValues;
62 };
63}
64
65#endif
Definition DeckRecord.hpp:32
Definition PvtwsaltTable.hpp:31
Class for (de-)serializing.
Definition Serializer.hpp:91
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30