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

Detailed Description
Defines a 6-Node straight triangular finite element using P2 interpolation.The reference element is the rectangle triangle with two unit edges.
Public Member Functions | |
| double | check () const |
| Check element area and number of odes. | |
| Point< double > | DSh (size_t i) const |
| Return derivatives of shape function of node i at a given point. | |
| Point< double > | DSh (size_t i, const Point< double > &s) const |
| Calculate derivatives of shape function of node i. | |
| double | getArea () |
| Return element area. | |
| Point< double > | getCenter () const |
| Return coordinates of center of element. | |
| double | getDet () const |
| Return determinant of jacobian. | |
| 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 | 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, const Point< double > &s) const |
| Calculate shape function of node i. | |
| Triang6S (const Element *el) | |
| Constructor for an element. | |
| Triang6S () | |
| Default Constructor. | |
| ~Triang6S () | |
| Destructor. | |
Constructor & Destructor Documentation
Constructor for an element.
The constructed triangle is an element in a 2-D mesh.
Member Function Documentation
| double check | ( | ) | const |
Check element area and number of odes.
- Return values:
-
m - > 0 : m is the length
- = 0 : zero length (=> Error)
| Point<double> DSh | ( | size_t | i | ) | const [inherited] |
Return derivatives of shape function of node i at a given point.
If the transformation (Reference element -> Actual element) is not affine, member function setLocal() must have been called before in order to calcuate relevant quantities.
- Parameters:
-
[in] i Partial derivative index (1 or 2)
| 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 [inherited] |