PvtwsaltTable.hpp
Go to the documentation of this file.
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 <vector>
23
24namespace Opm {
25
26 class DeckKeyword;
27
29 public:
31
33
34 void init(const Opm::DeckRecord& record0, const Opm::DeckRecord& record1);
35 size_t size() const;
36 std::vector<double> getSaltConcentrationColumn() const;
37 std::vector<double> getFormationVolumeFactorColumn() const;
38 std::vector<double> getCompressibilityColumn() const;
39 std::vector<double> getViscosityColumn() const;
40 std::vector<double> getViscosibilityColumn() const;
43 const std::vector<double>& getTableValues() const;
44
45 bool operator==(const PvtwsaltTable& data) const;
46
47 template<class Serializer>
48 void serializeOp(Serializer& serializer)
49 {
50 serializer(m_pRefValues);
51 serializer(m_saltConsRefValues);
52 serializer(m_tableValues);
53 }
54
55 protected:
56
59 std::vector <double> m_tableValues;
60
61 };
62
63}
64
65#endif
Definition: DeckRecord.hpp:32
Definition: PvtwsaltTable.hpp:28
std::vector< double > getSaltConcentrationColumn() const
double getReferenceSaltConcentrationValue() const
std::vector< double > getViscosibilityColumn() const
std::vector< double > m_tableValues
Definition: PvtwsaltTable.hpp:59
const std::vector< double > & getTableValues() const
bool operator==(const PvtwsaltTable &data) const
size_t size() const
static PvtwsaltTable serializeObject()
std::vector< double > getFormationVolumeFactorColumn() const
double getReferencePressureValue() const
double m_saltConsRefValues
Definition: PvtwsaltTable.hpp:58
void serializeOp(Serializer &serializer)
Definition: PvtwsaltTable.hpp:48
void init(const Opm::DeckRecord &record0, const Opm::DeckRecord &record1)
std::vector< double > getCompressibilityColumn() const
double m_pRefValues
Definition: PvtwsaltTable.hpp:57
std::vector< double > getViscosityColumn() const
Definition: Serializer.hpp:38
Definition: A.hpp:4
static std::string data()
Definition: exprtk.hpp:40022