dune-spgrid 2.8.0
|
description of the grid's topology More...
#include <dune/grid/spgrid/topology.hh>
Public Member Functions | |
SPTopology (const unsigned int periodic=0) | |
constructor More... | |
SPTopology (const This &other) | |
~SPTopology () | |
const This & | operator= (const This &other) |
unsigned int | numNodes () const |
number of cubes forming this topology More... | |
bool | hasNeighbor (const unsigned int node, const int face) const |
check whether a node has a neighbor over a face More... | |
unsigned int | neighbor (const unsigned int node, const int face) const |
obtain neighbor of a node over a face More... | |
bool | periodic (const int i) const |
determine whether a direction is periodic More... | |
unsigned int | periodic () const |
obtain the periodicity bit field More... | |
Static Public Attributes | |
static const int | dimension = dim |
dimension of the domain More... | |
static const int | numFaces = 2*dimension |
number of faces of a cube More... | |
description of the grid's topology
The topology of a Cartesian grid is a set of cubes (called nodes, here) and their connectivity.
dim | dimension of the grid |
|
inlineexplicit |
constructor
[in] | periodic | bit field specifying which directions should be periodic (defaults to 0) |
|
inline |
|
inline |
|
inline |
check whether a node has a neighbor over a face
[in] | node | index of the node |
[in] | face | number of the face |
|
inline |
obtain neighbor of a node over a face
[in] | node | index of the node |
[in] | face | number of the face |
|
inline |
number of cubes forming this topology
|
inline |
|
inline |
obtain the periodicity bit field
|
inline |
determine whether a direction is periodic
[in] | i | direction (0 <= i < dimension) |
|
static |
dimension of the domain
|
static |
number of faces of a cube