OpenLB 1.7
|
#include <blockStructure2D.h>
Public Member Functions | |
BlockStructure2D (int nx, int ny) | |
BlockStructure2D (int nx, int ny, int overlap) | |
BlockStructure2D () | |
int | getNx () const |
Read only access to block width. | |
int | getNy () const |
Read only access to block height. | |
std::size_t | getNcells () const |
Get number of cells. | |
std::size_t | getCellId (int iX, int iY) const |
Get 1D cell ID. | |
std::ptrdiff_t | getNeighborDistance (int iX, int iY) const |
Get 1D neighbor distance. | |
std::ptrdiff_t | getNeighborDistance (Vector< int, 2 > c) const |
Get 1D neighbor distance. | |
bool | isInside (int iX, int iY) const |
Return whether location is valid. | |
Protected Attributes | |
int | _nx |
Block width. | |
int | _ny |
Block height. | |
Definition at line 47 of file blockStructure2D.h.
|
inline |
Definition at line 54 of file blockStructure2D.h.
|
inline |
Definition at line 55 of file blockStructure2D.h.
|
inline |
Definition at line 57 of file blockStructure2D.h.
|
inline |
Get 1D cell ID.
Definition at line 79 of file blockStructure2D.h.
References _nx, _ny, and OLB_PRECONDITION.
|
inline |
Get number of cells.
Definition at line 69 of file blockStructure2D.h.
References getNx(), and getNy().
|
inline |
Get 1D neighbor distance.
Definition at line 96 of file blockStructure2D.h.
References _ny.
|
inline |
Get 1D neighbor distance.
Definition at line 101 of file blockStructure2D.h.
References getNeighborDistance().
|
inline |
Read only access to block width.
Definition at line 59 of file blockStructure2D.h.
References _nx.
|
inline |
Read only access to block height.
Definition at line 64 of file blockStructure2D.h.
References _ny.
|
inline |
|
protected |
Block width.
Definition at line 50 of file blockStructure2D.h.
|
protected |
Block height.
Definition at line 52 of file blockStructure2D.h.