Definition at line 20 of file TetRule.h.
#include <TetRule.h>
|
| static const unsigned | n_base_nodes = 4u |
| | Constant: The number of base nodes for this element.
|
| static const MeshElemType | mesh_elem_type = MeshElemType::TETRAHEDRON |
| | Constant: The geometric type of the element.
|
| static const unsigned | n_faces = 4 |
| | Constant: The number of faces.
|
| static const unsigned | n_edges = 6 |
| | Constant: The number of edges.
|
| static const unsigned | n_neighbors = 4 |
| | Constant: The number of neighbors.
|
| static const unsigned | dimension = 3u |
| | Constant: Dimension of this mesh element.
|
|
| template<typename ElementRule> |
| static unsigned | identifyFace (Node const *const *element_nodes, Node const *nodes[ElementRule::dimension]) |
| | Returns the ID of a face given an array of nodes.
|
◆ computeVolume()
| double MeshLib::TetRule::computeVolume |
( |
Node const *const * | element_nodes | ) |
|
|
static |
Calculates the volume of a tetrahedron.
Definition at line 17 of file TetRule.cpp.
18{
20 *element_nodes[2], *element_nodes[3]);
21}
double calcTetrahedronVolume(MathLib::Point3d const &a, MathLib::Point3d const &b, MathLib::Point3d const &c, MathLib::Point3d const &d)
References MathLib::calcTetrahedronVolume().
◆ isPntInElement()
| bool MeshLib::TetRule::isPntInElement |
( |
Node const *const * | nodes, |
|
|
MathLib::Point3d const & | pnt, |
|
|
double | eps ) |
|
static |
Checks if a point is inside the element.
- Parameters
-
| pnt | a 3D MathLib::Point3d object |
| eps | tolerance for numerical algorithm used or computing the property |
- Returns
- true if the point is not outside the element, false otherwise
- Parameters
-
| nodes | the nodes of the element. |
Definition at line 23 of file TetRule.cpp.
25{
27 *nodes[3], eps);
28}
bool isPointInTetrahedron(MathLib::Point3d const &p, MathLib::Point3d const &a, MathLib::Point3d const &b, MathLib::Point3d const &c, MathLib::Point3d const &d, double eps)
References MathLib::isPointInTetrahedron().
◆ validate()
◆ mesh_elem_type
Constant: The geometric type of the element.
Definition at line 27 of file TetRule.h.
◆ n_base_nodes
| const unsigned MeshLib::TetRule::n_base_nodes = 4u |
|
static |
Constant: The number of base nodes for this element.
Definition at line 24 of file TetRule.h.
◆ n_edges
| const unsigned MeshLib::TetRule::n_edges = 6 |
|
static |
Constant: The number of edges.
Definition at line 33 of file TetRule.h.
◆ n_faces
| const unsigned MeshLib::TetRule::n_faces = 4 |
|
static |
◆ n_neighbors
| const unsigned MeshLib::TetRule::n_neighbors = 4 |
|
static |
Constant: The number of neighbors.
Definition at line 36 of file TetRule.h.
The documentation for this class was generated from the following files: