20#ifndef OPM_PARSER_PVTX_TABLE_HPP
21#define OPM_PARSER_PVTX_TABLE_HPP
23#include <opm/input/eclipse/EclipseState/Tables/ColumnSchema.hpp>
24#include <opm/input/eclipse/EclipseState/Tables/SimpleTable.hpp>
25#include <opm/input/eclipse/EclipseState/Tables/TableColumn.hpp>
26#include <opm/input/eclipse/EclipseState/Tables/TableSchema.hpp>
137 static std::vector<std::pair<std::size_t, std::size_t>>
153 explicit PvtxTable(
const std::string& columnName);
187 std::size_t
size()
const;
221 template <
class Serializer>
287 void populateUndersaturatedTables(
const DeckKeyword& keyword,
288 const std::size_t tableIdx,
289 const std::size_t first,
290 const std::size_t last);
299 void populateSaturatedTable(
const std::string& tableName);
Definition ColumnSchema.hpp:31
Definition DeckKeyword.hpp:36
Base class for PVTG and PVTO tables.
Definition PvtxTable.hpp:117
std::size_t size() const
Number of sub-tables.
Definition PvtxTable.cpp:140
auto cend() const
End of sequence of sub-tables.
Definition PvtxTable.hpp:205
double getArgValue(std::size_t index) const
Retrieve composition/pressure node value at input point.
Definition PvtxTable.cpp:145
TableSchema m_underSaturatedSchema
Table description of under-saturated states.
Definition PvtxTable.hpp:242
const SimpleTable & getUnderSaturatedTable(std::size_t tableNumber) const
Retrieve sub-table for a single composition or pressure node.
Definition PvtxTable.cpp:127
static std::size_t numTables(const DeckKeyword &keyword)
Number of complete tables in input PVTx keyword.
Definition PvtxTable.cpp:71
bool operator==(const PvtxTable &data) const
Equality predicate.
Definition PvtxTable.cpp:156
std::vector< SimpleTable > m_underSaturatedTables
Under-saturated sub-tables.
Definition PvtxTable.hpp:250
TableColumn m_outerColumn
Primary lookup key values.
Definition PvtxTable.hpp:239
ColumnSchema m_outerColumnSchema
Table description of primary lookup key.
Definition PvtxTable.hpp:236
static PvtxTable serializationTestObject()
Create a serialisation test object.
Definition PvtxTable.cpp:105
PvtxTable()=default
Default constructor.
virtual ~PvtxTable()=default
Virtual destructor.
static std::vector< std::pair< std::size_t, std::size_t > > recordRanges(const DeckKeyword &keyword)
Identify which input records pertain to which PVT regions.
Definition PvtxTable.cpp:79
auto end() const
End of sequence of sub-tables.
Definition PvtxTable.hpp:202
void serializeOp(Serializer &serializer)
Convert between byte array and object representation.
Definition PvtxTable.hpp:222
auto begin() const
Start of sequence of sub-tables.
Definition PvtxTable.hpp:193
TableSchema m_saturatedSchema
Table description of saturated states.
Definition PvtxTable.hpp:245
auto cbegin() const
Start of sequence of sub-tables.
Definition PvtxTable.hpp:199
const SimpleTable & getSaturatedTable() const
Retrieve derived table of saturated states.
Definition PvtxTable.cpp:121
SimpleTable m_saturatedTable
Inferred table of saturated states.
Definition PvtxTable.hpp:253
void init(const DeckKeyword &keyword, std::size_t tableIdx)
Populate internal data structures from PVTx input table data.
Definition PvtxTable.cpp:170
Class for (de-)serializing.
Definition Serializer.hpp:94
Definition SimpleTable.hpp:35
Definition TableColumn.hpp:32
Definition TableSchema.hpp:32
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30