upxo.meshing.gbconformant.fm_steel_abaqus.hierarchy module
Hierarchy levels of a raw feature export (PAG, packet, block, sub-block).
A raw export folder holds one label array and one orientation file per level
(<prefix>_lgi.npy, <prefix>_orientations.pkl) and a raw_export.pkl
bundle with the maps between level identifiers, parentage, units and voxel
size. This module reads it, reports which levels are present and builds the
feature table (orientation, parentage, global ID) for one chosen level.
- class upxo.meshing.gbconformant.fm_steel_abaqus.hierarchy.Feature(label: int, level: str, source_id: object, pag_id: int, pkt_idx: int | None, blk_local: int | None, sb_local: int | None, euler: tuple, global_id: int)[source]
Bases:
objectOne feature of the chosen level, identified by its label-array value.
- property pck_key
- property blk_key
- property key
- class upxo.meshing.gbconformant.fm_steel_abaqus.hierarchy.Hierarchy(level: str, lgi: numpy.ndarray, features: dict, voxel_counts: dict, units: str, voxel_size: float, pag_order: list = <factory>, pck_order: list = <factory>, blk_order: list = <factory>, sblk_order: list = <factory>, global_ids: dict = <factory>, origin: tuple | None = None, parent_shape: tuple | None = None, names: dict = <factory>, material_names: dict = <factory>, extra: dict = <factory>, groups: dict = <factory>, system: str = 'FM steel')[source]
Bases:
object- property level_text
grainfor a structure that has only grains (twinned FCC), else the level code.- Type:
The level as a person reads it
- upxo.meshing.gbconformant.fm_steel_abaqus.hierarchy.detect_levels(folder, prefixes=None)[source]
Levels (coarse to fine) with both a label array and an orientation file.
- upxo.meshing.gbconformant.fm_steel_abaqus.hierarchy.load_hierarchy(folder, level, prefixes=None)[source]
Read
levelof the raw export infolderinto aHierarchy.
- upxo.meshing.gbconformant.fm_steel_abaqus.hierarchy.parent_tables(hierarchy)[source]
Lookup tables from a feature label to its parents.
Returns
(pag_lut, pck_lut, pck_keys, blk_lut, blk_keys);pag_lutholds PAG IDs, the packet and block tables hold indices into the key lists (-1where the level does not apply).