Programming tasks to Scientific Computing I
|
Dart iterator. More...
#include <adaptiveTriangMesh.h>
Public Member Functions | |
DartIterator (const MeshType &Mesh, GlobalIndex triangleIndex, LocalIndex localEdgeIndex, LocalIndex localNodeIndex) | |
Constructor. More... | |
DartIterator (const MeshType &Mesh, GlobalIndex triangleIndex, LocalIndex localEdgeIndex) | |
Constructor. Does not take a note, but orients the DartIterator counterclockwise. More... | |
void | set (const GlobalIndex triangle, const LocalIndex edge, const LocalIndex node) |
GlobalIndex | getGlobalTriangleIndex () const |
GlobalIndex | getGlobalNodeIndex () const |
LocalIndex | getLocalNodeIndex () const |
LocalIndex | getLocalEdgeIndex () const |
LocalIndex | getNextNodeLocalIndex () const |
LocalIndex | getNextEdgeLocalIndex () const |
GlobalIndex | getNextNodeGlobalIndex () const |
GlobalIndex | getNextTriangleIndex () const |
template<typename DartIteratorType > | |
LocalIndex | getCommonNodeLocalIndex (const DartIteratorType &d) const |
Returns local index of common node (first checking if "d" also refers to _triangle, but to a different node) More... | |
template<typename DartIteratorType > | |
GlobalIndex | getCommonNodeGlobalIndex (const DartIteratorType &d) const |
Returns global index of common node (also if "d" refers to a different triangle than _triangle ) More... | |
void | print () const |
bool | canFlipTriangle () const |
Does _triangle have a neighbour across _edge? More... | |
void | flipTriangle () |
Moves to neighbouring triangle across _edge. More... | |
void | flipNode () |
Moves to other node along _edge (inside current triangle) More... | |
void | flipEdge () |
moves to other edge with _node (inside current triangle) More... | |
Protected Attributes | |
const MeshType & | _mesh |
GlobalIndex | _triangle |
LocalIndex | _node |
LocalIndex | _edge |
Private Types | |
typedef AdaptiveTriangMesh< DataTypeContainer, TriangleType > | MeshType |
Dart iterator.
This iterator can be used for grid refinement. Please refer to the exercise sheet for a short introduction.
Definition at line 39 of file adaptiveTriangMesh.h.
|
private |
Definition at line 41 of file adaptiveTriangMesh.h.
|
inline |
Constructor.
[in] | Mesh | The mesh containing the element |
[in] | triangleIndex | The index of the triangle to use |
[in] | localEdgeIndex | Local index of the edge along which the DartIterator will be oriented |
[in] | localNodeIndex | Local index of the node |
Definition at line 56 of file adaptiveTriangMesh.h.
|
inline |
Constructor. Does not take a note, but orients the DartIterator counterclockwise.
[in] | Mesh | The mesh containing the element |
[in] | triangleIndex | The index of the triangle to use |
[in] | localEdgeIndex | Local index of the edge along which the DartIterator will be oriented |
Definition at line 64 of file adaptiveTriangMesh.h.
|
inline |
Does _triangle have a neighbour across _edge?
Definition at line 143 of file adaptiveTriangMesh.h.
|
inline |
moves to other edge with _node (inside current triangle)
Definition at line 195 of file adaptiveTriangMesh.h.
|
inline |
Moves to other node along _edge (inside current triangle)
Definition at line 189 of file adaptiveTriangMesh.h.
|
inline |
Moves to neighbouring triangle across _edge.
Definition at line 149 of file adaptiveTriangMesh.h.
|
inline |
Returns global index of common node (also if "d" refers to a different triangle than _triangle )
Definition at line 127 of file adaptiveTriangMesh.h.
|
inline |
Returns local index of common node (first checking if "d" also refers to _triangle, but to a different node)
Definition at line 116 of file adaptiveTriangMesh.h.
|
inline |
Definition at line 79 of file adaptiveTriangMesh.h.
|
inline |
Definition at line 74 of file adaptiveTriangMesh.h.
|
inline |
Definition at line 89 of file adaptiveTriangMesh.h.
|
inline |
Definition at line 84 of file adaptiveTriangMesh.h.
|
inline |
Definition at line 99 of file adaptiveTriangMesh.h.
|
inline |
Definition at line 104 of file adaptiveTriangMesh.h.
|
inline |
Definition at line 94 of file adaptiveTriangMesh.h.
|
inline |
Definition at line 109 of file adaptiveTriangMesh.h.
|
inline |
Definition at line 137 of file adaptiveTriangMesh.h.
|
inline |
Definition at line 67 of file adaptiveTriangMesh.h.
|
protected |
Definition at line 47 of file adaptiveTriangMesh.h.
|
protected |
Definition at line 44 of file adaptiveTriangMesh.h.
|
protected |
Definition at line 46 of file adaptiveTriangMesh.h.
|
protected |
Definition at line 45 of file adaptiveTriangMesh.h.