Class xlifepp::GeomRefTriangle#

class GeomRefTriangle : public xlifepp::GeomRefElement#

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)