A simple i-j-k (row-major order) to linear addressing for a rectilinear mesh. Since the underlying mesh is rectilinear, some mesh-related sizing information can be derived directly from the addressing information. More...
Public Member Functions | |
ijkMesh () | |
ijkMesh (const labelVector &ijk) | |
ijkMesh (const label nx, const label ny, const label nz) | |
label | nPoints () const |
label | nCells () const |
label | nFaces () const |
label | nInternalFaces () const |
label | nBoundaryFaces () const |
label | nBoundaryFaces (const direction shapeFacei) const |
label | cellLabel (const label i, const label j, const label k) const |
label | cellLabel (const labelVector &ijk) const |
label | pointLabel (const label i, const label j, const label k) const |
label | pointLabel (const labelVector &ijk) const |
hexCell | vertLabels (const label i, const label j, const label k) const |
hexCell | vertLabels (const labelVector &ijk) const |
![]() | |
ijkAddressing () | |
ijkAddressing (const labelVector &ijk) | |
ijkAddressing (const label ni, const label nj, const label nk) | |
bool | empty () const |
const labelVector & | sizes () const |
labelVector & | sizes () |
label | size () const |
const label & | size (const vector::components cmpt) const |
void | clear () |
void | reset (const label ni, const label nj, const label nk) |
void | reset (const labelVector &newSizes) |
label | index (const label i, const label j, const label k) const |
label | index (const labelVector &ijk) const |
labelVector | index (const label idx) const |
void | checkIndex (const label i, const label j, const label k, const bool allowExtra=false) const |
void | checkIndex (const labelVector &ijk, const bool allowExtra=false) const |
void | checkSizes () const |
void | checkSizes (const labelVector &other) const |
void | checkSizes (const label nTotal) const |
A simple i-j-k (row-major order) to linear addressing for a rectilinear mesh. Since the underlying mesh is rectilinear, some mesh-related sizing information can be derived directly from the addressing information.
|
inline |
Definition at line 23 of file ijkMeshI.H.
|
inlineexplicit |
Definition at line 29 of file ijkMeshI.H.
|
inline |
Definition at line 36 of file ijkMeshI.H.
|
inline |
Definition at line 48 of file ijkMeshI.H.
References ijkAddressing::empty(), n, and ijkAddressing::sizes().
Referenced by Foam::operator<<().
|
inline |
Definition at line 61 of file ijkMeshI.H.
References ijkAddressing::size().
Referenced by PDRblock::location::checkIndex(), and Foam::operator<<().
|
inline |
Definition at line 67 of file ijkMeshI.H.
References ijkAddressing::empty(), n, and ijkAddressing::sizes().
Referenced by Foam::operator<<().
|
inline |
Definition at line 85 of file ijkMeshI.H.
References ijkAddressing::empty(), n, and ijkAddressing::sizes().
Referenced by Foam::operator<<().
|
inline |
Definition at line 103 of file ijkMeshI.H.
References ijkAddressing::empty(), n, and ijkAddressing::sizes().
|
inline |
Definition at line 122 of file ijkMeshI.H.
References ijkAddressing::empty(), n, and ijkAddressing::sizes().
|
inline |
Definition at line 159 of file ijkMeshI.H.
References ijkAddressing::index(), and k.
|
inline |
Definition at line 169 of file ijkMeshI.H.
References ijkAddressing::index().
|
inline |
Definition at line 176 of file ijkMeshI.H.
Referenced by Foam::facePoint(), Foam::facePointN(), and ijkMesh::vertLabels().
|
inline |
Definition at line 192 of file ijkMeshI.H.
References n, Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().
Foam::hexCell vertLabels | ( | const label | i, |
const label | j, | ||
const label | k | ||
) | const |
Definition at line 26 of file ijkMesh.C.
References k, and ijkMesh::pointLabel().
Foam::hexCell vertLabels | ( | const labelVector & | ijk | ) | const |
Definition at line 43 of file ijkMesh.C.
References Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.