Defines a 6-Node straight triangular finite element using P2
interpolation.
More...


Public Member Functions | |
Triang6S () | |
Default Constructor. | |
Triang6S (const Element *el) | |
Constructor for an element. More... | |
~Triang6S () | |
Destructor. | |
real_t | Sh (size_t i, const Point< real_t > &s) const |
Calculate shape function of a node. More... | |
Point< real_t > | DSh (size_t i, const Point< real_t > &s) const |
Calculate derivatives of shape function of a node. More... | |
Point< real_t > | getCenter () const |
Return coordinates of center of element. | |
Point< real_t > | Grad (const LocalVect< real_t, 6 > &u, const Point< real_t > &s) const |
Return gradient vector in triangle at a given point. More... | |
real_t | getMaxEdgeLength () const |
Return maximal edge length of triangle. | |
real_t | getMinEdgeLength () const |
Return minimal edge length of triangle. | |
real_t | getArea () |
Return element area. | |
Point< real_t > | getCircumcenter () const |
Return coordinates of circumcenter of element. | |
real_t | getCircumRadius () const |
Return radius of circumscribed circle of triangle. | |
real_t | getInRadius () const |
Return radius of inscribed circle of triangle. | |
Point< real_t > | getRefCoord (const Point< real_t > &x) const |
Return reference coordinates of a point x in element. | |
bool | isIn (const Point< real_t > &x) const |
Check whether point x is in current triangle or not. | |
bool | isStrictlyIn (const Point< real_t > &x) const |
Check whether point x is strictly in current triangle (not on the boundary) or not. | |
real_t | Sh (size_t i) const |
Return shape function of node i at given point. | |
real_t | Sh (size_t i, Point< real_t > s) const |
Calculate shape function of node i at a given point s . More... | |
Point< real_t > | DSh (size_t i) const |
Return derivatives of shape function of node i at a given point. More... | |
real_t | getDet () const |
Return determinant of jacobian. More... | |
Point< real_t > | getLocalPoint () const |
Localize a point in the element. More... | |
Point< real_t > | getLocalPoint (const Point< real_t > &s) const |
Localize a point in the element. More... | |
Detailed Description
Defines a 6-Node straight triangular finite element using P2
interpolation.
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.
- Parameters
-
[in] el Pointer to Element instance
Member Function Documentation
Calculate shape function of a node.
- Parameters
-
[in] i Local label of the node 1≤i≤6
[in] s Local coordinates of the point where the shape function is evaluated
Calculate derivatives of shape function of a node.
- Parameters
-
[in] i Local label of node [in] s Local coordinates of the point where the gradient of the shape function is evaluated
Return gradient vector in triangle at a given point.
- Parameters
-
[in] s Local coordinates of the point where the gradient of the shape function is evaluated [in] u Local vector for which the gradient is evaluated
Calculate shape function of node i
at a given point s
.
- Parameters
-
[in] i Local node label [in] s Point in the reference triangle where the shape function is evaluated
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, 2 or 3)
|
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.
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.