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{};
275 #endif // COMPLETED_CELLS bool operator==(const CompletedCells &other) const
Equality predicate.
Definition: CompletedCells.cpp:125
double permz
Cell's permeability component in the grid's Z direction.
Definition: CompletedCells.hpp:57
std::size_t active_index() const
Retrieve cell's active index grid.
Definition: CompletedCells.cpp:64
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
double ntg
Cell's net-to-gross ratio.
Definition: CompletedCells.hpp:63
std::size_t active_index
Cell's active index in the range [0 .
Definition: CompletedCells.hpp:48
void serializeOp(Serializer &serializer)
Convert between byte array and object representation.
Definition: CompletedCells.hpp:182
Sparse collection of cells, and their properties, intersected by one or more well connections...
Definition: CompletedCells.hpp:35
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
void serializeOp(Serializer &serializer)
Convert between byte array and object representation.
Definition: CompletedCells.hpp:257
bool operator==(const Props &other) const
Equality predicate.
Definition: CompletedCells.cpp:28
double permx
Cell's permeability component in the grid's X direction.
Definition: CompletedCells.hpp:51
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:30
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
static Cell serializationTestObject()
Create a serialisation test object.
Definition: CompletedCells.cpp:82
void serializeOp(Serializer &serializer)
Convert between byte array and object representation.
Definition: CompletedCells.hpp:89
Property data of intersected cell.
Definition: CompletedCells.hpp:43
std::size_t k
Cartesian K index relative to grid origin.
Definition: CompletedCells.hpp:143
int pvtnum
Cell's PVT region index.
Definition: CompletedCells.hpp:69
bool is_active() const
Check if cell is discovered and has associated property data.
Definition: CompletedCells.cpp:59
int satnum
Cell's saturation region.
Definition: CompletedCells.hpp:66
CompletedCells()=default
Default constructor.
double permy
Cell's permeability component in the grid's Y direction.
Definition: CompletedCells.hpp:54
std::array< double, 3 > dimensions
Physical cell extents.
Definition: CompletedCells.hpp:149
Identification and associate properties of cell intersected by one or more well connections.
Definition: CompletedCells.hpp:40
Cell()=default
Default constructor.
static CompletedCells serializationTestObject()
Create a serialisation test object.
Definition: CompletedCells.cpp:133
Definition: GridDims.hpp:30
bool operator==(const Cell &other) const
Equality predicate.
Definition: CompletedCells.cpp:69
double depth
Depth of cell centre.
Definition: CompletedCells.hpp:146
static Props serializationTestObject()
Create a serialisation test object.
Definition: CompletedCells.cpp:42
double poro
Cell's porosity.
Definition: CompletedCells.hpp:60
std::size_t j
Cartesian J index relative to grid origin.
Definition: CompletedCells.hpp:140
std::size_t global_index
Linearised Cartesian cell index.
Definition: CompletedCells.hpp:134
Class for (de-)serializing.
Definition: Serializer.hpp:94