upxo.meshing.gbconformant.fm_steel_abaqus.texture module

Pole figures of the raw features and of the meshed features, and their difference.

Orientations are Bunge-Euler angles in degrees, one per feature of the chosen level, replicated through the selected sample symmetry exactly as the hierarchy pole-figure views do. The difference is after minus before, each field optionally divided by its own maximum first.

class upxo.meshing.gbconformant.fm_steel_abaqus.texture.TextureSettings(pole_family: object = '100', crystal_symmetry: str = 'cubic', apply_sample_symmetry: bool = True, use_rd: bool = True, use_td: bool = True, use_nd: bool = True, half_width_deg: float = 7.5, grid_points: object = 'auto', unit_normalize: bool = True, plot_mode: str = 'density', projection: str = 'equal_area', hemisphere: str = 'upper', cmap: str = 'viridis', difference_cmap: str = 'RdBu_r', levels: int = 10, contour_scale: str = 'linear', colorbar_decimals: int | None = None, axis_labels: tuple = (None, None, None))[source]

Bases: object

pole_family: object = '100'
crystal_symmetry: str = 'cubic'
apply_sample_symmetry: bool = True
use_rd: bool = True
use_td: bool = True
use_nd: bool = True
half_width_deg: float = 7.5
grid_points: object = 'auto'
unit_normalize: bool = True
plot_mode: str = 'density'
projection: str = 'equal_area'
hemisphere: str = 'upper'
cmap: str = 'viridis'
difference_cmap: str = 'RdBu_r'
levels: int = 10
contour_scale: str = 'linear'
colorbar_decimals: int | None = None
axis_labels: tuple = (None, None, None)
validate()[source]
upxo.meshing.gbconformant.fm_steel_abaqus.texture.orientation_table(hierarchy, labels=None)[source]

(labels, eulers) of the features in labels (default: all), ascending.

upxo.meshing.gbconformant.fm_steel_abaqus.texture.pole_figure(eulers, settings, weights=None)[source]

PoleFigure of eulers with the sample symmetry replicated.

weights (one per orientation, for example the grain volumes) weight the density; every replica keeps the weight of its orientation.

upxo.meshing.gbconformant.fm_steel_abaqus.texture.resolved_grid_points(settings)[source]

One integer grid size for both sides, so their fields line up point by point.

upxo.meshing.gbconformant.fm_steel_abaqus.texture.density_difference(eulers_before, eulers_after, settings, weights=(None, None))[source]

After-minus-before MUD density difference on a shared grid.

weights is (before, after): one weight per orientation or None for each side. Returns Xi, Yi, zi_diff and iqr (interquartile range of the difference field; a single-number summary, not a verdict).