Class xlifepp::GeomRefSegment#

class GeomRefSegment : public xlifepp::GeomRefElement#

Public Functions

GeomRefSegment()#

default constructor

GeomRefSegment constructor for 1D Geometric Reference Element.

inline ~GeomRefSegment()#

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#

return edge oppsite to edge e

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

returns 1.

Returns element length (1.)

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

projection of a point onto ref element node numbers defining first simplex of ref element

projection of a point onto ref element [0,1]

inline number_t sideOppositeVertex(const number_t vNum) const#

returns vertex to vertex number vNum (=1,2)

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

returns side with vertices v1 and v2

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

returns side with vertices v1 and v2

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

node numbers defining first simplex of ref element

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

returns tangent vector on a side

inline virtual number_t vertexOppositeSide(const number_t sideNum) const#

returns vertex opposite to vertex number vNum (=1,2)