Defines a 3-Node (P1) triangle. More...
Inheritance diagram for Triang3:
Public Member Functions | |
| Triang3 () | |
| Default Constructor. | |
| Triang3 (const Element *el) | |
| Constructor for an element. | |
| Triang3 (const Side *sd) | |
| Constructor for a side. | |
| ~Triang3 () | |
| Destructor. | |
| void | set (const Element *el) |
| Choose element by giving its pointer. | |
| void | set (const Side *sd) |
| Choose side by giving its pointer. | |
| double | Sh (size_t i, Point< double > s) const |
| Calculate shape function of node at a given point. | |
| Point< double > | DSh (size_t i) const |
| Calculate derivatives of shape function of node i. | |
| double | getInterpolate (const Point< double > &x, const LocalVect< double, 3 > &v) |
| Return interpolated value at point of coordinate x. | |
| double | check () const |
| Check element area and number of nodes. | |
| double | getArea () |
| Return element area. | |
| Point< double > | getCenter () const |
| Return coordinates of center of element. | |
| Point< double > | getCircumcenter () const |
| Return coordinates of circumcenter of element. | |
| double | getCircumRadius () const |
| Return radius of circumscribed circle of triangle. | |
| double | getInRadius () const |
| Return radius of inscribed circle of triangle. | |
| Point< double > | getRefCoord (const Point< double > &x) const |
| Return reference coordinates of a point x in element. | |
| double | getMaxEdgeLength () const |
| Return maximal edge length of triangle. | |
| double | getMinEdgeLength () const |
| Return minimal edge length of triangle. | |
| bool | isIn (const Point< double > &x) const |
| Check whether point x is in current triangle or not. | |
| bool | isStrictlyIn (const Point< double > &x) const |
| Check whether point x is strictly in current triangle (not on the boundary) or not. | |
| double | Sh (size_t i) const |
| Return shape function of node i at given point. | |
| double | getDet () const |
| Return determinant of jacobian. | |
| 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
Defines a 3-Node (P1) triangle.
The reference element is the rectangle triangle with two unit edges.
Constructor & Destructor Documentation
Constructor for an element.
The constructed triangle is an element in a 2-D mesh.
Constructor for a side.
The constructed triangle is a side in a 3-D mesh.
Member Function Documentation
Calculate shape function of node at a given point.
- Parameters:
-
[in] i Label (local) of node [in] s Natural coordinates of node where to evaluate
Reimplemented from FEShape.
| double check | ( | ) | const |
Check element area and number of nodes.
- Returns:
- > 0 : m is the length
- = 0 : zero length (=> Error)
| 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
- Triang3