linDG2D::EdgeInfo Class Reference

Edge information for DG FEM. More...

#include <edgeInfo.hh>

Public Member Functions

void addCell (const concepts::Triangle2d *cell, const uint idx)
 Add a cell adjacent to the edge. More...
 
const concepts::Triangle2dcell (uint i) const
 Return cell adjacent to the edge. More...
 
const concepts::Edgeedge () const
 Return topological edge represented. More...
 
 EdgeInfo ()
 Default Constructor. Needed to get new EdgeInfo from a hash map access. More...
 
uint idx (uint i) const
 Return index of edge represented in cell i. More...
 
Real length () const
 Return the length of the edge. More...
 
concepts::Real2d map (Real xi) const
 Maps a point on the reference edge (0,1) onto the physical edge. More...
 
concepts::Real2d mapRefTri (Real xi, uint i) const
 Maps a point on the reference edge (0,1) onto the reference triangle of cell i. More...
 
Real meanHeight () const
 Return the mean height of the triangle(s) adjacent to the edge. More...
 
const concepts::Real2d normal () const
 Return a vector normal to the edge, pointing out of first triangle. More...
 

Private Attributes

const concepts::Triangle2dcells_ [2]
 
uint idxs_ [2]
 

Friends

class test::DGEdgeInfoTest
 
class test::DGSpace2dP1Test
 

Detailed Description

Edge information for DG FEM.

Provides information about an edge and its adjacent cell(s) used for DG face integrals. EdgeInfo objects for a mesh can be built up efficently using a MeshInfo object.

Author
Christoph Winkelmann, 2003

Definition at line 31 of file edgeInfo.hh.

Constructor & Destructor Documentation

◆ EdgeInfo()

linDG2D::EdgeInfo::EdgeInfo ( )

Default Constructor. Needed to get new EdgeInfo from a hash map access.

Member Function Documentation

◆ addCell()

void linDG2D::EdgeInfo::addCell ( const concepts::Triangle2d cell,
const uint  idx 
)

Add a cell adjacent to the edge.

◆ cell()

const concepts::Triangle2d* linDG2D::EdgeInfo::cell ( uint  i) const
inline

Return cell adjacent to the edge.

Parameters
iwhich cell, left(0) or right(1)

Definition at line 42 of file edgeInfo.hh.

◆ edge()

const concepts::Edge& linDG2D::EdgeInfo::edge ( ) const
inline

Return topological edge represented.

Definition at line 48 of file edgeInfo.hh.

◆ idx()

uint linDG2D::EdgeInfo::idx ( uint  i) const
inline

Return index of edge represented in cell i.

Parameters
iwhich cell, left(0) or right(1)

Definition at line 46 of file edgeInfo.hh.

◆ length()

Real linDG2D::EdgeInfo::length ( ) const

Return the length of the edge.

◆ map()

concepts::Real2d linDG2D::EdgeInfo::map ( Real  xi) const

Maps a point on the reference edge (0,1) onto the physical edge.

The reference edge is oriented anticlockwise in the left triangle and clockwise in the right triangle.

Parameters
xicoordinate of the point on the reference edge

◆ mapRefTri()

concepts::Real2d linDG2D::EdgeInfo::mapRefTri ( Real  xi,
uint  i 
) const

Maps a point on the reference edge (0,1) onto the reference triangle of cell i.

The reference edge is oriented anticlockwise in the left triangle and clockwise in the right triangle. The reference triangle has the corners (0,0), (0,1), (1,1).

Parameters
xicoordinate of the point on the reference edge
iwhich cell, left(0) or right(1)

◆ meanHeight()

Real linDG2D::EdgeInfo::meanHeight ( ) const

Return the mean height of the triangle(s) adjacent to the edge.

◆ normal()

const concepts::Real2d linDG2D::EdgeInfo::normal ( ) const

Return a vector normal to the edge, pointing out of first triangle.

Friends And Related Function Documentation

◆ test::DGEdgeInfoTest

friend class test::DGEdgeInfoTest
friend

Definition at line 33 of file edgeInfo.hh.

◆ test::DGSpace2dP1Test

friend class test::DGSpace2dP1Test
friend

Definition at line 34 of file edgeInfo.hh.

Member Data Documentation

◆ cells_

const concepts::Triangle2d* linDG2D::EdgeInfo::cells_[2]
private

Definition at line 72 of file edgeInfo.hh.

◆ idxs_

uint linDG2D::EdgeInfo::idxs_[2]
private

Definition at line 73 of file edgeInfo.hh.


The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich