Line2 Class Reference
[Shape Function]
#include <Line2.h>

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.
Public Member Functions | |
| double | check () const |
| Check line length and number of line nodes. | |
| double | DSh (size_t i) const |
| Calculate partial derivative of shape function of a node. | |
| Point< double > | getCenter () const |
| Return coordinates of center of element. | |
| double | getDet () const |
| Return determinant of jacobian. | |
| double | getInterpolate (const Point< double > &x, const LocalVect< double, 2 > &v) |
| Return interpolated value at a given point. | |
| double | getLength () const |
| Return element length. | |
| Point< double > | getLocalPoint (const Point< double > &s) const |
| Localize a point in the element. | |
| Point< double > | getLocalPoint () const |
| Localize a point in the element. | |
| Point< double > | getNormal () const |
| Return unit normal vector to line. | |
| Point< double > | getRefCoord (const Point< double > &x) |
| Return reference coordinates of a point _a x in element. | |
| Point< double > | getTangent () const |
| Return unit tangent vector to line. | |
| bool | isIn (const Point< double > &x) |
| Check whether point x is in current line element or not. | |
| Line2 (const Side *side) | |
| Constructor for a side. | |
| Line2 (const Element *el) | |
| Constructor for an element. | |
| Line2 () | |
| Default Constructor. | |
| double | Sh (size_t i, Point< double > s) const |
| Calculate shape function of node i at a given point s. | |
| double | Sh (size_t i) const |
| Return shape function of node i at given point. | |
| double | Sh (size_t i, double s) const |
| Calculate shape function of a given node at a given point. | |
| ~Line2 () | |
| Destructor. | |
Member Function Documentation
| double check | ( | ) | const |
Check line length and number of line nodes.
- Return values:
-
m - > 0 : m is the length
- = 0 : zero length (=> Error)
| double DSh | ( | size_t | i | ) | const |
| double getDet | ( | ) | const [inherited] |
Return interpolated value at a given point.
- Parameters:
-
[in] x Point where interpolation is evaluated (in the reference element). v [out] Computed value.
Localize a point in the element.
Return actual coordinates where s are coordinates in the reference element.
References FEShape::Sh().
| Point<double> getLocalPoint | ( | ) | const [inherited] |
Localize a point in the element.
Return actual coordinates in the reference element. If the transformation (Reference element -> Actual element) is not affine, member function setLocal() must have been called before in order to calcuate relevant quantities.
Reimplemented in Line3.
Return reference coordinates of a point _a x in element.
Only the x-coordinate of the returned value has a meaning
| double Sh | ( | size_t | i, | |
| Point< double > | s | |||
| ) | const [inherited] |
| double Sh | ( | size_t | i, | |
| double | s | |||
| ) | const |
Calculate shape function of a given node at a given point.
- Parameters:
-
i [in] Node number (1 or 2). s [in] Localization of point in natural coordinates (must be between -1 and 1).