![]() |
OpenLB 1.8.1
|
This class serializes the cells which are marked by indicator. More...
#include <serialization.h>
Inheritance diagram for olb::opti::SparseGeometrySerializer< S, dim >:
Collaboration diagram for olb::opti::SparseGeometrySerializer< S, dim >: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 209 of file serialization.h.
|
inline |
Definition at line 220 of file serialization.h.
References olb::Vector< T, Size >::data(), and olb::SuperStructure< T, D >::getCuboidDecomposition().
Here is the call graph for this function:
|
inline |
Definition at line 253 of file serialization.h.
|
inlineoverridevirtual |
Get lattice coordinates from serialized cell index.
Implements olb::opti::GeometrySerializer< S, dim >.
Definition at line 283 of file serialization.h.
|
inlineoverridevirtual |
Implements olb::opti::GeometrySerializer< S, dim >.
Definition at line 296 of file serialization.h.
|
inlineoverridevirtual |
Compute serialized cell index from lattice coordinates.
Implements olb::opti::GeometrySerializer< S, dim >.
Definition at line 260 of file serialization.h.