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

Detailed Description
Defines a three-dimensional 4-node tetrahedral finite element using P1 interpolation.The reference element is the right tetrahedron with four unit edges interpolation.
Public Member Functions | |
| double | check () const |
| Check element volume and number of nodes. | |
| Point< double > | DSh (size_t i) const |
Return x and y partial derivatives of shape function associated to node i. | |
| Point< double > | getCenter () const |
| Return coordinates of center of element. | |
| double | getDet () const |
| Return determinant of jacobian. | |
| double | getInterpolate (const Point< double > &x, const LocalVect< double, 4 > &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. | |
| double | getMinEdgeLength () const |
| Return minimal edge length. | |
| Point< double > | getRefCoord (const Point< double > &x) const |
| Return reference coordinates of a point x in element. | |
| double | getVolume () const |
| Return volume of element. | |
| bool | isIn (const Point< double > &x) |
| Check whether point x is in current tetrahedron 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 i at a given point s. | |
| Tetra4 (const Element *element) | |
| Constructor when data of Element el are given. | |
| Tetra4 () | |
| Default Constructor. | |
| ~Tetra4 () | |
| Destructor. | |
Member Function Documentation
| double check | ( | ) | const |
Check element volume and number of nodes.
- Return values:
-
m - > 0 : m is the length
- = 0 : zero length (=> Error)
| Point<double> DSh | ( | size_t | i | ) | const |
Return x and y partial derivatives of shape function associated to node i.
Note that these are constant in element.
Reimplemented from FEShape.
| 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 i at a given point s.
s is a point in the reference tetrahedron.
Reimplemented from FEShape.