OpenLB 1.7
|
This class serializes the cells inside the geometry. More...
#include <serialization.h>
Classes | |
struct | LatticeAndFieldR |
Bundle for lattice coordinates + field component. More... | |
Public Member Functions | |
virtual std::size_t | getSerializedCellIndex (const int latticeR[]) const =0 |
Compute serialized cell index from lattice coordinates. | |
std::size_t | getSerializedCellIndex (LatticeR< dim+1 > latticeR) const |
Compute serialized cell index from lattice coordinates. | |
virtual LatticeR< dim+1 > | getLatticeR (std::size_t index) const =0 |
Get lattice coordinates from serialized cell index. | |
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. | |
virtual unsigned | getNoCells () const =0 |
This class serializes the cells inside the geometry.
Intended for creating one long vector out of field data on super level. Methods for indexing cells as well as field components are offered.
Definition at line 51 of file serialization.h.
|
inline |
Get lattice coordinates and field component from serialized field index.
Definition at line 90 of file serialization.h.
References olb::opti::GeometrySerializer< S, dim >::getLatticeR().
|
pure virtual |
Get lattice coordinates from serialized cell index.
Implemented in olb::opti::SimpleGeometrySerializer< S, dim >, and olb::opti::SparseGeometrySerializer< S, dim >.
|
pure virtual |
|
pure virtual |
Compute serialized cell index from lattice coordinates.
Implemented in olb::opti::SimpleGeometrySerializer< S, dim >, and olb::opti::SparseGeometrySerializer< S, dim >.
|
inline |
Compute serialized cell index from lattice coordinates.
Definition at line 64 of file serialization.h.
References olb::Vector< T, D >::data(), and olb::opti::GeometrySerializer< S, dim >::getSerializedCellIndex().
|
inline |
Get index of field component from lattice coordinates and component index.
Definition at line 72 of file serialization.h.
References olb::opti::GeometrySerializer< S, dim >::getSerializedCellIndex().
|
inline |
Get index of field component from lattice coordinates and component index.
Definition at line 84 of file serialization.h.
References olb::opti::GeometrySerializer< S, dim >::LatticeAndFieldR::fieldComponent, olb::opti::GeometrySerializer< S, dim >::getSerializedComponentIndex(), and olb::opti::GeometrySerializer< S, dim >::LatticeAndFieldR::latticeR.
|
inline |
Get index of field component from lattice coordinates and component index.
Definition at line 78 of file serialization.h.
References olb::opti::GeometrySerializer< S, dim >::getSerializedCellIndex().