upxo.meshing.gbconformant.fm_steel_abaqus.comparison module

Before/after report: raw voxel features against the conformal tetrahedral mesh.

Nothing here judges the result; it reports what the raw structure had and what the mesh has. Both sides use the same features: the label array of the chosen hierarchy level (before) and the resolved identity of every meshed grain (after). Lengths are in output units.

class upxo.meshing.gbconformant.fm_steel_abaqus.comparison.ComparisonSettings(include_rve_faces: bool = False, output_units: str | None = None, length_scale: float = 1.0, mesh_voxel_length: float = 1.0, symmetry: str = 'cubic')[source]

Bases: object

include_rve_faces: bool = False
output_units: str | None = None
length_scale: float = 1.0
mesh_voxel_length: float = 1.0
symmetry: str = 'cubic'
upxo.meshing.gbconformant.fm_steel_abaqus.comparison.describe(values)[source]

Count, total and distribution summary of a 1D array (NaN when empty).

upxo.meshing.gbconformant.fm_steel_abaqus.comparison.tet_volumes(points, tetrahedra, chunk=500000)[source]
upxo.meshing.gbconformant.fm_steel_abaqus.comparison.sphere_equivalent_diameter(volume)[source]

Diameter of the sphere with the given volume.

upxo.meshing.gbconformant.fm_steel_abaqus.comparison.compare_junction_lines(hierarchy, points, tetrahedra, resolved_grains, settings=None)[source]

Junction line lengths before (voxels) and after (tetrahedra).

upxo.meshing.gbconformant.fm_steel_abaqus.comparison.feature_diameters(hierarchy, points, tetrahedra, resolved_grains, settings=None)[source]

Sphere-equivalent diameter of every feature: raw voxels against mesh volume.

upxo.meshing.gbconformant.fm_steel_abaqus.comparison.compare_before_after(hierarchy, points, tetrahedra, tet_grain, identity, settings=None)[source]

Junction line lengths and sphere-equivalent diameters, before and after.

upxo.meshing.gbconformant.fm_steel_abaqus.comparison.report_summary(result)[source]

JSON-friendly digest of compare_before_after() (no per-line arrays).

upxo.meshing.gbconformant.fm_steel_abaqus.comparison.format_summary(result)[source]

Plain-text tables of a compare_before_after() result, the columns named for what they hold.