upxo.meshing.gbconformant.fm_steel_abaqus.mesh_files module
Mesh files that carry the orientation of every tetrahedron (or hexahedron): Gmsh .msh and VTK .vtu.
Both hold the nodes and tetrahedra of the deck in the deck’s numbering and units, the feature each
tetrahedron belongs to, the feature’s Bunge-Euler angles in degrees and its IPF colour for the three
sample axes (the colour of upxo.xtalphy.crystal_orientation.ipf_color()).
- upxo.meshing.gbconformant.fm_steel_abaqus.mesh_files.tetrahedron_fields(tet_feature, features, names, ids=None)[source]
Per-tetrahedron arrays from the feature of each tetrahedron.
featuresmaps a feature label to an object witheulerandglobal_id;namesmaps the label to the name of its element set;idsis{column: {label: int}}of further ids (the hierarchy levels, seefeatures.id_columns()). Returns a dictionary withfeature_label(M,),global_id(M,),euler_deg(M, 3),ipf_x/ipf_y/ipf_z(M, 3, floats in 0..1),ids({column: (M,)}) andnames({label: name}).
- upxo.meshing.gbconformant.fm_steel_abaqus.mesh_files.write_vtu(path, points, tetrahedra, fields)[source]
VTK unstructured grid with the cell data of
tetrahedron_fields(); IPF colours as 8-bit RGB.