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.

features maps a feature label to an object with euler and global_id; names maps the label to the name of its element set; ids is {column: {label: int}} of further ids (the hierarchy levels, see features.id_columns()). Returns a dictionary with feature_label (M,), global_id (M,), euler_deg (M, 3), ipf_x/ipf_y/ipf_z (M, 3, floats in 0..1), ids ({column: (M,)}) and names ({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.

upxo.meshing.gbconformant.fm_steel_abaqus.mesh_files.write_msh(path, points, tetrahedra, fields)[source]

Gmsh MSH 2.2 ASCII: physical groups named after the element sets, element data for the orientations.