upxo.meshing.gbconformant.pipeline.stage_output module

Output stages: the before/after comparison and the surface, volume and Abaqus exports.

upxo.meshing.gbconformant.pipeline.stage_output.deck_settings(cfg: dict)[source]

Settings -> DeckSettings.

upxo.meshing.gbconformant.pipeline.stage_output.build_identity(state: PipelineState, hierarchy, config: dict | None = None)[source]

Raw identity of every meshed grain from the stored shuffle and merge maps (config: settings to use in place of the state’s).

upxo.meshing.gbconformant.pipeline.stage_output.export_fm_deck(state: PipelineState, tets, folder: Path) → dict[source]

Write the FM-steel deck of tets into the new folder.

upxo.meshing.gbconformant.pipeline.stage_output.comparison_settings(cfg: dict)[source]
upxo.meshing.gbconformant.pipeline.stage_output.texture_settings(cfg: dict)[source]

Settings -> TextureSettings (pole figure options).

upxo.meshing.gbconformant.pipeline.stage_output.handle_compare_before_after(state: PipelineState) → dict[source]

Junction line lengths and equivalent diameters, raw voxels against the mesh.

upxo.meshing.gbconformant.pipeline.stage_output.handle_export_surfaces(state: PipelineState) → dict[source]
upxo.meshing.gbconformant.pipeline.stage_output.handle_export_volume(state: PipelineState) → dict[source]
upxo.meshing.gbconformant.pipeline.stage_output.handle_export_abaqus(state: PipelineState) → dict[source]
upxo.meshing.gbconformant.pipeline.stage_output.voxel_deck_folder(base: Path, paired: Path | None, subset: bool) → tuple[Path, str | None][source]

Folder of the next voxel deck in base and the conformal export it is paired with.

The voxel deck takes the number (or time stamp) of paired, the latest conformal export, as <stamp>_voxel; when there is no such export, or a voxel deck already holds that number, it takes the next free number (a new time stamp outside subset runs) and is paired with nothing.

upxo.meshing.gbconformant.pipeline.stage_output.voxel_labels(state: PipelineState, config: dict | None = None) → tuple[ndarray, tuple, dict][source]

(labels, voxel size in mesh units (x, y, z), source report) of the voxel deck.

upxo.meshing.gbconformant.pipeline.stage_output.voxel_grid_shape(state: PipelineState, config: dict | None = None)[source]

Shape of the voxel grid the voxel deck would have, or None before the cleaned labels exist.

upxo.meshing.gbconformant.pipeline.stage_output.handle_export_abaqus_voxel(state: PipelineState) → dict[source]

Write the voxel (C3D8) FM-steel deck beside the conformal one, under the same number.