linDG2D::ElementPair Class Referenceabstract

Element pair for DG FEM in 2D. More...

#include <elementPair.hh>

Inheritance diagram for linDG2D::ElementPair:
concepts::ElementPair< Real >

Public Member Functions

const EdgeInfoedgeInfo () const
 Returns the edge information object. More...
 
 ElementPair (const Triangle &elm1, const Triangle &elm2, const EdgeInfo &edgeInfo)
 Constructor. More...
 
virtual const Triangleelm1 () const
 Returns the first element. More...
 
virtual const concepts::Element< Real > & elm1 () const=0
 Returns reference to the first element. More...
 
virtual const Triangleelm2 () const
 Returns the second element. More...
 
virtual const concepts::Element< Real > & elm2 () const=0
 Returns reference to the second element. More...
 
Real shapeFct (uint e, uint i, Real xi) const
 Evaluate trace of shapefunction from element e onto edge. More...
 

Private Attributes

const EdgeInfoedgeInfo_
 
const Triangleelm1_
 
const Triangleelm2_
 
uint idxs_ [2]
 

Detailed Description

Element pair for DG FEM in 2D.

Combines two elements for computing the off-diagonal blocks of the system matrices.

Author
Christoph Winkelmann, 2003

Definition at line 27 of file elementPair.hh.

Constructor & Destructor Documentation

◆ ElementPair()

linDG2D::ElementPair::ElementPair ( const Triangle elm1,
const Triangle elm2,
const EdgeInfo edgeInfo 
)
inline

Constructor.

Parameters
elm1First element (with test function)
elm2Second element (with ansatz function)
edgeInfoedge information

Definition at line 34 of file elementPair.hh.

Member Function Documentation

◆ edgeInfo()

const EdgeInfo& linDG2D::ElementPair::edgeInfo ( ) const
inline

Returns the edge information object.

Definition at line 48 of file elementPair.hh.

◆ elm1() [1/2]

virtual const Triangle& linDG2D::ElementPair::elm1 ( ) const
inlinevirtual

Returns the first element.

Definition at line 44 of file elementPair.hh.

◆ elm1() [2/2]

virtual const concepts::Element<Real >& concepts::ElementPair< Real >::elm1 ( ) const
pure virtualinherited

Returns reference to the first element.

◆ elm2() [1/2]

virtual const Triangle& linDG2D::ElementPair::elm2 ( ) const
inlinevirtual

Returns the second element.

Definition at line 46 of file elementPair.hh.

◆ elm2() [2/2]

virtual const concepts::Element<Real >& concepts::ElementPair< Real >::elm2 ( ) const
pure virtualinherited

Returns reference to the second element.

◆ shapeFct()

Real linDG2D::ElementPair::shapeFct ( uint  e,
uint  i,
Real  xi 
) const
inline

Evaluate trace of shapefunction from element e onto edge.

Parameters
eelement to take shapefunction from (0 for testfunction, 1 for ansatz function)
inumber of the shapefunction (0, 1 or 2)
xireference coordinate on edge in (0,1)

Definition at line 55 of file elementPair.hh.

Member Data Documentation

◆ edgeInfo_

const EdgeInfo& linDG2D::ElementPair::edgeInfo_
private

Definition at line 68 of file elementPair.hh.

◆ elm1_

const Triangle& linDG2D::ElementPair::elm1_
private

Definition at line 66 of file elementPair.hh.

◆ elm2_

const Triangle& linDG2D::ElementPair::elm2_
private

Definition at line 67 of file elementPair.hh.

◆ idxs_

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

Definition at line 69 of file elementPair.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