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:
’Skewness’ :
Skewness()
’Aspect Ratio’ :
AspectRatio()
’Inverse Orthogonal Quality’ :
InverseOrthogonalQuality()
’Orthogonal Quality’ :
OrthogonalQuality()
’Inverse Orthogonality’ :
InverseOrthogonality()
’Orthogonality’ :
Orthogonality()
’Min Dihedral’ :
MinDihedral()
- Reported in radians’Min Dihedral(deg)’ :
MinDihedral()
- Reported in degrees’Max Dihedral’ :
MaxDihedral()
- Reported in radians’Max Dihedral(deg)’ :
MaxDihedral()
- Reported in degrees’Mean Ratio’ :
MeanRatio()
’Volume’ :
Volume()
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