mymesh.quality.Volume#
- mymesh.quality.Volume(NodeCoords, NodeConn, verbose=False, ElemType='auto')[source]#
Calculates element volumes for each element in the mesh.
- Parameters:
NodeCoords (array_like) – List of nodal coordinates.
NodeConn (array_like) – List of nodal connectivities.
verbose (bool, optional) – If true, will print min, max, and mean element volume, by default False.
ElemType (str, optional) – Specifies which element type the mesh contains. For any input other than ‘tet’, elements will be temporarily converted to tet sub-elements for the purposes of volume calculation, then summed to get the full element volume
- Returns:
V – Array of volumes for each element.
- Return type:
np.ndarray