mymesh.quality.Orthogonality#
- mymesh.quality.Orthogonality(NodeCoords, NodeConn, verbose=False)[source]#
Calculates element orthogonality for each element in the mesh. For all element types, orthogonality is calculated by determining the minimum of the angle cosines between face normal vectors (Ai) and the element centroid to face centroid vectors (fi) and the angle cosines between Ai and the element centroid to neighbor element centroid (ci).
Orthogonality ranges from 0 to 1, with 0 being the worst element quality and 1 being the best.
This definition of Orthogonality comes from Ansys.
- Parameters:
NodeCoords (list) – List of nodal coordinates.
NodeConn (list) – List of nodal connectivities.
verbose (bool, optional) – If true, will print min, max, and mean element quality, by default False.
- Returns:
ortho – Array of orthogonalities for each element.
- Return type:
np.ndarray