cashocs.geometry.quality.compute_mesh_quality#
- cashocs.geometry.quality.compute_mesh_quality(mesh: fenics.Mesh, quality_type: str = 'min', quality_measure: str = 'skewness') float [source]#
This computes the mesh quality of a given mesh.
- Parameters:
mesh (fenics.Mesh) – The mesh whose quality shall be computed.
quality_type (str) – The type of measurement for the mesh quality, either minimum quality or average quality over all mesh cells, default is ‘min’.
quality_measure (str) – The type of quality measure which is used to compute the quality measure, default is ‘skewness’
- Returns:
The quality of the mesh, in the interval \([0,1]\), where 0 is the worst, and 1 the best possible quality.
- Return type:
float