OpenLB 1.7
|
Base of a regular block. More...
#include <blockStructure.h>
Public Member Functions | |
BlockStructureD (Vector< int, D > size, int padding=0) | |
BlockStructureD () | |
int | getNx () const |
Read only access to block width. | |
int | getNy () const |
Read only access to block height. | |
int | getNz () const |
Read only access to block height. | |
LatticeR< D > | getExtent () const |
int | getPadding () const |
Read only access to padding. | |
std::size_t | getNcells () const |
Get number of cells. | |
CellID | getCellId (LatticeR< D > latticeR) const |
Get 1D cell ID. | |
template<typename... L> | |
std::enable_if_t< sizeof...(L)==D, CellID > | getCellId (L... latticeR) const |
CellDistance | getNeighborDistance (LatticeR< D > dir) const |
Get 1D neighbor distance. | |
bool | isInside (LatticeR< D > latticeR) const |
Return whether location is valid. | |
bool | isInsideCore (LatticeR< D > latticeR) const |
Return whether location is inside core. | |
bool | isPadding (LatticeR< D > latticeR) const |
Return whether location is valid. | |
template<typename... L> | |
std::enable_if_t< sizeof...(L)==D, bool > | isInside (L... latticeR) const |
CellDistance | getNeighborhoodRadius (LatticeR< D > latticeR) const |
Return maximum valid neighborhood sphere radius w.r.t. latticeR. | |
template<typename F > | |
void | forSpatialLocations (F f) const |
template<typename F > | |
void | forSpatialLocationsParallel (F f) const |
template<typename F > | |
void | forSpatialLocations (LatticeR< D > min, LatticeR< D > max, F f) const |
template<typename F > | |
void | forCoreSpatialLocations (F f) const |
template<typename F > | |
void | forCellIndices (F f) const |
Protected Attributes | |
LatticeR< D > | _core |
LatticeR< D > | _size |
LatticeR< D > | _projection |
int | _padding |
Base of a regular block.
With extent, optional padding and memory bijection for spatial locations
Definition at line 54 of file blockStructure.h.
|
inline |
Definition at line 65 of file blockStructure.h.
References olb::BlockStructureD< D >::_projection, olb::BlockStructureD< D >::_size, and olb::BlockStructureD< D >::getNcells().
|
inline |
Definition at line 81 of file blockStructure.h.
|
inline |
Definition at line 286 of file blockStructure.h.
References olb::BlockStructureD< D >::getNcells().
|
inline |
Definition at line 261 of file blockStructure.h.
References olb::BlockStructureD< D >::_core.
|
inline |
Definition at line 183 of file blockStructure.h.
References olb::BlockStructureD< D >::_core, and olb::BlockStructureD< D >::_padding.
|
inline |
Definition at line 236 of file blockStructure.h.
References olb::BlockStructureD< D >::_core, and olb::BlockStructureD< D >::_padding.
|
inline |
Definition at line 208 of file blockStructure.h.
References olb::BlockStructureD< D >::_core, and olb::BlockStructureD< D >::_padding.
|
inline |
Definition at line 133 of file blockStructure.h.
References olb::BlockStructureD< D >::_padding, and olb::BlockStructureD< D >::_projection.
|
inline |
Get 1D cell ID.
Definition at line 125 of file blockStructure.h.
References olb::BlockStructureD< D >::_padding, olb::BlockStructureD< D >::_projection, olb::BlockStructureD< D >::isInside(), and OLB_PRECONDITION.
|
inline |
Definition at line 102 of file blockStructure.h.
References olb::BlockStructureD< D >::_core.
|
inline |
Get number of cells.
Definition at line 114 of file blockStructure.h.
References olb::BlockStructureD< D >::_size.
|
inline |
Get 1D neighbor distance.
Definition at line 139 of file blockStructure.h.
References olb::BlockStructureD< D >::_projection.
|
inline |
Return maximum valid neighborhood sphere radius w.r.t. latticeR.
Definition at line 170 of file blockStructure.h.
References olb::BlockStructureD< D >::_padding, and olb::BlockStructureD< D >::_size.
|
inline |
Read only access to block width.
Definition at line 86 of file blockStructure.h.
References olb::BlockStructureD< D >::_core.
|
inline |
Read only access to block height.
Definition at line 91 of file blockStructure.h.
References olb::BlockStructureD< D >::_core.
|
inline |
Read only access to block height.
Definition at line 96 of file blockStructure.h.
References olb::BlockStructureD< D >::_core.
|
inline |
Read only access to padding.
Definition at line 108 of file blockStructure.h.
References olb::BlockStructureD< D >::_padding.
|
inline |
Definition at line 164 of file blockStructure.h.
References olb::BlockStructureD< D >::isInside().
|
inline |
Return whether location is valid.
Definition at line 145 of file blockStructure.h.
References olb::BlockStructureD< D >::_core, and olb::BlockStructureD< D >::_padding.
|
inline |
Return whether location is inside core.
Definition at line 151 of file blockStructure.h.
References olb::BlockStructureD< D >::_core.
|
inline |
Return whether location is valid.
Definition at line 157 of file blockStructure.h.
References olb::BlockStructureD< D >::_core, and olb::BlockStructureD< D >::isInside().
|
protected |
Definition at line 56 of file blockStructure.h.
|
protected |
Definition at line 60 of file blockStructure.h.
|
protected |
Definition at line 58 of file blockStructure.h.
|
protected |
Definition at line 57 of file blockStructure.h.