upxo.meshing.gbconformant.fm_steel_abaqus.boundary_classes module

Kinds of grain boundary: where two neighbouring features sit in the hierarchy, and how far apart they are in orientation.

FM steel, from the finest level: a sub-block boundary separates two sub-blocks of one block, a block boundary two blocks of one packet, a packet boundary two packets of one PAG, and a PAG boundary two PAGs. Which of these occur depends on the level the structure was meshed at (meshed at block level there are no sub-block boundaries).

Twinned FCC: a twin boundary separates two grains of one host family (a host and its twins, or two twins of the same host); every other boundary between grains is a grain boundary.

Each boundary also has a misorientation angle (cubic symmetry) and is low-angle when the angle is below a limit.

upxo.meshing.gbconformant.fm_steel_abaqus.boundary_classes.class_order(hierarchy)[source]

The kinds of boundary the hierarchy can have, finest first.

upxo.meshing.gbconformant.fm_steel_abaqus.boundary_classes.pair_class(hierarchy, a, b)[source]

The kind of boundary between features a and b (their labels).

class upxo.meshing.gbconformant.fm_steel_abaqus.boundary_classes.BoundaryClasses(order: tuple, pairs: ndarray, kinds: list, area: ndarray, faces: ndarray, misorientation: ndarray, low_angle_degrees: float, face_pair: ndarray, face_kind: ndarray, symmetry: str, summary: dict = <factory>)[source]

Bases: object

The boundaries of a mesh by kind. face_* arrays have one entry per interface triangle.

order: tuple
pairs: ndarray
kinds: list
area: ndarray
faces: ndarray
misorientation: ndarray
low_angle_degrees: float
face_pair: ndarray
face_kind: ndarray
symmetry: str
summary: dict
property has_misorientation
low_angle()[source]

Boolean per pair, None when no misorientation is available.

upxo.meshing.gbconformant.fm_steel_abaqus.boundary_classes.classify(hierarchy, interfaces: Interfaces, *, scale=1.0, symmetry='cubic', low_angle_degrees=15.0)[source]

Sort the interfaces by kind; areas are multiplied by scale squared (mesh units to output units).

upxo.meshing.gbconformant.fm_steel_abaqus.boundary_classes.summarize(classes: BoundaryClasses)[source]

Per kind: pairs, triangles, area, share of the total area, area-weighted mean misorientation, low-angle share.

upxo.meshing.gbconformant.fm_steel_abaqus.boundary_classes.class_nodes(interfaces: Interfaces, classes: BoundaryClasses)[source]

{set name: node indices} of the nodes on the triangles of each kind, and of low- and high-angle ones.

Names are ns_gb_<kind> and, when a misorientation is available, ns_gb_lowangle and ns_gb_highangle. A node on the edge between two kinds is in both sets. Empty sets are left out.