upxo.meshing.gbconformant.fm_steel_abaqus.export module
Partitioned Abaqus deck for FM-steel meshes: conformal tetrahedra (C3D4) or voxel hexahedra (C3D8).
The deck follows the layout of the voxel FM-steel export: nodes, elements,
hierarchy element sets, face node sets, one material and section per feature
of the chosen level, an interactions template and a static step. Each
element belongs to the feature its grain stands for (see
identity); the parent-level sets are unions of those elements.
Both element types get the same sets under the same names.
- class upxo.meshing.gbconformant.fm_steel_abaqus.export.DeckSettings(material_format: str = 'reference_umat', n_depvar: int = 1, load_axis: str = 'z', applied_displacement: float = 0.2, step_time: float = 80.0, write_step: bool = True, initial_inc: float = 0.01, min_inc: float = 1e-08, max_inc: float = 1.0, max_increments: int = 10000, output_interval: float = 0.5, load_mode: str = 'displacement', load_case: str = 'monotonic', load_sense: str = 'tension', target_strain: float = 0.02, strain_rate: float = 0.0004, hold_time: float = 0.0, cycle_definition: str = 'min_max', strain_min: float = -0.01, strain_max: float = 0.01, strain_amplitude: float = 0.01, r_ratio: float = -1.0, cycles: int = 5, output_elset: str = '', job_scripts: bool = False, abaqus_command: str = 'abaqus', umat_file: str = '', job_name: str = 'fm_job', job_cpus: int = 4, job_memory_gb: float = 0.0, job_time_hours: float = 24.0, slurm_partition: str = '', element_outputs: tuple = ('LE', 'NE', 'S', 'SDV'), node_outputs: tuple = ('U', ), length_scale: float = 1.0, output_units: str | None = None, header_message: str = '', elset_prefixes: dict = <factory>, nset_names: dict = <factory>, face_tolerance: float = 1e-08, boundary_sets: bool = False, layer_sets: bool = False, boundary_classes: bool = False, low_angle_degrees: float = 15.0, crystal_symmetry: str = 'cubic', feature_table: bool = False, deck_check: bool = False, write_msh: bool = False, write_vtu: bool = False, prefix_gb_layer: str = 'es_gb_layer', prefix_interior: str = 'es_interior', set_provider: str = '', provider_options: dict = <factory>)[source]
Bases:
object- set_provider: str = ''
none.
- Type:
Module that adds further sets to the deck (see
extra_sets); empty
- upxo.meshing.gbconformant.fm_steel_abaqus.export.feature_elset_name(hierarchy, prefixes, feature)[source]
Element set of a feature: the name its dataset gave it, else prefix and key by level.
- upxo.meshing.gbconformant.fm_steel_abaqus.export.write_deck(directory, points, tetrahedra, tet_grain, hierarchy, identity, settings=None, *, mesh_voxel_length=1.0, meshed_labels=None, audit=True)[source]
Write the deck into a new
directory; return a summary dictionary.- Parameters:
points (mesh coordinates (in units where one raw voxel edge is) –
mesh_voxel_length) and 0-based node indices of linear tetrahedra(M, 4), or of linear hexahedra(M, 8)in C3D8 order (a voxel mesh).tetrahedra (mesh coordinates (in units where one raw voxel edge is) –
mesh_voxel_length) and 0-based node indices of linear tetrahedra(M, 4), or of linear hexahedra(M, 8)in C3D8 order (a voxel mesh).tet_grain (meshed grain label of every element.)
hierarchy (
Hierarchyof the chosen level.)identity (
IdentityMapfor the meshed grains.)meshed_labels (optional cleaned label array (pipeline labels); when given a) – voxel reallocation report is written as well.
audit (look up the raw voxel under every centroid and stop on an identity) – mismatch (
IdentityError).
- upxo.meshing.gbconformant.fm_steel_abaqus.export.write_boundary_class_table(path, classes, names, face_column='triangles')[source]
One row per pair of neighbouring features: their element sets, the kind of boundary, area and misorientation.
- upxo.meshing.gbconformant.fm_steel_abaqus.export.write_interface_surface(path, points, interfaces, classes, scale=1.0)[source]
The interface triangles (quadrilaterals for hexahedra) as a VTK surface; cell data: kind, misorientation, area and the two features.