mymesh.mesh.mesh.getQuality#

mesh.getQuality(metrics=['Skewness', 'Aspect Ratio'], verbose=None)[source]#

Evaluate mesh quality. This will create a dict with entries corresponding to the specified quality metrics. This dict can be stored in mesh.ElemData by performing m.ElemData.update(m.getQuality()) or m.ElemData |= m.getQuality()

Parameters:
  • metrics (str or list, optional) –

    Quality metric, or list of quality metrics, to evaluate, by default [‘Skewness’,’Aspect Ratio’]. Available options are:

    Note that not all metrics are suited to all element types.

  • verbose (bool or NoneType, optional) – If True, quality reports will be printed. If None, this will be determined by the verbosity state (mesh.verbose) of the mesh object, by default None.

Returns:

qual – Dictionary of element qualities

Return type:

dict