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. | |
| const concepts::Triangle2d * | cell (uint i) const |
| Return cell adjacent to the edge. | |
| const concepts::Edge & | edge () const |
| Return topological edge represented. | |
| EdgeInfo () | |
| Default Constructor. Needed to get new EdgeInfo from a hash map access. | |
| uint | idx (uint i) const |
| Return index of edge represented in cell i. | |
| Real | length () const |
| Return the length of the edge. | |
| concepts::Real2d | map (Real xi) const |
| Maps a point on the reference edge (0,1) onto the physical edge. | |
| concepts::Real2d | mapRefTri (Real xi, uint i) const |
Maps a point on the reference edge (0,1) onto the reference triangle of cell i. | |
| Real | meanHeight () const |
| Return the mean height of the triangle(s) adjacent to the edge. | |
| const concepts::Real2d | normal () const |
| Return a vector normal to the edge, pointing out of first triangle. | |
Private Attributes | |
| const concepts::Triangle2d * | cells_ [2] |
| uint | idxs_ [2] |
Friends | |
| class | test::DGEdgeInfoTest |
| class | test::DGSpace2dP1Test |
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.
Definition at line 28 of file edgeInfo.hh.
| linDG2D::EdgeInfo::EdgeInfo | ( | ) |
Default Constructor. Needed to get new EdgeInfo from a hash map access.
| void linDG2D::EdgeInfo::addCell | ( | const concepts::Triangle2d * | cell, |
| const uint | idx | ||
| ) |
Add a cell adjacent to the edge.
| const concepts::Triangle2d* linDG2D::EdgeInfo::cell | ( | uint | i | ) | const [inline] |
Return cell adjacent to the edge.
| i | which cell, left(0) or right(1) |
Definition at line 39 of file edgeInfo.hh.
| const concepts::Edge& linDG2D::EdgeInfo::edge | ( | ) | const [inline] |
Return topological edge represented.
Definition at line 45 of file edgeInfo.hh.

| uint linDG2D::EdgeInfo::idx | ( | uint | i | ) | const [inline] |
Return index of edge represented in cell i.
| i | which cell, left(0) or right(1) |
Definition at line 43 of file edgeInfo.hh.
| Real linDG2D::EdgeInfo::length | ( | ) | const |
Return the length of the edge.
| 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.
| xi | coordinate of the point on the reference edge |
| 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).
| xi | coordinate of the point on the reference edge |
| i | which cell, left(0) or right(1) |
| Real linDG2D::EdgeInfo::meanHeight | ( | ) | const |
Return the mean height of the triangle(s) adjacent to the edge.
| const concepts::Real2d linDG2D::EdgeInfo::normal | ( | ) | const |
Return a vector normal to the edge, pointing out of first triangle.
friend class test::DGEdgeInfoTest [friend] |
Definition at line 30 of file edgeInfo.hh.
friend class test::DGSpace2dP1Test [friend] |
Definition at line 31 of file edgeInfo.hh.
const concepts::Triangle2d* linDG2D::EdgeInfo::cells_[2] [private] |
Definition at line 69 of file edgeInfo.hh.
uint linDG2D::EdgeInfo::idxs_[2] [private] |
Definition at line 70 of file edgeInfo.hh.