linDG1D::DGElementPair Class Referenceabstract
Element pair for DG FEM. More...
#include <elementPair.hh>
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::Line & | elm1 () const |
virtual const concepts::Element< Real > & | elm1 () const=0 |
Returns reference to the first element. More... | |
virtual const linearFEM::Line & | elm2 () 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::Line & | elm1_ |
const linearFEM::Line & | elm2_ |
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.
Definition at line 28 of file elementPair.hh.
Constructor & Destructor Documentation
◆ DGElementPair() [1/2]
|
inline |
Constructor.
Used for two different elements
- Parameters
-
elm1 First element elm2 Second element idx1 Index of the common vertex in the first element idx2 Index of the common vertex in the second element
Definition at line 36 of file elementPair.hh.
◆ DGElementPair() [2/2]
|
inline |
Constructor.
Used for two identical elements
- Parameters
-
elm Element idx Index of the vertex in the element size1 Size of the element on one side of the vertex size2 Size of the element on the other side of the vertex
Definition at line 48 of file elementPair.hh.
Member Function Documentation
◆ elm1() [1/2]
|
inlinevirtual |
Definition at line 55 of file elementPair.hh.
◆ elm1() [2/2]
|
pure virtualinherited |
Returns reference to the first element.
◆ elm2() [1/2]
|
inlinevirtual |
Definition at line 56 of file elementPair.hh.
◆ elm2() [2/2]
|
pure virtualinherited |
Returns reference to the second element.
◆ idx1()
|
inline |
Returns index of the vertex in the first element.
Definition at line 58 of file elementPair.hh.
◆ idx2()
|
inline |
Returns index of the vertex in the second element.
Definition at line 60 of file elementPair.hh.
◆ size1()
|
inline |
Returns size of the first element.
Definition at line 62 of file elementPair.hh.
◆ size2()
|
inline |
Returns size of the second element.
Definition at line 64 of file elementPair.hh.
Member Data Documentation
◆ elm1_
|
private |
Definition at line 66 of file elementPair.hh.
◆ elm2_
|
private |
Definition at line 67 of file elementPair.hh.
◆ idx1_
|
private |
Definition at line 68 of file elementPair.hh.
◆ idx2_
|
private |
Definition at line 69 of file elementPair.hh.
◆ size1_
|
private |
Definition at line 70 of file elementPair.hh.
◆ size2_
|
private |
Definition at line 70 of file elementPair.hh.
The documentation for this class was generated from the following file:
- linDG1D/elementPair.hh