-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbatchIEW.m
151 lines (126 loc) · 4.3 KB
/
batchIEW.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
% function batchIEW
emailSelf = true;
try
N = 25;
%% ----- Constant W, varying R -----
% R = [1.05 25];
% W = 1;
% constW1 = runBatchIEW('N',25, 'R',R,'W',W);
% W = 2;
% R = [1.05 25]*W;
% constW2 = runBatchIEW('N',25, 'R',R,'W',W);
% W = 10;
% R = [1.05 25]*W;
% constW10 = runBatchIEW('N',25, 'R',R,'W',W);
%% ----- Constant hole, varying W -----
% hole = 1;
% W = hole*[1/20, 10];
% Ws = logspace(log10(W(1)),log10(W(2)),N);
% Ws = round(500*Ws)/500;
% Rs = hole/2 + Ws;
% constHole1 = runBatchIEW('N',N, 'R',Rs, 'W',Ws);
%
% W = [0.1, 20];
% Ws = logspace(log10(W(1)),log10(W(2)),N);
% Ws = round(500*Ws)/500;
% hole = 2;
% Rs = hole/2 + Ws;
% constHole2 = runBatchIEW('N',N, 'R',Rs, 'W',Ws);
%
% W = [0.5, 100];
% Ws = logspace(log10(W(1)),log10(W(2)),N);
% Ws = round(500*Ws)/500;
% hole = 10;
% Rs = hole/2 + Ws;
% constHole10 = runBatchIEW('N',N, 'R',Rs, 'W',Ws);
%
% hole = 20;
% W = hole*[1/20, 10];
% Ws = logspace(log10(W(1)),log10(W(2)),N);
% Ws = round(500*Ws)/500;
% Rs = hole/2 + Ws;
% constHole20 = runBatchIEW('N',N, 'R',Rs, 'W',Ws);
%% ----- Constant R, varying W -----
% R = 100;
% W = [0.1 0.9]*R;
% constR100 = runBatchIEW('N',25, 'R',R, 'W',W);
%
% R = 20;
% W = [0.1 0.9]*R;
% constR20 = runBatchIEW('N',25, 'R',R, 'W',W);
% R = 10;
% W = [0.1 0.9]*R;
% constR10 = runBatchIEW('N',25, 'R',R, 'W',W);
%
% R = 2;
% W = [0.1 0.9]*R;
% constR2 = runBatchIEW('N',25, 'R',R, 'W',W);
%% ----- Constant R/W, varying W -----
% W = [0.5 100];
% R = 2*W;
% constRW2 = runBatchIEW('N',25, 'R',R, 'W',W);
%
% W = [0.5 100];
% R = 20*W;
% constRW20 = runBatchIEW('N',25, 'R',R, 'W',W);
%% ----- Devices -----
% MIT5B3:
% W = 0.5;
% R = [1.5 3 6 12];
% MIT5B3 = runBatchIEW('R',R, 'W',W);
%% ----- Constant R, W; varying lambda -----
% Rs = 2;
% Ws = 0.4;
% lam = [20 200]/1e3; % Don't forget that the default units are um!!!
% varyLamR2W04 = runBatchIEW('N',N, 'R',Rs, 'W',Ws, 'lam',lam); % 6ks
% Rs = 3;
% Ws = 1;
% lam = [20 200]/1e3; % Don't forget that the default units are um!!!
% varyLamR3W1 = runBatchIEW('N',N, 'R',Rs, 'W',Ws, 'lam',lam);
% Rs = 10;
% Ws = 3;
% lam = [20 200]/1e3; % Don't forget that the default units are um!!!
% varyLamR10W3 = runBatchIEW('N',N, 'R',Rs, 'W',Ws, 'lam',lam); % 8ks
% Rs = 45;
% Ws = 20;
% lam = [20 200]/1e3; % Don't forget that the default units are um!!!
% varyLamR45W20 = runBatchIEW('N',N, 'R',Rs, 'W',Ws, 'lam',lam); % 6ks
%% ----- Constant R, W; varying b -----
% Rs = 5;
% Ws = 3;
% b = [20 200]/1e3; % Don't forget that the default units are um!!!
% varybR5W3 = runBatchIEW('N',N, 'R',Rs, 'W',Ws, 'b',b); % 26ks
% Rs = 2;
% Ws = 0.4;
% b = [20 200]/1e3; % Don't forget that the default units are um!!!
% varyb25W04 = runBatchIEW('N',N, 'R',Rs, 'W',Ws, 'b',b); % 5ks
%% ----- Check convergence of answer -----
% Rs = 10;
% Ws = 1;
% iewArgs = {'maxIter',3,'calcbsurf','iter','calcbedge','end'};
%
% crenN18 = runBatchIEW('R',Rs, 'W',Ws, 'crenN',18,'iewargs',iewArgs); % XXks
% crenN24 = runBatchIEW('R',Rs, 'W',Ws, 'crenN',24,'iewargs',iewArgs); % XXks
% crenN30 = runBatchIEW('R',Rs, 'W',Ws, 'crenN',30,'iewargs',iewArgs); % XXks
% crenN36 = runBatchIEW('R',Rs, 'W',Ws, 'crenN',36,'iewargs',iewArgs); % XXks
%
% varyCrenN_R10W1 = [crenN18, crenN24, crenN30, crenN36];
Rs = 45;
Ws = 20;
iewArgs = {'maxIter',3,'calcbsurf','iter','calcbedge','end'};
crenN18 = runBatchIEW('R',Rs, 'W',Ws, 'crenN',18,'iewargs',iewArgs); % XXks
crenN24 = runBatchIEW('R',Rs, 'W',Ws, 'crenN',24,'iewargs',iewArgs); % XXks
crenN30 = runBatchIEW('R',Rs, 'W',Ws, 'crenN',30,'iewargs',iewArgs); % XXks
crenN36 = runBatchIEW('R',Rs, 'W',Ws, 'crenN',36,'iewargs',iewArgs); % XXks
crenN42 = runBatchIEW('R',Rs, 'W',Ws, 'crenN',36,'iewargs',iewArgs); % XXks
varyCrenN_R45W20 = [crenN18, crenN24, crenN30, crenN36, crenN42];
catch ME
if emailSelf
sendGmail('[email protected]', 'batchIEW error', ...
{ME.identifier,ME.message});
end
end
if emailSelf
sendGmail('[email protected]', 'Simulations finished!')
end
% end