Dune Core Modules (2.9.0)

Dune::ElementTopologyMapping< type > Class Template Reference

#include <dune/alugrid/3d/topology.hh>

Static Public Member Functions

static int dune2aluFace (int index)
 Maps face index from Dune onto ALU3dGrid reference element.
 
static int alu2duneFace (int index)
 Maps face index from ALU3dGrid onto Dune reference element.
 
static int dune2aluEdge (int index)
 Maps edge index from Dune onto ALU3dGrid reference element.
 
static int alu2duneEdge (int index)
 Maps edge index from ALU3dGrid onto Dune reference element.
 
static int dune2aluVertex (int index)
 Maps vertex index from Dune onto ALU3dGrid reference element.
 
static int alu2duneVertex (int index)
 Maps vertex index from ALU3dGrid onto Dune reference element.
 
static int faceOrientation (int index)
 
static int dune2aluFaceVertex (int face, int localVertex)
 
static int alu2duneFaceVertex (int face, int localVertex)
 
static int duneFaceTwist (int face)
 obtain twist of ALU reference face with respect to DUNE reference face More...
 
static int faceVertex (int face, int local)
 Maps a local vertex on a face onto a global vertex. More...
 

Detailed Description

template<ALU3dGridElementType type>
class Dune::ElementTopologyMapping< type >

Maps indices of the Dune reference element onto the indices of the ALU3dGrid reference element and vice-versa.

Member Function Documentation

◆ alu2duneFaceVertex()

template<ALU3dGridElementType type>
int Dune::ElementTopologyMapping< type >::alu2duneFaceVertex ( int  face,
int  localVertex 
)
inlinestatic

Maps local vertex index of a face onto a global vertex index (ALU3dGrid->Dune)

Parameters
faceFace index (ALU3dGrid reference element)
localVertexLocal vertex index on face face (ALU3dGrid reference element)
Returns
global vertex index in Dune reference element

◆ dune2aluFaceVertex()

template<ALU3dGridElementType type>
int Dune::ElementTopologyMapping< type >::dune2aluFaceVertex ( int  face,
int  localVertex 
)
inlinestatic

Maps local vertex index of a face onto a global vertex index (Dune->ALU3dGrid)

Parameters
faceFace index (Dune reference element)
localVertexLocal vertex index on face face (Dune reference element)
Returns
global vertex index in ALU3dGrid reference element

◆ duneFaceTwist()

template<ALU3dGridElementType type>
int Dune::ElementTopologyMapping< type >::duneFaceTwist ( int  face)
inlinestatic

obtain twist of ALU reference face with respect to DUNE reference face

Applying this twist to the DUNE reference vertices, i.e.,

  • convert vertex number to ALU numbering,
  • apply returned twist,

equals the result of dune2aluFaceVertex

The inverse of this twist, applied to ALU reference vertices, i.e.,

  • apply inverse twist
  • convert to DUNE numbering

yields alu2duneFaceVertex.

Parameters
[in]faceface index (in DUNE reference element)
Returns
reference face twist

◆ faceOrientation()

template<ALU3dGridElementType type>
int Dune::ElementTopologyMapping< type >::faceOrientation ( int  index)
inlinestatic

Return 1 if faces in ALU3dGrid and Dune reference element have the same orientation (edge 0->1 is taken as reference as they are the same in both reference elements), -1 otherwise. The index is a Dune face index

◆ faceVertex()

template<ALU3dGridElementType type>
int Dune::ElementTopologyMapping< type >::faceVertex ( int  face,
int  local 
)
inlinestatic

Maps a local vertex on a face onto a global vertex.

Parameters
[in]faceindex of the face (with respect to ALU reference element)
[in]locallocal index of vertex on the face
Returns
global index of vertex in ALU reference element

The documentation for this class was generated from the following files:
  • dune/alugrid/3d/topology.hh
  • dune/alugrid/3d/topology.cc
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.80.0 (Mar 27, 23:31, 2024)