To describe a 2-Node planar line finite element. More...
Inheritance diagram for Line2:
Public Member Functions | |
| Line2 () | |
| Default Constructor. | |
| Line2 (const Element *el) | |
| Constructor for an element. | |
| Line2 (const Side *side) | |
| Constructor for a side. | |
| Line2 (const Edge *edge) | |
| Constructor for an edge. | |
| ~Line2 () | |
| Destructor. | |
| double | getLength () const |
| Return element length. | |
| Point< double > | getNormal () const |
| Return unit normal vector to line. | |
| Point< double > | getTangent () const |
| Return unit tangent vector to line. | |
| double | Sh (size_t i, double s) const |
| Calculate shape function of a given node at a given point. | |
| double | DSh (size_t i) const |
| Calculate partial derivative of shape function of a node. | |
| Point< double > | getRefCoord (const Point< double > &x) |
| Return reference coordinates of a point x in element. | |
| bool | isIn (const Point< double > &x) |
| Check whether point x is in current line element or not. | |
| double | getInterpolate (const Point< double > &x, const LocalVect< double, 2 > &v) |
| Return interpolated value at a given point. | |
| double | Sh (size_t i) const |
| Return shape function of node i at given point. | |
| double | Sh (size_t i, Point< double > s) const |
| Calculate shape function of node i at a given point s. | |
| double | getDet () const |
| Return determinant of jacobian. | |
| Point< double > | getCenter () const |
| Return coordinates of center of element. | |
| Point< double > | getLocalPoint () const |
| Localize a point in the element. | |
| Point< double > | getLocalPoint (const Point< double > &s) const |
| Localize a point in the element. | |
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.
Constructor & Destructor Documentation
Member Function Documentation
| double Sh | ( | size_t | i, |
| double | s | ||
| ) | const |
Calculate shape function of a given node at a given point.
- Parameters:
-
[in] i Node number (1 or 2). [in] s Localization of point in natural coordinates (must be between -1 and 1).
| double DSh | ( | size_t | i | ) | const |
| Point<double> getRefCoord | ( | const Point< double > & | x | ) |
Return reference coordinates of a point x in element.
Only the x-coordinate of the returned value has a meaning
| double getInterpolate | ( | const Point< double > & | x, |
| const LocalVect< double, 2 > & | v | ||
| ) |
Return interpolated value at a given point.
- Parameters:
-
[in] x Point where interpolation is evaluated (in the reference element). [out] v Computed value.
| double getDet | ( | ) | const [inherited] |
Return determinant of jacobian.
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 Line2H.
| 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.
| Point<double> getLocalPoint | ( | const Point< double > & | s | ) | const [inherited] |
Localize a point in the element.
Return actual coordinates where s are coordinates in the reference element.
- OFELI
- Line2