upxo.meshing.gbconformant.d3v2p0.quality_plots module
Element-quality distribution plots and a grain-boundary surface view.
- upxo.meshing.gbconformant.d3v2p0.quality_plots.triangle_quality_distribution(points, triangles, exterior=None, min_angle_limit=30.0, fraction=0.05, bins=60)[source]
Three separate histograms of surface-triangle quality: smallest angle, largest angle (degrees) and the 0-1 shape quality 4*sqrt(3)*area/sum(edge^2).
Each marks the worst value in the mesh and counts the triangles within
fractionof the way from it towards the best possible value (60 deg for both angles, 1 for quality): [lowest, lowest + fraction*(best - lowest)] for smallest angle and quality, [highest - fraction*(highest - best), highest] for largest angle. exterior, if given, splits internal grain boundaries from RVE faces. Returns (figures, stats).
- upxo.meshing.gbconformant.d3v2p0.quality_plots.tet_quality_distribution(points, tetrahedra, quality=None, min_dihedral_limit=15.0, max_dihedral_limit=150.0, fraction=0.05, bins=60)[source]
Separate histograms of tet quality: smallest and largest dihedral angle (degrees) and, if given, Gmsh minSICN. Each marks the worst value and counts the tets within
fractionof the way from it towards the best possible value (70.53 deg, the regular tet, for both dihedral angles; 1 for minSICN). Returns (figures, stats).
- upxo.meshing.gbconformant.d3v2p0.quality_plots.show_surface(vtp, *, show_edges=True, internal_only=True, color_by='grain', title='Grain-boundary surface')[source]
Interactive view of a saved grain-boundary surface (blocks until closed).
show_edges: draw triangle edges. internal_only: hide RVE-face triangles. color_by: ‘grain’ (grain_a), ‘min_angle’ (smallest triangle angle) or ‘none’.