Class documentation of Concepts

Loading...
Searching...
No Matches
linDG3D::FvdgElementPair Class Reference

#include <elementPair.hh>

Inheritance diagram for linDG3D::FvdgElementPair:
concepts::ElementPair< Real >

Public Member Functions

 FvdgElementPair (const FvdgElement &elm1, const FvdgElement &elm2, uint faceIdx1, uint faceIdx2)
 
 FvdgElementPair (const FvdgElement &elm, uint faceIdx)
 
virtual const FvdgElementelm1 () const
 Returns reference to the first element.
 
virtual const FvdgElementelm2 () 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.
 

Detailed Description

Stores additional information about two adjacent elements, namely the index, area, diameter and normal of shared interface.

Author
Christoph Winkelmann and Adrian Burri, 2002

Definition at line 27 of file elementPair.hh.

Constructor & Destructor Documentation

◆ FvdgElementPair() [1/2]

linDG3D::FvdgElementPair::FvdgElementPair ( const FvdgElement elm1,
const FvdgElement elm2,
uint  faceIdx1,
uint  faceIdx2 
)

Constructor

Parameters
elm1First element
elm2Second element
faceIdx1Index of face in first element
faceIdx2Index of face in second element

◆ FvdgElementPair() [2/2]

linDG3D::FvdgElementPair::FvdgElementPair ( const FvdgElement elm,
uint  faceIdx 
)

Constructor for boundary "pairs": here both elements are the same

Parameters
elmElement
faceIdxIndex of face in element

Member Function Documentation

◆ area()

Real linDG3D::FvdgElementPair::area ( ) const
inline

Returns the area of the common face.

Definition at line 49 of file elementPair.hh.

◆ diam()

Real linDG3D::FvdgElementPair::diam ( ) const
inline

Returns the diameter of the common face.

Definition at line 51 of file elementPair.hh.

◆ edgeIndex()

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.

Parameters
elemIndex of the element in consideration (either 0 or 1)
edgeIndex of the edge in the common face
Returns
Index of edge edge in element elem of the pair

◆ elm1()

virtual const FvdgElement & linDG3D::FvdgElementPair::elm1 ( ) const
inlinevirtual

Returns reference to the first element.

Implements concepts::ElementPair< Real >.

Definition at line 45 of file elementPair.hh.

◆ elm2()

virtual const FvdgElement & linDG3D::FvdgElementPair::elm2 ( ) const
inlinevirtual

Returns reference to the second element.

Implements concepts::ElementPair< Real >.

Definition at line 46 of file elementPair.hh.

◆ faceIdx1()

uint linDG3D::FvdgElementPair::faceIdx1 ( ) const
inline

Returns the index of the face in element 1.

Definition at line 87 of file elementPair.hh.

◆ faceIdx2()

uint linDG3D::FvdgElementPair::faceIdx2 ( ) const
inline

Returns the index of the face in element 2.

Definition at line 89 of file elementPair.hh.

◆ normal()

concepts::Real3d linDG3D::FvdgElementPair::normal ( ) const
inline

Returns the normal vector of the common face.

Definition at line 53 of file elementPair.hh.

◆ numPairs()

uint linDG3D::FvdgElementPair::numPairs ( ) const
inline

Returns the number of common edges.

Definition at line 55 of file elementPair.hh.

◆ quadrature() [1/2]

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.

Parameters
weightsreturned quadrature weights
xi0returned reference tetrahedron coordinates of abscissae in element 0
xi1returned reference tetrahedron coordinates of abscissae in element 1

◆ quadrature() [2/2]

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.

Parameters
weightsreturned quadrature weights
xi0returned reference tetrahedron coordinates of abscissae in element 0
xi1returned reference tetrahedron coordinates of abscissae in element 1
xreturned real world coordinates of abscissae

The documentation for this class was generated from the following file: