Dune Core Modules (2.9.0)
Dune::SPTopology< dim > Class Template Reference
description of the grid's topology More...
#include <dune/grid/spgrid/topology.hh>
Public Member Functions | |
SPTopology (const unsigned int periodic=0) | |
constructor More... | |
unsigned int | numNodes () const |
number of cubes forming this topology | |
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 | |
static const int | numFaces = 2*dimension |
number of faces of a cube | |
Detailed Description
template<int dim>
class Dune::SPTopology< dim >
class Dune::SPTopology< dim >
description of the grid's topology
The topology of a Cartesian grid is a set of cubes (called nodes, here) and their connectivity.
- Note
- Currently, only 1 node is supported.
- Template Parameters
-
dim dimension of the grid
Constructor & Destructor Documentation
◆ SPTopology()
template<int dim>
|
inlineexplicit |
constructor
- Parameters
-
[in] periodic bit field specifying which directions should be periodic (defaults to 0)
Member Function Documentation
◆ hasNeighbor()
template<int dim>
|
inline |
check whether a node has a neighbor over a face
- Parameters
-
[in] node index of the node [in] face number of the face
- Returns
- true, if there is a neighbor
◆ neighbor()
template<int dim>
|
inline |
obtain neighbor of a node over a face
- Parameters
-
[in] node index of the node [in] face number of the face
- Note
- The neighboring node will have the given node as neighbor over the opposite face.
- Returns
- the index of the neighboring node
◆ periodic() [1/2]
template<int dim>
|
inline |
obtain the periodicity bit field
- Note
- This method only makes sense in case of a single node
- Returns
- the bitfield specifying which directions are periodic
References Dune::Functions::BasisFactory::Experimental::periodic().
◆ periodic() [2/2]
template<int dim>
|
inline |
determine whether a direction is periodic
- Parameters
-
[in] i direction (0 <= i < dimension)
- Note
- This method only makes sense in case of a single node
- Returns
- true, if direction i is periodic
The documentation for this class was generated from the following file:
- dune/grid/spgrid/topology.hh
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Dec 20, 23:31, 2024)