#include <triangle.hh>
Public Types | |
typedef Real | type |
Public Member Functions | |
Triangle (const concepts::Triangle2d &cell, uint nDoF, uint idx[]) | |
virtual const concepts::Triangle & | support () const |
Returns the topological triangle supporting the element. | |
virtual const concepts::Triangle2d & | cell () const |
Returns the underlying geometrical triangle. | |
virtual Real | shapeFct (const uint i, const Real xi1, const Real xi2) const =0 |
virtual Real | solution (const concepts::Vector< Real > &coeffs, const Real xi1, const Real xi2) const =0 |
virtual const concepts::ElementGraphics< Real > * | graphics () const |
Returns the element graphics object. | |
virtual const concepts::TMatrixBase< Real > & | T () const |
Returns the T matrix of this element. | |
Real3d | elemMap (const Real coord_local) const |
Real3d | elemMap (const Real2d &coord_local) const |
Real3d | elemMap (const Real3d &coord_local) const |
uint & | tag () |
Returns the tag. | |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. | |
Protected Attributes | |
std::unique_ptr< concepts::TMatrixBase< Real > > | T_ |
T matrix of this element. | |
Abstract base class for triangular elements in 2D DGFEM.
Definition at line 30 of file triangle.hh.
|
inherited |
Definition at line 81 of file element.hh.
|
inline |
Constructor. Creates a T matrix out of idx
.
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.
|
inlinevirtual |
Returns the underlying geometrical triangle.
Implements linearFEM::Element.
Definition at line 45 of file triangle.hh.
|
inlineinherited |
Definition at line 86 of file element.hh.
|
inlineinherited |
Definition at line 90 of file element.hh.
|
inlineinherited |
Definition at line 94 of file element.hh.
|
virtual |
Returns the element graphics object.
Reimplemented from concepts::Element< F >.
|
protectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
Reimplemented in linDG2D::TriangleP1, and linDG2D::TriangleP0.
|
pure virtual |
Computes the value of the ith shape function in the point (xi1, xi2
).
xi1, xi2 >= 0
and xi2 <= xi1 <= 1
i | Index of the shape fct. (0, 1, 2) |
xi1 | First coordinate |
xi2 | Second coordinate |
Implemented in linDG2D::TriangleP1, and linDG2D::TriangleP0.
|
pure virtual |
Returns the value of a mesh function within this element
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::TriangleP1, and linDG2D::TriangleP0.
|
inlinevirtual |
Returns the topological triangle supporting the element.
Implements linearFEM::Element.
Definition at line 41 of file triangle.hh.
|
inlinevirtualinherited |
Returns the T matrix of this element.
Implements concepts::ElementWithCell< Real >.
Definition at line 47 of file element.hh.
|
inlineinherited |
Returns the tag.
Definition at line 66 of file element.hh.
|
protectedinherited |
T matrix of this element.
Definition at line 50 of file element.hh.