Class xlifepp::GeomRefTriangle#

class GeomRefTriangle : public xlifepp::GeomRefElement#

Inheritence diagram for xlifepp::GeomRefTriangle:

digraph { graph [bgcolor="#00000000"] node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2] edge [color="#1414CE"] "2" [label="xlifepp::GeomRefElement" tooltip="xlifepp::GeomRefElement"] "1" [label="xlifepp::GeomRefTriangle" tooltip="xlifepp::GeomRefTriangle" fillcolor="#BFBFBF"] "1" -> "2" [dir=forward tooltip="public-inheritance"] }

Collaboration diagram for xlifepp::GeomRefTriangle:

digraph { graph [bgcolor="#00000000"] node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2] edge [color="#1414CE"] "4" [label="std::vector< T >" tooltip="std::vector< T >"] "5" [label="std::vector< ShapeType >" tooltip="std::vector< ShapeType >"] "3" [label="std::vector< real_t >" tooltip="std::vector< real_t >"] "7" [label="std::vector< std::vector< int_t > >" tooltip="std::vector< std::vector< int_t > >"] "6" [label="std::vector< std::vector< number_t > >" tooltip="std::vector< std::vector< number_t > >"] "8" [label="std::vector< xlifepp::GeomRefElement * >" tooltip="std::vector< xlifepp::GeomRefElement * >"] "2" [label="xlifepp::GeomRefElement" tooltip="xlifepp::GeomRefElement"] "1" [label="xlifepp::GeomRefTriangle" tooltip="xlifepp::GeomRefTriangle" fillcolor="#BFBFBF"] "5" -> "4" [dir=forward tooltip="template-instance"] "3" -> "4" [dir=forward tooltip="template-instance"] "7" -> "4" [dir=forward tooltip="template-instance"] "6" -> "4" [dir=forward tooltip="template-instance"] "8" -> "4" [dir=forward tooltip="template-instance"] "2" -> "3" [dir=forward tooltip="usage"] "2" -> "5" [dir=forward tooltip="usage"] "2" -> "6" [dir=forward tooltip="usage"] "2" -> "7" [dir=forward tooltip="usage"] "2" -> "8" [dir=forward tooltip="usage"] "1" -> "2" [dir=forward tooltip="public-inheritance"] }

xlifepp::GeomRefTriangle defines Reference Element geometric data on triangular elements

Public Functions

GeomRefTriangle()#

default constructor

GeomRefTriangle constructor for Geometric Reference Element using 2d base constructor with shape, surface, centroid coords, number of vertices.

~GeomRefTriangle()#

destructor

virtual bool contains(std::vector<real_t> &p, real_t tol = theTolerance) const#

test if a point belongs to current element

inline number_t edgeOppositeEdge(const number_t) const#

returns edge opposite to edge with local number e

virtual real_t measure(const dimen_t dim, const number_t sideNum = 0) const#

returns edge length or element area

virtual std::vector<real_t> projection(const std::vector<real_t> &p, real_t &h) const#

return projection on triangle

return projection on triangle and distance to triangle (h)

inline number_t sideOppositeVertex(const number_t vNum) const#

returns the local number of an edge opposite to a vertex given by its local number vNum (=1,2,3)

virtual number_t sideWithVertices(const number_t, const number_t) const#

returns local number of edge bearing vertices with local numbers v1 and v2

Returns the local number of an edge bearing 2 vertices given by their local numbers (>=1)

inline virtual number_t sideWithVertices(const number_t, const number_t, const number_t, const number_t = 0) const#

returns local number of edge bearing vertices with local numbers v1 and v2

inline virtual std::vector<number_t> simplexNodes() const#

node numbers defining first simplex of ref element

void tangentVector(const std::vector<real_t> &jacobianMatrix, std::vector<std::vector<real_t>> &tgv, const number_t, const dimen_t = 1) const#

returns tangent std::vector on edge sideNum (=1,2,3,4)

returns a quadrature rule build on an edge form a 1d quadrature formula

returns tangent vector(s) on edge sideNum (=1,2,3)

inline virtual number_t vertexOppositeSide(const number_t sideNum) const#

returns the local number of a vertex opposite to an edge given by its local number sideNum (=1,2,3)