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);
304 #endif // OPM_PARSER_PVTX_TABLE_HPP auto cbegin() const
Start of sequence of sub-tables.
Definition: PvtxTable.hpp:199
Definition: TableSchema.hpp:32
virtual ~PvtxTable()=default
Virtual destructor.
bool operator==(const PvtxTable &data) const
Equality predicate.
Definition: PvtxTable.cpp:156
TableSchema m_saturatedSchema
Table description of saturated states.
Definition: PvtxTable.hpp:245
void init(const DeckKeyword &keyword, std::size_t tableIdx)
Populate internal data structures from PVTx input table data.
Definition: PvtxTable.cpp:170
TableSchema m_underSaturatedSchema
Table description of under-saturated states.
Definition: PvtxTable.hpp:242
PvtxTable()=default
Default constructor.
Definition: ColumnSchema.hpp:31
Base class for PVTG and PVTO tables.
Definition: PvtxTable.hpp:116
void serializeOp(Serializer &serializer)
Convert between byte array and object representation.
Definition: PvtxTable.hpp:222
auto end() const
End of sequence of sub-tables.
Definition: PvtxTable.hpp:202
SimpleTable m_saturatedTable
Inferred table of saturated states.
Definition: PvtxTable.hpp:253
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:30
Definition: SimpleTable.hpp:35
const SimpleTable & getSaturatedTable() const
Retrieve derived table of saturated states.
Definition: PvtxTable.cpp:121
Definition: TableColumn.hpp:32
ColumnSchema m_outerColumnSchema
Table description of primary lookup key.
Definition: PvtxTable.hpp:236
auto cend() const
End of sequence of sub-tables.
Definition: PvtxTable.hpp:205
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
TableColumn m_outerColumn
Primary lookup key values.
Definition: PvtxTable.hpp:239
static PvtxTable serializationTestObject()
Create a serialisation test object.
Definition: PvtxTable.cpp:105
double getArgValue(std::size_t index) const
Retrieve composition/pressure node value at input point.
Definition: PvtxTable.cpp:145
const SimpleTable & getUnderSaturatedTable(std::size_t tableNumber) const
Retrieve sub-table for a single composition or pressure node.
Definition: PvtxTable.cpp:127
std::size_t size() const
Number of sub-tables.
Definition: PvtxTable.cpp:140
static std::size_t numTables(const DeckKeyword &keyword)
Number of complete tables in input PVTx keyword.
Definition: PvtxTable.cpp:71
std::vector< SimpleTable > m_underSaturatedTables
Under-saturated sub-tables.
Definition: PvtxTable.hpp:250
auto begin() const
Start of sequence of sub-tables.
Definition: PvtxTable.hpp:193
Class for (de-)serializing.
Definition: Serializer.hpp:94
Definition: DeckKeyword.hpp:36