Skip to content

KAM + gb misorientation parallel#576

Merged
haixing0a merged 3 commits intoFABLE-3DXRD:masterfrom
CiolJegou:fix-rod2quat
Apr 24, 2026
Merged

KAM + gb misorientation parallel#576
haixing0a merged 3 commits intoFABLE-3DXRD:masterfrom
CiolJegou:fix-rod2quat

Conversation

@CiolJegou
Copy link
Copy Markdown
Contributor

I added 2 main functions for Misorientation computation.
Both functions are very similar in how they are used: pick a method, get pairs of voxels and their neighbors for a given mask, compute the misorientation in parallel for every pair.
Both methods can be used with Xfab.symmetry.Umis, or with the disorientation function. Results are similar for cubic (I did not test other symmetries yet). Umis computation time is ~10 times faster.

  1. DS_KAM_parallel: KAM computation in parallel with a threshold.
  2. DS_misori_parallel: Grain boundary misorientation in parallel (pixel by pixel) --> the misorientation can change along a grain boundary

Sub functions :

  • get_boundary_voxels : Get a mask of the grain boundaries based on the grain labels
  • find_neighbors : Get the coordinates of all neighbors of a voxel. The neighbors are defined by a kernel
  • KAM_kernel : Create a KxKxK kernel with a gaussian function to pick out neigbors for KAM and GB

@haixing0a
Copy link
Copy Markdown
Collaborator

Looks good, thanks !

@haixing0a haixing0a merged commit faa83c8 into FABLE-3DXRD:master Apr 24, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants