PlyshlogTable.hpp
Go to the documentation of this file.
1/*
2 Copyright 2015 Statoil ASA.
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_PLYSHLOG_TABLE_HPP
20#define OPM_PARSER_PLYSHLOG_TABLE_HPP
21
23#include "SimpleTable.hpp"
24
25
26namespace Opm {
27
28 class DeckRecord;
29 class TableManager;
30
31 class PlyshlogTable : public SimpleTable {
32 public:
33 friend class TableManager;
34
35 PlyshlogTable() = default;
36 PlyshlogTable(const DeckRecord& indexRecord, const DeckRecord& dataRecord);
37
39
41 double getRefSalinity() const;
42 double getRefTemperature() const;
43 void setRefPolymerConcentration(const double refPlymerConcentration);
44 void setRefSalinity(const double refSalinity);
45 void setRefTemperature(const double refTemperature);
46 bool hasRefSalinity() const;
47 bool hasRefTemperature() const;
48 void setHasRefSalinity(const bool has);
49 void setHasRefTemperature(const bool has);
52
53 bool operator==(const PlyshlogTable& data) const;
54
55 template<class Serializer>
56 void serializeOp(Serializer& serializer)
57 {
58 this->SimpleTable::serializeOp(serializer);
59 serializer(m_refPolymerConcentration);
60 serializer(m_refSalinity);
61 serializer(m_refTemperature);
62 serializer(m_hasRefSalinity);
63 serializer(m_hasRefTemperature);
64 }
65
66 private:
67 double m_refPolymerConcentration = 1.0;
68 double m_refSalinity = 0.0;
69 double m_refTemperature = 0.0;
70
71 bool m_hasRefSalinity = false;
72 bool m_hasRefTemperature = false;
73 };
74}
75
76#endif
Definition: DeckRecord.hpp:32
Definition: PlyshlogTable.hpp:31
void setRefSalinity(const double refSalinity)
double getRefPolymerConcentration() const
const TableColumn & getShearMultiplierColumn() const
void setRefTemperature(const double refTemperature)
static PlyshlogTable serializeObject()
double getRefSalinity() const
PlyshlogTable(const DeckRecord &indexRecord, const DeckRecord &dataRecord)
double getRefTemperature() const
const TableColumn & getWaterVelocityColumn() const
void setHasRefSalinity(const bool has)
void setRefPolymerConcentration(const double refPlymerConcentration)
void setHasRefTemperature(const bool has)
PlyshlogTable()=default
void serializeOp(Serializer &serializer)
Definition: PlyshlogTable.hpp:56
bool operator==(const PlyshlogTable &data) const
bool hasRefSalinity() const
bool hasRefTemperature() const
Definition: Serializer.hpp:38
Definition: SimpleTable.hpp:35
void serializeOp(Serializer &serializer)
Definition: SimpleTable.hpp:73
Definition: TableColumn.hpp:32
Definition: TableManager.hpp:63
Definition: A.hpp:4
static std::string data()
Definition: exprtk.hpp:40022