#include <elementPair.hh>
Public Member Functions | |
FvdgElementPair (const FvdgElement &elm1, const FvdgElement &elm2, uint faceIdx1, uint faceIdx2) | |
FvdgElementPair (const FvdgElement &elm, uint faceIdx) | |
virtual const FvdgElement & | elm1 () const |
Returns reference to the first element. | |
virtual const FvdgElement & | elm2 () const |
Returns reference to the second element. | |
Real | area () const |
Returns the area of the common face. | |
Real | diam () const |
Returns the diameter of the common face. | |
concepts::Real3d | normal () const |
Returns the normal vector of the common face. | |
uint | numPairs () const |
Returns the number of common edges. | |
uint | edgeIndex (uint elem, uint edge) const |
void | quadrature (std::vector< Real > &weights, std::vector< concepts::Real3d > &xi0, std::vector< concepts::Real3d > &xi1) const |
void | quadrature (std::vector< Real > &weights, std::vector< concepts::Real3d > &xi0, std::vector< concepts::Real3d > &xi1, std::vector< concepts::Real3d > &x) const |
uint | faceIdx1 () const |
Returns the index of the face in element 1. | |
uint | faceIdx2 () const |
Returns the index of the face in element 2. | |
Stores additional information about two adjacent elements, namely the index, area, diameter and normal of shared interface.
Definition at line 27 of file elementPair.hh.
linDG3D::FvdgElementPair::FvdgElementPair | ( | const FvdgElement & | elm1, |
const FvdgElement & | elm2, | ||
uint | faceIdx1, | ||
uint | faceIdx2 | ||
) |
Constructor
elm1 | First element |
elm2 | Second element |
faceIdx1 | Index of face in first element |
faceIdx2 | Index of face in second element |
linDG3D::FvdgElementPair::FvdgElementPair | ( | const FvdgElement & | elm, |
uint | faceIdx | ||
) |
Constructor for boundary "pairs": here both elements are the same
elm | Element |
faceIdx | Index of face in element |
|
inline |
Returns the area of the common face.
Definition at line 49 of file elementPair.hh.
|
inline |
Returns the diameter of the common face.
Definition at line 51 of file elementPair.hh.
uint linDG3D::FvdgElementPair::edgeIndex | ( | uint | elem, |
uint | edge | ||
) | const |
Returns an edge index. The edge index is according to the element's internal numbering so that it can be used to query information.
elem | Index of the element in consideration (either 0 or 1) |
edge | Index of the edge in the common face |
edge
in element elem
of the pair
|
inlinevirtual |
Returns reference to the first element.
Implements concepts::ElementPair< Real >.
Definition at line 45 of file elementPair.hh.
|
inlinevirtual |
Returns reference to the second element.
Implements concepts::ElementPair< Real >.
Definition at line 46 of file elementPair.hh.
|
inline |
Returns the index of the face in element 1.
Definition at line 87 of file elementPair.hh.
|
inline |
Returns the index of the face in element 2.
Definition at line 89 of file elementPair.hh.
|
inline |
Returns the normal vector of the common face.
Definition at line 53 of file elementPair.hh.
|
inline |
Returns the number of common edges.
Definition at line 55 of file elementPair.hh.
void linDG3D::FvdgElementPair::quadrature | ( | std::vector< Real > & | weights, |
std::vector< concepts::Real3d > & | xi0, | ||
std::vector< concepts::Real3d > & | xi1 | ||
) | const |
Returns the quadrature information for quadrature the face.
weights | returned quadrature weights |
xi0 | returned reference tetrahedron coordinates of abscissae in element 0 |
xi1 | returned reference tetrahedron coordinates of abscissae in element 1 |
void linDG3D::FvdgElementPair::quadrature | ( | std::vector< Real > & | weights, |
std::vector< concepts::Real3d > & | xi0, | ||
std::vector< concepts::Real3d > & | xi1, | ||
std::vector< concepts::Real3d > & | x | ||
) | const |
Returns the quadrature information for quadrature the face.
weights | returned quadrature weights |
xi0 | returned reference tetrahedron coordinates of abscissae in element 0 |
xi1 | returned reference tetrahedron coordinates of abscissae in element 1 |
x | returned real world coordinates of abscissae |