linDG2D::Triangle Class Referenceabstract
Abstract base class for triangular elements in 2D DGFEM. More...
#include <triangle.hh>
Public Types | |
typedef Real | type |
Public Member Functions | |
virtual const concepts::Triangle2d & | cell () const |
Returns the underlying geometrical triangle. More... | |
virtual const Cell & | cell () const=0 |
Returns the cell on which the element is built. More... | |
Real3d | elemMap (const Real coord_local) const |
Real3d | elemMap (const Real2d &coord_local) const |
Real3d | elemMap (const Real3d &coord_local) const |
virtual const concepts::ElementGraphics< Real > * | graphics () const |
Returns the element graphics object. More... | |
virtual Real | shapeFct (const uint i, const Real xi1, const Real xi2) const =0 |
Computes the value of the ith shape function in the point (xi1, xi2 ). More... | |
virtual Real | solution (const concepts::Vector< Real > &coeffs, const Real xi1, const Real xi2) const =0 |
Returns the value of a mesh function within this element. More... | |
virtual const concepts::Triangle & | support () const |
Returns the topological triangle supporting the element. More... | |
virtual const concepts::TMatrixBase< Real > & | T () const |
Returns the T matrix of this element. More... | |
virtual const TMatrixBase< Real > & | T () const=0 |
Returns the T matrix of the element. More... | |
Triangle (const concepts::Triangle2d &cell, uint nDoF, uint idx[]) | |
Constructor. More... | |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Protected Attributes | |
std::unique_ptr< concepts::TMatrixBase< Real > > | T_ |
T matrix of this element. More... | |
Private Attributes | |
const concepts::Triangle2d & | cell_ |
Cell under this element. More... | |
Static Private Attributes | |
static std::unique_ptr< TriangleGraphics > | graphics_ |
Graphics object of this element. More... | |
Detailed Description
Abstract base class for triangular elements in 2D DGFEM.
Definition at line 30 of file triangle.hh.
Member Typedef Documentation
◆ type
|
inherited |
Definition at line 81 of file element.hh.
Constructor & Destructor Documentation
◆ Triangle()
|
inline |
Constructor.
Creates a T matrix out of idx
.
- See also
- concepts::TIndex
- Parameters
-
cell Cell of the element nDoF Number of degrees of freedom per element idx Describes the map local / global dof
Definition at line 38 of file triangle.hh.
Member Function Documentation
◆ cell() [1/2]
|
inlinevirtual |
Returns the underlying geometrical triangle.
Implements linearFEM::Element.
Definition at line 45 of file triangle.hh.
◆ cell() [2/2]
|
pure virtualinherited |
Returns the cell on which the element is built.
Implemented in hp3D::Element< Real >, hp2D::Element< Real >, and hp1D::BaseElement< Real >.
◆ elemMap() [1/3]
|
inlineinherited |
Definition at line 86 of file element.hh.
◆ elemMap() [2/3]
|
inlineinherited |
Definition at line 90 of file element.hh.
◆ elemMap() [3/3]
|
inlineinherited |
Definition at line 94 of file element.hh.
◆ graphics()
|
virtual |
Returns the element graphics object.
◆ info()
|
protectedvirtual |
Reimplemented in linDG2D::TriangleP0, and linDG2D::TriangleP1.
◆ shapeFct()
|
pure virtual |
Computes the value of the ith shape function in the point (xi1, xi2
).
- Precondition
xi1, xi2 >= 0
andxi2 <= xi1 <= 1
- Parameters
-
i Index of the shape fct. (0, 1, 2) xi1 First coordinate xi2 Second coordinate
Implemented in linDG2D::TriangleP0, and linDG2D::TriangleP1.
◆ solution()
|
pure virtual |
Returns the value of a mesh function within this element.
- Parameters
-
coeffs Vector of coefficients representing the mesh function xi1 first reference element coordinate, in [0,1] xi2 second reference element coordinate, in [0,xi1]
Implemented in linDG2D::TriangleP0, and linDG2D::TriangleP1.
◆ support()
|
inlinevirtual |
Returns the topological triangle supporting the element.
Implements linearFEM::Element.
Definition at line 41 of file triangle.hh.
◆ T() [1/2]
|
inlinevirtualinherited |
Returns the T matrix of this element.
Definition at line 47 of file element.hh.
◆ T() [2/2]
|
pure virtualinherited |
Returns the T matrix of the element.
Implemented in hp3D::Element< Real >, and hp2D::Element< Real >.
Member Data Documentation
◆ cell_
|
private |
Cell under this element.
Definition at line 67 of file triangle.hh.
◆ graphics_
|
staticprivate |
Graphics object of this element.
Definition at line 69 of file triangle.hh.
◆ T_
|
protectedinherited |
T matrix of this element.
Definition at line 50 of file element.hh.
The documentation for this class was generated from the following file:
- linDG2D/triangle.hh