![]() |
OpenLB 1.8.1
|
Base of a regular block. More...
#include <blockStructure.h>
Inheritance diagram for olb::BlockStructureD< D >:
Collaboration diagram for olb::BlockStructureD< D >:Public Member Functions | |
| BlockStructureD (Vector< int, D > size, int padding=0) | |
| BlockStructureD () | |
| void | resize (Vector< int, D > size) |
| auto | getCore () const |
| 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 |
| LatticeR< D > | getLatticeR (CellID iCell) 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. | |
| bool | isPadding (LatticeR< D > latticeR, int overlap) const |
| bool | isPadding (CellID iCell) const |
| 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().
Here is the call graph for this function:
|
inline |
Definition at line 85 of file blockStructure.h.
|
inline |
Definition at line 376 of file blockStructure.h.
References olb::BlockStructureD< D >::getNcells().
Here is the call graph for this function:
|
inline |
Definition at line 343 of file blockStructure.h.
References olb::BlockStructureD< D >::_core.
Here is the caller graph for this function:
|
inline |
Definition at line 236 of file blockStructure.h.
References olb::BlockStructureD< D >::_core, and olb::BlockStructureD< D >::_padding.
Here is the caller graph for this function:
|
inline |
Definition at line 310 of file blockStructure.h.
References olb::BlockStructureD< D >::_core, and olb::BlockStructureD< D >::_padding.
|
inline |
Definition at line 269 of file blockStructure.h.
References olb::BlockStructureD< D >::_core, and olb::BlockStructureD< D >::_padding.
|
inline |
Definition at line 158 of file blockStructure.h.
References olb::BlockStructureD< D >::_padding, and olb::BlockStructureD< D >::_projection.
|
inline |
Get 1D cell ID.
Definition at line 150 of file blockStructure.h.
References olb::BlockStructureD< D >::_padding, olb::BlockStructureD< D >::_projection, olb::BlockStructureD< D >::isInside(), and OLB_PRECONDITION.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 102 of file blockStructure.h.
References olb::BlockStructureD< D >::_core.
Here is the caller graph for this function:
|
inline |
Definition at line 125 of file blockStructure.h.
References olb::BlockStructureD< D >::_core.
|
inline |
Definition at line 163 of file blockStructure.h.
References olb::BlockStructureD< D >::_padding, and olb::BlockStructureD< D >::_projection.
Here is the caller graph for this function:
|
inline |
Get number of cells.
Definition at line 137 of file blockStructure.h.
References olb::BlockStructureD< D >::_size.
Here is the caller graph for this function:
|
inline |
Get 1D neighbor distance.
Definition at line 179 of file blockStructure.h.
References olb::BlockStructureD< D >::_projection.
Here is the caller graph for this function:
|
inline |
Return maximum valid neighborhood sphere radius w.r.t. latticeR.
Definition at line 223 of file blockStructure.h.
References olb::BlockStructureD< D >::_padding, and olb::BlockStructureD< D >::_size.
Here is the caller graph for this function:
|
inline |
Read only access to block width.
Definition at line 108 of file blockStructure.h.
References olb::BlockStructureD< D >::_core.
Here is the caller graph for this function:
|
inline |
Read only access to block height.
Definition at line 113 of file blockStructure.h.
References olb::BlockStructureD< D >::_core.
Here is the caller graph for this function:
|
inline |
Read only access to block height.
Definition at line 119 of file blockStructure.h.
References olb::BlockStructureD< D >::_core.
Here is the caller graph for this function:
|
inline |
Read only access to padding.
Definition at line 131 of file blockStructure.h.
References olb::BlockStructureD< D >::_padding.
Here is the caller graph for this function:
|
inline |
Definition at line 217 of file blockStructure.h.
References olb::BlockStructureD< D >::isInside().
Here is the call graph for this function:
|
inline |
Return whether location is valid.
Definition at line 185 of file blockStructure.h.
References olb::BlockStructureD< D >::_core, and olb::BlockStructureD< D >::_padding.
Here is the caller graph for this function:
|
inline |
Return whether location is inside core.
Definition at line 191 of file blockStructure.h.
References olb::BlockStructureD< D >::_core.
Here is the caller graph for this function:
|
inline |
Definition at line 210 of file blockStructure.h.
References olb::BlockStructureD< D >::getLatticeR(), and olb::BlockStructureD< D >::isPadding().
Here is the call graph for this function:
|
inline |
Return whether location is valid.
Definition at line 197 of file blockStructure.h.
References olb::BlockStructureD< D >::_core, and olb::BlockStructureD< D >::isInside().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 202 of file blockStructure.h.
References olb::BlockStructureD< D >::_core, olb::BlockStructureD< D >::isInside(), and olb::BlockStructureD< D >::isInsideCore().
Here is the call graph for this function:
|
inline |
Definition at line 89 of file blockStructure.h.
References olb::BlockStructureD< D >::_core, olb::BlockStructureD< D >::_padding, olb::BlockStructureD< D >::_projection, and olb::BlockStructureD< D >::_size.
|
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.