find lattice alignments for arbitrary misorientations
Description
Given a misorientation mori find all face normals n1, n2 and crystal directions d1, d2, such that mori * n1 = n2 and mori * d1 = d2.
Syntax
matchLattice(mori)
[n1,n2,d1,d2] = matchLattice(mori)
[n1,n2,d1,d2] = matchLattice(mori,'threshold',1*degree)
[n1,n2,d1,d2] = matchLattice(mori,'maxIndex',3)
Input
mori | misorientation |
Output
uvw,hkl | Miller |
n1,n2,d1,d2 | Miller |
Example
revert sigma3 misorientation relationship
[n1,n2,d1,d2] = matchLattice(CSL(3,crystalSymmetry('432')))
n1 = Miller (432)
size: 37 x 1
n2 = Miller (432)
size: 37 x 1
d1 = Miller (432)
size: 37 x 1
d2 = Miller (432)
size: 37 x 1
revert back Bain misorientation ship
cs_alpha = crystalSymmetry('m-3m', [2.866 2.866 2.866], 'mineral', 'Ferrite');
cs_gamma = crystalSymmetry('m-3m', [3.66 3.66 3.66], 'mineral', 'Austenite');
mori = orientation.Bain(cs_alpha,cs_gamma)
[n_gamma,n_alpha,d_gamma,d_alpha] = matchLattice(mori)
mori = misorientation (Ferrite → Austenite)
(011) || (001) [100] || [100]
n_gamma = Miller (Ferrite)
size: 13 x 1
h k l
0 1 -3
0 1 -2
0 1 -1
0 2 -1
0 3 -1
0 1 0
1 0 0
0 0 1
0 1 1
0 2 1
0 3 1
0 1 2
0 1 3
n_alpha = Miller (Austenite)
size: 13 x 1
h k l
0 2 -1
0 3 -1
0 1 0
0 3 1
0 2 1
0 1 1
1 0 0
0 -1 1
0 0 1
0 1 3
0 1 2
0 -1 3
0 -1 2
d_gamma = Miller (Ferrite)
size: 13 x 1
u v w
0 1 -3
0 1 -1
0 2 -1
0 3 -1
0 1 0
1 0 0
0 0 1
0 1 1
0 2 1
0 3 1
0 1 2
0 1 3
0 1 -2
d_alpha = Miller (Austenite)
size: 13 x 1
u v w
0 2 -1
0 1 0
0 3 1
0 2 1
0 1 1
1 0 0
0 -1 1
0 0 1
0 1 3
0 1 2
0 -1 3
0 -1 2
0 3 -1