My Project
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 <vector>
23 
24 namespace Opm {
25 
26  class DeckKeyword;
27 
28  class PvtwsaltTable {
29  public:
30  PvtwsaltTable();
31 
32  static PvtwsaltTable serializeObject();
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;
41  double getReferencePressureValue() const;
42  double getReferenceSaltConcentrationValue() 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 
57  double m_pRefValues;
58  double m_saltConsRefValues;
59  std::vector <double> m_tableValues;
60 
61  };
62 
63 }
64 
65 #endif
Definition: DeckRecord.hpp:32
Definition: PvtwsaltTable.hpp:28
Definition: Serializer.hpp:38
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:29