20#ifndef COMPLETED_CELLS
21#define COMPLETED_CELLS
23#include <opm/input/eclipse/EclipseState/Grid/GridDims.hpp>
28#include <unordered_map>
88 template<
class Serializer>
92 serializer(this->
permx);
93 serializer(this->
permy);
94 serializer(this->
permz);
95 serializer(this->
poro);
98 serializer(this->
ntg);
122 const std::size_t i_,
123 const std::size_t j_,
124 const std::size_t k_)
181 template<
class Serializer>
188 serializer(this->
props);
189 serializer(this->
depth);
223 const Cell&
get(std::size_t i, std::size_t j, std::size_t k)
const;
237 std::pair<Cell*, bool>
238 try_get(std::size_t i, std::size_t j, std::size_t k);
256 template<
class Serializer>
259 serializer(this->dims);
260 serializer(this->cells);
270 std::unordered_map<std::size_t, Cell> cells{};
Sparse collection of cells, and their properties, intersected by one or more well connections.
Definition CompletedCells.hpp:36
void serializeOp(Serializer &serializer)
Convert between byte array and object representation.
Definition CompletedCells.hpp:257
std::pair< Cell *, bool > try_get(std::size_t i, std::size_t j, std::size_t k)
Retrieve, and possibly create, an intersected cell.
Definition CompletedCells.cpp:114
CompletedCells()=default
Default constructor.
static CompletedCells serializationTestObject()
Create a serialisation test object.
Definition CompletedCells.cpp:133
bool operator==(const CompletedCells &other) const
Equality predicate.
Definition CompletedCells.cpp:125
const Cell & get(std::size_t i, std::size_t j, std::size_t k) const
Retrieve intersected cell.
Definition CompletedCells.cpp:106
Definition GridDims.hpp:31
Class for (de-)serializing.
Definition Serializer.hpp:94
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30
Property data of intersected cell.
Definition CompletedCells.hpp:44
std::size_t active_index
Cell's active index in the range [0 .
Definition CompletedCells.hpp:48
bool operator==(const Props &other) const
Equality predicate.
Definition CompletedCells.cpp:28
int satnum
Cell's saturation region.
Definition CompletedCells.hpp:66
void serializeOp(Serializer &serializer)
Convert between byte array and object representation.
Definition CompletedCells.hpp:89
int pvtnum
Cell's PVT region index.
Definition CompletedCells.hpp:69
double permy
Cell's permeability component in the grid's Y direction.
Definition CompletedCells.hpp:54
double poro
Cell's porosity.
Definition CompletedCells.hpp:60
double permx
Cell's permeability component in the grid's X direction.
Definition CompletedCells.hpp:51
double permz
Cell's permeability component in the grid's Z direction.
Definition CompletedCells.hpp:57
double ntg
Cell's net-to-gross ratio.
Definition CompletedCells.hpp:63
static Props serializationTestObject()
Create a serialisation test object.
Definition CompletedCells.cpp:42
Identification and associate properties of cell intersected by one or more well connections.
Definition CompletedCells.hpp:41
double depth
Depth of cell centre.
Definition CompletedCells.hpp:146
Cell()=default
Default constructor.
static Cell serializationTestObject()
Create a serialisation test object.
Definition CompletedCells.cpp:82
std::size_t global_index
Linearised Cartesian cell index.
Definition CompletedCells.hpp:134
std::size_t active_index() const
Retrieve cell's active index grid.
Definition CompletedCells.cpp:64
void serializeOp(Serializer &serializer)
Convert between byte array and object representation.
Definition CompletedCells.hpp:182
Cell(const std::size_t g, const std::size_t i_, const std::size_t j_, const std::size_t k_)
Constructor.
Definition CompletedCells.hpp:121
std::size_t k
Cartesian K index relative to grid origin.
Definition CompletedCells.hpp:143
bool operator==(const Cell &other) const
Equality predicate.
Definition CompletedCells.cpp:69
std::size_t i
Cartesian I index relative to grid origin.
Definition CompletedCells.hpp:137
std::optional< Props > props
Cell property data.
Definition CompletedCells.hpp:154
std::size_t j
Cartesian J index relative to grid origin.
Definition CompletedCells.hpp:140
std::array< double, 3 > dimensions
Physical cell extents.
Definition CompletedCells.hpp:149
bool is_active() const
Check if cell is discovered and has associated property data.
Definition CompletedCells.cpp:59