OpenLB 1.7
|
This class serializes the cells which are marked by indicator. More...
#include <serialization.h>
Public Member Functions | |
SparseGeometrySerializer (SuperGeometry< S, dim > &superGeometry, FunctorPtr< SuperIndicatorF< S, dim > > &&indicator) | |
SparseGeometrySerializer (SuperGeometry< S, dim > &superGeometry, FunctorPtr< IndicatorF< S, dim > > &&indicator) | |
std::size_t | getSerializedCellIndex (const int latticeR[]) const override |
Compute serialized cell index from lattice coordinates. | |
LatticeR< dim+1 > | getLatticeR (std::size_t index) const override |
Get lattice coordinates from serialized cell index. | |
unsigned | getNoCells () const override |
Public Member Functions inherited from olb::opti::GeometrySerializer< S, dim > | |
std::size_t | getSerializedCellIndex (LatticeR< dim+1 > latticeR) const |
Compute serialized cell index from lattice coordinates. | |
std::size_t | getSerializedComponentIndex (const int latticeR[], unsigned iD, unsigned fieldDim) const |
Get index of field component from lattice coordinates and component index. | |
std::size_t | getSerializedComponentIndex (LatticeR< dim+1 > latticeR, unsigned iD, unsigned fieldDim) const |
Get index of field component from lattice coordinates and component index. | |
std::size_t | getSerializedComponentIndex (LatticeAndFieldR coords, unsigned fieldDim) const |
Get index of field component from lattice coordinates and component index. | |
LatticeAndFieldR | getLatticeAndFieldR (std::size_t index, unsigned fieldDim) const |
Get lattice coordinates and field component from serialized field index. | |
This class serializes the cells which are marked by indicator.
It produces a smaller control vector, but access is more expensive compared to SimpleGeometrySerializer.
S | Floating point type |
dim | Geometrical dimension |
Definition at line 204 of file serialization.h.
|
inline |
Definition at line 215 of file serialization.h.
References olb::Vector< T, D >::data(), and olb::SuperStructure< T, D >::getCuboidGeometry().
|
inline |
Definition at line 248 of file serialization.h.
|
inlineoverridevirtual |
Get lattice coordinates from serialized cell index.
Implements olb::opti::GeometrySerializer< S, dim >.
Definition at line 278 of file serialization.h.
|
inlineoverridevirtual |
Implements olb::opti::GeometrySerializer< S, dim >.
Definition at line 291 of file serialization.h.
|
inlineoverridevirtual |
Compute serialized cell index from lattice coordinates.
Implements olb::opti::GeometrySerializer< S, dim >.
Definition at line 255 of file serialization.h.