Defines all stencil directions and their properties, and a general DxQy stencil class.
- Author
- Martin Bauer marti.nosp@m.n.ba.nosp@m.uer@f.nosp@m.au.d.nosp@m.e
|
Direction | walberla::stencil::vectorToDirection (cell_idx_t x, cell_idx_t y, cell_idx_t z) |
| Maps a (x,y,z) direction vector to its direction.
|
|
Direction | walberla::stencil::vectorToDirection (Vector3< cell_idx_t > vec) |
|
bool | walberla::stencil::isFaceDirection (Direction dir) |
|
bool | walberla::stencil::isEdgeDirection (Direction dir) |
|
bool | walberla::stencil::isCornerDirection (Direction dir) |
|
Direction | walberla::stencil::directionFromAxis (int axis, bool minOrMax) |
| Maps (direction,axis) pair to direction.
|
|
Direction | walberla::stencil::directionFromAxis (uint_t axis, bool minOrMax) |
| Maps (direction,axis) pair to direction.
|
|
Cell | walberla::stencil::operator+ (const Cell &cell, const Direction d) |
| Computes neighbor from cell in direction d.
|
|
Cell | walberla::stencil::operator- (const Cell &cell, const Direction d) |
| Computes neighbor from cell in direction inverseDir[d].
|
|
Cell & | walberla::stencil::operator+= (Cell &cell, const Direction d) |
| Shifts cell to its neighbor in direction d.
|
|
Cell & | walberla::stencil::operator-= (Cell &cell, const Direction d) |
| Shifts cell to its neighbor in direction inverseDir[d].
|
|
|
const uint_t | walberla::stencil::NR_OF_DIRECTIONS = 27 |
|
const std::array< int, NR_OF_DIRECTIONS > | walberla::stencil::cx |
| The x component for each direction.
|
|
const std::array< int, NR_OF_DIRECTIONS > | walberla::stencil::cy |
| The y component for each direction.
|
|
const std::array< int, NR_OF_DIRECTIONS > | walberla::stencil::cz |
| The z component for each direction.
|
|
const std::array< std::array< int, NR_OF_DIRECTIONS >, 3 > | walberla::stencil::c |
| The x,y,z component for each direction.
|
|
const std::array< std::array< real_t, NR_OF_DIRECTIONS >, 3 > | walberla::stencil::cNorm |
| The x,y,z component for each normalized direction.
|
|
const std::array< std::string, NR_OF_DIRECTIONS > | walberla::stencil::dirToString |
| String representation for each direction.
|
|
const std::array< BinaryDirection, NR_OF_DIRECTIONS > | walberla::stencil::dirToBinary |
| Binary encoded direction for each direction.
|
|
const std::array< Direction, NR_OF_DIRECTIONS > | walberla::stencil::inverseDir |
| Inverse directions.
|
|
const std::array< real_t, NR_OF_DIRECTIONS > | walberla::stencil::dirLength |
| Length for each direction.
|
|
const std::array< real_t, NR_OF_DIRECTIONS > | walberla::stencil::gaussianWeights |
|
const std::array< uint_t, NR_OF_DIRECTIONS > | walberla::stencil::gaussianMultipliers |
|
const std::array< Direction, NR_OF_DIRECTIONS > | walberla::stencil::mirrorX |
| The mirrored directions (flip W-E)
|
|
const std::array< Direction, NR_OF_DIRECTIONS > | walberla::stencil::mirrorY |
| The mirrored directions (flip N-S)
|
|
const std::array< Direction, NR_OF_DIRECTIONS > | walberla::stencil::mirrorZ |
| The mirrored directions (flip T-B)
|
|
const std::array< std::array< Direction, NR_OF_DIRECTIONS >, 3 > | walberla::stencil::map2Dto3D |
| Maps from 2D directions (C, N, S, W, E, NW, NE, SW, SE) to 3D directions, by slicing through x,y or z coordinate The first array index represents the slice dimension ( 0 for x, 1 for y, 2 for z) Example: printing a slice through x coordinate (keeping x fixed) of a D3Q19 field:
|
|