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.is_twinned_folder(folder)[source]
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_b grew from a primary twin, stwin_a from a host.

upxo.meshing.gbconformant.fm_steel_abaqus.twinned.host_family(label, twin_parent_of, hosts)[source]

The host a grain descends from (itself when it is a host); None when no host is found.

upxo.meshing.gbconformant.fm_steel_abaqus.twinned.load_twinned(folder, voxel_size=1.0, units='microns')[source]

Read the twinned structure in folder into a Hierarchy (one feature per grain).