Mesh statistics and quality
You can use a set of quality metrics to measure the mesh quality. TheSurfaceSearch
and VolumeSearch classes allow you to verify surface and volume mesh quality, respectively.
Connectivity checks
Surface diagnostics are important prior to generating a volume mesh. You can get a surface diagnostic summary by using theSurfaceSearch.get_surface_diagnostic_summary()
method. The SurfaceDiagnosticSummaryParams class provides for
diagnosing surface connectivity for the given scope and controls:
- Duplicate faces
- Free face edges
- Multi face edges
- Self intersections
Face metrics
TheFaceQualityMeasure class offers various types
of measures to verify face quality metrics.
- The
SKEWNESSmetric ranges between 0 (ideal) and 1 (worst). - The
ASPECTRATIOmetric is greater than 1. The smaller the aspect ratio, the higher the quality of an element. - The
ELEMENTQUALITYmetric ranges between 0 (worst) and 1 (ideal).
Cell metrics
TheCellQualityMeasure class offers various types
of measures to verify cell quality metrics.
- The
SKEWNESSmetric ranges between 0 (ideal) and 1 (worst). - The
ASPECTRATIOmetric is greater than 1. The smaller the aspect ratio, the higher the quality of an element. - The
FLUENTASPECTRATIOmetric is greater than 1. The smaller the Fluent aspect ratio, the higher the quality of an element. - The
ELEMENTQUALITYmetric ranges between 0 (worst) and 1 (ideal).
Mesh counts
ThePart.get_summary() method provides the
number of nodes, faces, or cells after meshing with the given parameters.
This code gets mesh counts:
Mesh improvement
When the metrics show that the mesh quality is low, theVolumeMeshTool
class provides various volume mesh improvement algorithms for improving the mesh.
Auto node move
You can improve volume mesh by auto node move using theVolumeMeshTool.improve_by_auto_node_move()
method with given parameters. In addition, you can verify the mesh using the
VolumeMeshTool.check_mesh() method.
This code improves and checks the volume mesh: