-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestSuite.m
78 lines (64 loc) · 1.33 KB
/
testSuite.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
% Test Suite
clear all
close all
%% Test Graphene
m = graphene('AB');
m.rnd = 2;
m.setTheta(0)
m.setTitle('');
m.setSpotcut(1);
% Test draw3D
drawHexagon = true;
m.draw3D(drawHexagon,figure);
% Test Tilt Pattern
m.setkeV(200);
m.setKillZero(1);
m.setIntensityFactor(1);
t_max= 23;
m.setTiltStart(-t_max*pi/180);
m.setTiltEnd(t_max*pi/180);
m.setTiltN(1024);
m.setTiltAxis(deg2rad(0));
%displaymode = 'kz';
displaymode = 'angle';
displaypattern = true;
kzmode = 'ewald';
%kzmode = 'constant';
[tiltrange, I] = m.getTiltSeries(kzmode, displaymode, displaypattern, figure);
% Test Side view
m.setKillZero(2);
hs = [-1 0 1]';
ks = [ 0 0 0]';
xpos = [-1 0 1]';
m.drawSideView(hs,ks,xpos,figure)
%% Test MoS2
m = TaSe2('2Ha');
m.setNumLayer(2)
%m.
m.setTitle('');
m.setSpotcut(2);
% Test draw3D
drawHexagon = true;
m.draw3D(drawHexagon,figure);
%%
% Test Tilt Pattern
m.setkeV(200);
m.setKillZero(1);
m.setIntensityFactor(1);
t_max= 23;
m.setTiltStart(-t_max*pi/180);
m.setTiltEnd(t_max*pi/180);
m.setTiltN(1024);
m.setTiltAxis(deg2rad(0));
%displaymode = 'kz';
displaymode = 'kz';
displaypattern = true;
kzmode = 'ewald';
%kzmode = 'constant';
[tiltrange, I] = m.getTiltSeries(kzmode, displaymode, displaypattern, figure);
% Test Side view
m.setKillZero(2);
hs = [-1 0 1 2]';
ks = [ 0 0 0 0]';
xpos = [-1 0 1 1.5]';
m.drawSideView(hs,ks,xpos,figure)