upxo.xtal.mcgrain3d_definitions module
- class upxo.xtal.mcgrain3d_definitions.Grain3d[source]
Bases:
objectPer-grain data object for 3D Monte-Carlo / voxel polycrystals.
Stores voxel locations, bounding boxes, grain-boundary indices, neighbour links, hierarchical features (subgrains, PAP/blocks/laths, precipitates), meshing control points, and crystallographic orientation (Euler / quaternion / texture component). Typically referenced as
pxt.gs[tslice].g[gid]['grain']on amcgs3_grain_structure.- gid, loc, coords, npixels
Grain ID, voxel indices/coords, and size.
- bbox*, gbloc, gbsegs*, neigh
Bounds, GB voxels/segments, and neighbours.
- ea, q, texcomp, xstruc
Orientation and phase/structure labels.
- precipitates, subgrains, paps, blocks, laths
Optional hierarchical feature containers.
- loc
- position
- coords
- gbloc
- xmin
- xmax
- ymin
- ymax
- brec
- bbox_bounds
- bbox_ex_bounds
- loctree
- coordtree
- bbox
- bbox_ex
- neigh
- npixels
- skprop
- s
- sn
- gid
- gind
- gbid
- gbind
- gbvert
- gbsegs
- gbsegs_geo
- precipitates
- grain_core
- gb_zone
- subgrains
- paps
- blocks
- laths
- control_points_mesh
- xstruc
- ea
- q
- qref
- earef
- eapert
- introduce_orientation_bands
- texcomp
- classmethod from_shape(grid=None, ref_loc=None, shape=None, size_def=None)[source]
Construct this instance from shape.
- classmethod from_partition(grain_to_partition=None, ref_loc=None, normal=None)[source]
Construct this instance from partition.
- classmethod from_surfaces(slist=None, sconnectivity=None)[source]
Construct this instance from surfaces.
- classmethod from_vef(vertices=None, edges=None, faces=None)[source]
Construct this instance from vef.
- property centroid
Centroid.
- property volume
Volume.
- property gbsarea
Gbsarea.
- property meanori
Meanori.
- property eqd
Eqd.
- property abc
Abc.
- property surface_area_to_volume_ratio
Surface area to volume ratio.
- distirbute_grain_boundary_precipitates(shape=None, size=None)[source]
Distirbute grain boundary precipitates.
- gbsegs_pre
- xgid