mymesh.quality.tri_skewness#

mymesh.quality.tri_skewness(NodeCoords, NodeConn)[source]#

Calculates triangular skewness for each triangle in the mesh. Mesh should be strictly triangular.

Skewness ranges from 0 to 1, with 0 being the best element quality and 1 being the worst.

Parameters:
  • NodeCoords (list) – List of nodal coordinates.

  • NodeConn (list) – List of nodal connectivities.

Returns:

skew – Array of skewness for each element.

Return type:

np.ndarray