(9)

To describe a 2-Node planar line finite element. More...

Inheritance diagram for Line2:
FEShape

Public Member Functions

 Line2 ()
 Default Constructor.
 
 Line2 (const Element *el)
 Constructor for an element. More...
 
 Line2 (const Side *side)
 Constructor for a side. More...
 
 Line2 (const Edge *edge)
 Constructor for an edge. More...
 
 ~Line2 ()
 Destructor.
 
real_t getLength () const
 Return element length.
 
Point< real_tgetNormal () const
 Return unit normal vector to line.
 
Point< real_tgetTangent () const
 Return unit tangent vector to line.
 
real_t Sh (size_t i, real_t s) const
 Calculate shape function of a given node at a given point. More...
 
std::vector< Point< real_t > > DSh () const
 Return partial derivatives of shape functions of element nodes. More...
 
Point< real_tgetRefCoord (const Point< real_t > &x)
 Return reference coordinates of a point x in element. More...
 
bool isIn (const Point< real_t > &x)
 Check whether point x is in current line element or not.
 
real_t getInterpolate (const Point< real_t > &x, const LocalVect< real_t, 2 > &v)
 Return interpolated value at a given point. More...
 
- Public Member Functions inherited from FEShape
 FEShape ()
 Default Constructor.
 
 FEShape (const Element *el)
 Constructor for an element. More...
 
 FEShape (const Side *sd)
 Constructor for a side. More...
 
virtual ~FEShape ()
 Destructor.
 
real_t Sh (size_t i) const
 Return shape function of node i at given point.
 
real_t Sh (size_t i, Point< real_t > s) const
 Calculate shape function of node i at a given point s. More...
 
real_t getDet () const
 Return determinant of jacobian. More...
 
Point< real_tgetCenter () const
 Return coordinates of center of element.
 
Point< real_tgetLocalPoint () const
 Localize a point in the element. More...
 
Point< real_tgetLocalPoint (const Point< real_t > &s) const
 Localize a point in the element. More...
 

Detailed Description

To describe a 2-Node planar line finite element.

Defines geometric quantities associated to 2-node linear segment element P1 in the space. The reference element is the segment [-1,1]. Note that the line length is not checked unless the function check is called.

Author
Rachid Touzani

Constructor & Destructor Documentation

◆ Line2() [1/3]

Line2 ( const Element el)

Constructor for an element.

Parameters
[in]elPointer to element

◆ Line2() [2/3]

Line2 ( const Side side)

Constructor for a side.

Parameters
[in]sidePointer to side

◆ Line2() [3/3]

Line2 ( const Edge edge)

Constructor for an edge.

Parameters
[in]edgePointer to edge

Member Function Documentation

◆ DSh()

std::vector<Point<real_t> > DSh ( ) const

Return partial derivatives of shape functions of element nodes.

Returns
LocalVect instance of partial derivatives of shape functions e.g. dsh(i).x, dsh(i).y, are partial derivatives of the i-th shape function.

◆ getInterpolate()

real_t getInterpolate ( const Point< real_t > &  x,
const LocalVect< real_t, 2 > &  v 
)

Return interpolated value at a given point.

Parameters
[in]xPoint where interpolation is evaluated (in the reference element).
[out]vComputed value.

◆ getRefCoord()

Point<real_t> getRefCoord ( const Point< real_t > &  x)

Return reference coordinates of a point x in element.

Only the x-coordinate of the returned value has a meaning

◆ Sh()

real_t Sh ( size_t  i,
real_t  s 
) const

Calculate shape function of a given node at a given point.

Parameters
[in]iNode number (1 or 2).
[in]sLocalization of point in natural coordinates (must be between -1 and 1).