upxo.meshing.gbconformant.fm_steel_abaqus.twinned module
Twinned FCC structures as input to the deck writer.
A twinned structure folder holds lgi_twinned_clean.npy (one label per grain, axes z, y, x),
orientations_all.pkl (unit quaternion [w, x, y, z] per grain), twin_role.pkl (one of
non_host, host, primary_twin, secondary_twin) and twin_parent_of.pkl (twin to the
grain it grew from). The folder is read into a Hierarchy whose features are the
grains, named as the voxel deck of the twinned structure names them (es_cell_host_12), with
element sets that join the grains by role and by host family.
- upxo.meshing.gbconformant.fm_steel_abaqus.twinned.quaternion_to_bunge(q)[source]
Bunge-Euler angles (phi1, Phi, phi2) in degrees from a unit quaternion [w, x, y, z] (ZXZ, active).
- upxo.meshing.gbconformant.fm_steel_abaqus.twinned.role_keys(twin_role, twin_parent_of)[source]
The role of each grain with secondary twins told apart:
stwin_bgrew from a primary twin,stwin_afrom a host.