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

Detailed Description
Defines a 3-Node (P1) triangle.The reference element is the rectangle triangle with two unit edges.
Public Member Functions | |
| double | check () const |
| Check element area and number of nodes. | |
| Point< double > | DSh (size_t i) const |
| Calculate derivatives of shape function of node i. | |
| 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 | getDet () const |
| Return determinant of jacobian. | |
| double | getInterpolate (const Point< double > &x, const LocalVect< double, 3 > &v) |
| Return interpolated value at point of coordinate x. | |
| Point< double > | getLocalPoint (const Point< double > &s) const |
| Localize a point in the element. | |
| Point< double > | getLocalPoint () const |
| Localize a point in the element. | |
| double | getMaxEdgeLength () const |
| Return maximal edge length of triangle. | |
| double | getMinEdgeLength () const |
| Return minimal edge length of triangle. | |
| Point< double > | getRefCoord (const Point< double > &x) |
| Return reference coordinates of a point s in element. | |
| bool | isIn (const Point< double > &x) |
| Check whether point x is in current triangle or not. | |
| bool | isStrictlyIn (const Point< double > &x) |
| 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 | Sh (size_t i, Point< double > s) const |
| Calculate shape function of node at a given point. | |
| Triang3 (const Side *side) | |
| Constructor for a side. | |
| Triang3 (const Element *element) | |
| Constructor for an element. | |
| Triang3 () | |
| Default Constructor. | |
| ~Triang3 () | |
| Destructor. | |
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
| double check | ( | ) | const |
Check element area and number of nodes.
- Return values:
-
m - > 0 : m is the length
- = 0 : zero length (=> Error)
| double getDet | ( | ) | const [inherited] |
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.
| double Sh | ( | size_t | i, | |
| Point< double > | s | |||
| ) | const |
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.
References Point::x, and Point::y.
Referenced by OFELI::interpolate().