Rock2dTable.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_ROCK2D_TABLE_HPP
20#define OPM_PARSER_ROCK2D_TABLE_HPP
21
22#include <vector>
23
24namespace Opm {
25
26 class DeckRecord;
27
29 public:
31
33
34 void init(const Opm::DeckRecord& record, size_t tableIdx);
35 size_t size() const;
36 size_t sizeMultValues() const;
37 double getPressureValue(size_t index) const;
38 double getPvmultValue(size_t pressureIndex, size_t saturationIndex ) const;
39
40 bool operator==(const Rock2dTable& data) const;
41
42 template<class Serializer>
43 void serializeOp(Serializer& serializer)
44 {
45 serializer(m_pvmultValues);
46 serializer(m_pressureValues);
47 }
48
49 protected:
50 std::vector< std::vector <double> > m_pvmultValues;
51 std::vector< double > m_pressureValues;
52
53 };
54
55}
56
57#endif
int index
Definition: cJSON.h:168
Definition: DeckRecord.hpp:32
Definition: Rock2dTable.hpp:28
double getPvmultValue(size_t pressureIndex, size_t saturationIndex) const
bool operator==(const Rock2dTable &data) const
size_t size() const
void init(const Opm::DeckRecord &record, size_t tableIdx)
size_t sizeMultValues() const
std::vector< double > m_pressureValues
Definition: Rock2dTable.hpp:51
static Rock2dTable serializeObject()
std::vector< std::vector< double > > m_pvmultValues
Definition: Rock2dTable.hpp:50
double getPressureValue(size_t index) const
void serializeOp(Serializer &serializer)
Definition: Rock2dTable.hpp:43
Definition: Serializer.hpp:38
Definition: A.hpp:4
static std::string data()
Definition: exprtk.hpp:40022