upxo.meshing.gbconformant.pipeline.quality_report module

Per-grain and per-run quality of a tetrahedral mesh: dihedral angles, minSICN and aspect ratio.

The aspect ratio of a tetrahedron is its circumradius over three times its inradius: 1 for the regular tetrahedron and growing without limit for slivers and needles.

upxo.meshing.gbconformant.pipeline.quality_report.tet_volumes_and_aspect(points, tetrahedra, chunk: int = 400000)[source]

Volume and aspect ratio (circumradius / (3 inradius)) of every tetrahedron.

upxo.meshing.gbconformant.pipeline.quality_report.tet_measures(tets) → dict[str, ndarray][source]

Per-tetrahedron arrays: smallest and largest dihedral angle, minSICN (when held), volume, aspect ratio.

upxo.meshing.gbconformant.pipeline.quality_report.grain_table(tets, measures: dict | None = None, *, target_dihedral: float = 30.0) → dict[str, ndarray][source]

Quality of each grain’s tetrahedra: one array per column, one entry per grain (ascending id).

upxo.meshing.gbconformant.pipeline.quality_report.quality_report(tets, *, target_dihedral: float = 30.0, top: int = 10) → dict[str, Any][source]

The run’s quality against the usual limits, and per grain with the worst ones named.

worst lists the top grains with the smallest dihedral angle, worst first.