Loading...
Searching...
No Matches
PlyshlogTable.hpp
/*
Copyright 2015 Statoil ASA.
This file is part of the Open Porous Media project (OPM).
OPM is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OPM is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with OPM. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef OPM_PARSER_PLYSHLOG_TABLE_HPP
#define OPM_PARSER_PLYSHLOG_TABLE_HPP
#include "SimpleTable.hpp"
namespace Opm {
class DeckRecord;
class TableManager;
class PlyshlogTable : public SimpleTable {
public:
friend class TableManager;
PlyshlogTable() = default;
PlyshlogTable(const DeckRecord& indexRecord, const DeckRecord& dataRecord);
static PlyshlogTable serializationTestObject();
double getRefPolymerConcentration() const;
double getRefSalinity() const;
double getRefTemperature() const;
void setRefPolymerConcentration(const double refPlymerConcentration);
void setRefSalinity(const double refSalinity);
void setRefTemperature(const double refTemperature);
bool hasRefSalinity() const;
bool hasRefTemperature() const;
void setHasRefSalinity(const bool has);
void setHasRefTemperature(const bool has);
const TableColumn& getWaterVelocityColumn() const;
const TableColumn& getShearMultiplierColumn() const;
bool operator==(const PlyshlogTable& data) const;
template<class Serializer>
void serializeOp(Serializer& serializer)
{
this->SimpleTable::serializeOp(serializer);
serializer(m_refPolymerConcentration);
serializer(m_refSalinity);
serializer(m_refTemperature);
serializer(m_hasRefSalinity);
serializer(m_hasRefTemperature);
}
private:
double m_refPolymerConcentration = 1.0;
double m_refSalinity = 0.0;
double m_refTemperature = 0.0;
bool m_hasRefSalinity = false;
bool m_hasRefTemperature = false;
};
}
#endif
Opm::DeckRecord
Definition DeckRecord.hpp:32
Opm::PlyshlogTable
Definition PlyshlogTable.hpp:30
Opm::Serializer
Class for (de-)serializing.
Definition Serializer.hpp:91
Opm::SimpleTable
Definition SimpleTable.hpp:35
Opm::TableColumn
Definition TableColumn.hpp:32
Opm::TableManager
Definition TableManager.hpp:66
Opm
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30