-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathphases.m
30 lines (23 loc) · 1011 Bytes
/
phases.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
function [cs] = phases(phase)
if contains(phase, "alpha") % HCP phases %
% IMPORTANT NOTE: DAMASK uses 10-10||Y and 11-20||X %
cs = crystalSymmetry('6/mmm', [3 3 4.7], 'X||b', 'Y||a*', 'Z||c*', 'mineral', 'Ti-Hex', 'color', [0.53 0.81 0.98]);
end
% if isequal(phase, 'Mg')
% w = miller_indicies(4);
% m_str = strcat(m_str, string(w));
% %cs = 'INSERT Mg cs HERE';
% end
if contains(phase, 'beta')
cs = crystalSymmetry('m-3m', [3.2 3.2 3.2], 'mineral', 'Titanium cubic', 'color', [0.56 0.74 0.56]);
end
if isequal(phase, 'Ni-gamma')
cs = crystalSymmetry('m-3m', [3.6 3.6 3.6], 'mineral', 'Ni-superalloy', 'color', [0.53 0.81 0.98]);
end
if isequal(phase, 'Al')
cs = 0
end
fprintf("Got parameters for phase: %s\n", phase)
end
% Notes: %
% crystalSymmetry('laue group', [lattice parameters(unit cell size)], axes convention, 'mineral', 'ebsddatacolor', [R G B]);