linDG1D::DGElementPair Class Referenceabstract

Element pair for DG FEM. More...

#include <elementPair.hh>

Inheritance diagram for linDG1D::DGElementPair:
concepts::ElementPair< Real >

Public Member Functions

 DGElementPair (const linearFEM::Line &elm, const uint idx, const Real size1, const Real size2)
 Constructor. More...
 
 DGElementPair (const linearFEM::Line &elm1, const uint idx1, const linearFEM::Line &elm2, const uint idx2)
 Constructor. More...
 
virtual const linearFEM::Lineelm1 () const
 
virtual const concepts::Element< Real > & elm1 () const=0
 Returns reference to the first element. More...
 
virtual const linearFEM::Lineelm2 () const
 
virtual const concepts::Element< Real > & elm2 () const=0
 Returns reference to the second element. More...
 
uint idx1 () const
 Returns index of the vertex in the first element. More...
 
uint idx2 () const
 Returns index of the vertex in the second element. More...
 
Real size1 () const
 Returns size of the first element. More...
 
Real size2 () const
 Returns size of the second element. More...
 

Private Attributes

const linearFEM::Lineelm1_
 
const linearFEM::Lineelm2_
 
const uint idx1_
 
const uint idx2_
 
const Real size1_
 
const Real size2_
 

Detailed Description

Element pair for DG FEM.

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

Author
Thomas Wihler, 2003

Definition at line 28 of file elementPair.hh.

Constructor & Destructor Documentation

◆ DGElementPair() [1/2]

linDG1D::DGElementPair::DGElementPair ( const linearFEM::Line elm1,
const uint  idx1,
const linearFEM::Line elm2,
const uint  idx2 
)
inline

Constructor.

Used for two different elements

Parameters
elm1First element
elm2Second element
idx1Index of the common vertex in the first element
idx2Index of the common vertex in the second element

Definition at line 36 of file elementPair.hh.

◆ DGElementPair() [2/2]

linDG1D::DGElementPair::DGElementPair ( const linearFEM::Line elm,
const uint  idx,
const Real  size1,
const Real  size2 
)
inline

Constructor.

Used for two identical elements

Parameters
elmElement
idxIndex of the vertex in the element
size1Size of the element on one side of the vertex
size2Size of the element on the other side of the vertex

Definition at line 48 of file elementPair.hh.

Member Function Documentation

◆ elm1() [1/2]

virtual const linearFEM::Line& linDG1D::DGElementPair::elm1 ( ) const
inlinevirtual

Definition at line 55 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 linearFEM::Line& linDG1D::DGElementPair::elm2 ( ) const
inlinevirtual

Definition at line 56 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.

◆ idx1()

uint linDG1D::DGElementPair::idx1 ( ) const
inline

Returns index of the vertex in the first element.

Definition at line 58 of file elementPair.hh.

◆ idx2()

uint linDG1D::DGElementPair::idx2 ( ) const
inline

Returns index of the vertex in the second element.

Definition at line 60 of file elementPair.hh.

◆ size1()

Real linDG1D::DGElementPair::size1 ( ) const
inline

Returns size of the first element.

Definition at line 62 of file elementPair.hh.

◆ size2()

Real linDG1D::DGElementPair::size2 ( ) const
inline

Returns size of the second element.

Definition at line 64 of file elementPair.hh.

Member Data Documentation

◆ elm1_

const linearFEM::Line& linDG1D::DGElementPair::elm1_
private

Definition at line 66 of file elementPair.hh.

◆ elm2_

const linearFEM::Line& linDG1D::DGElementPair::elm2_
private

Definition at line 67 of file elementPair.hh.

◆ idx1_

const uint linDG1D::DGElementPair::idx1_
private

Definition at line 68 of file elementPair.hh.

◆ idx2_

const uint linDG1D::DGElementPair::idx2_
private

Definition at line 69 of file elementPair.hh.

◆ size1_

const Real linDG1D::DGElementPair::size1_
private

Definition at line 70 of file elementPair.hh.

◆ size2_

const Real linDG1D::DGElementPair::size2_
private

Definition at line 70 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