mymesh.quality.tet_volume#
- mymesh.quality.tet_volume(NodeCoords, NodeConn)[source]#
Element volumes of a purely tetrahedal mesh.
\[V = -\frac{(v_0 - v_1)\cdot ((v_1 - v_3) \times (v_2 - v_3))}{6}\]where \(v_0\), \(v_1\), \(v_2\), and \(v_3\) are the coordinates \((x,y,z)\) of the vertices.
- Parameters:
NodeCoords (np.ndarray) – Node coordinates (shape=(n,3))
NodeConn (np.ndarray) – Node connectivity (shape=(m,4), dtype=int)
- Returns:
vol – Volumes of each tetrahedron
- Return type:
np.ndarray