-
Notifications
You must be signed in to change notification settings - Fork 0
/
Schrodinger1D_ZB_T_Main.m
360 lines (281 loc) · 13.3 KB
/
Schrodinger1D_ZB_T_Main.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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%% last update 8November2019, lne %%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This program does only a big loop of the SchrodingerSolver over Temperature
% It plots various results and parameters over the Temperature
clear all
close all
clc
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Constants %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
h=6.62606896E-34; % Planck constant J.s
hbar=h/(2*pi);
e=1.602176487E-19; % charge de l electron Coulomb
m0=9.10938188E-31; % electron mass kg
c=2.99792458e8; % speed of light (m/s)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
StrainModel = 1; % Activate Strain model
Display_IB_Results = 0; % Switch to print or not the IB dipoles on the shell
Display_ISB_Results = 0; % Switch to print or not the ISB dipoles on the shell
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
n=3; % number of solution asked per model
ScF=0.1; % scaling factor to plot the wave function [Without Dimension]
dz=1E-10; % resolution of the grid [m]
F0=0;%1e7; % Electric field [Volt/meter]
T=0:50:400; % Temperature [Kelvin], react on the band gap Eg only
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Library; % load material parameter DB from "materialDB_ZB.csv"
ExtractParameters; % extract parameter from the Library
TernaryAlloy; % compute the ternary alloy
QuaternaryAlloy; % compute the quaternary alloy
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%% import the layer structure file %%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% first column is the material used from the "library"
% second column is the length of the layer in nm
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
input_file;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%% NOTHING TO CHANGE ANYMORE !!! %%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
for t=1:length(T)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%% Grabbing the parameters %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
zt = M(:,end)*1e-9; % conversion of the length from Angstrom to meter
Egt = M(:,idx_Eg6c) - (M(:,idx_alphaG)*T(t)^2) ./ (T(t)+M(:,idx_betaG)); %Eg = Eg0 - (a*T.^2)./(T + b);
VBOt = M(:,idx_VBO);
CBOt = Egt+VBOt; % CBO form band gap difference and temperature
Dsot = M(:,idx_Dso); % Spin-Orbit shift band parameter
%Ft = M(:,idx_F); % Gammac Luttinger parameter for the electron (used for k.p 8bands only)
g1t = M(:,idx_g1); % Gamma1 Luttinger parameter
g2t = M(:,idx_g2); % Gamma2 Luttinger parameter
g3t = M(:,idx_g3); % Gamma3 Luttinger parameter
EPt_K= M(:,idx_EP_K); % EP Kane
%EPt_L= M(:,idx_EP_L); % EP Luttinger (used for k.p 8bands only)
%Epsit= M(:,idx_Epsi); %(used for Poisson solver only)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Strain Model %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
at = M(:,idx_a); % lattice parameter
act = M(:,idx_ac); % Conduction band strain offset parameter
avt = M(:,idx_av); % Valence band strain offset parameter
bvt = M(:,idx_bv); % Valence band strain offset parameter
c11t = M(:,idx_c11); % strain parameter
c12t = M(:,idx_c12); % strain parameter
a0 = substrate(idx_a);
if StrainModel == 1
exxt = (a0-at)/a0; % eyyt = exxt;
ezzt = -2*c12t./c11t.*exxt;
else
exxt = (a0-at)/a0 * 0; % eyyt = exxt;
ezzt = -2*c12t./c11t.*exxt;
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Discretisation %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% here, I descretize the grid z and a lot of other parameters
z=0; V0=CBOt(1); Eg=Egt(1);Dso=Dsot(1);
%Epsi=Epsit(1); F=Ft(1);
g1=g1t(1); g2=g2t(1); g3=g3t(1); EP_K=EPt_K(1); %EP_L=EPt_L(1); %me(1)=met(1);% mhh(1)=mhh_t(1);
ac=act(1); av=avt(1); bv=bvt(1); exx=exxt(1); ezz=ezzt(1);
for i=1:length(zt)
zv = (z(end)+dz) : dz : (z(end) + zt(i)) ;
z = [ z zv ];
V0 = [ V0 ones(size(zv)) * CBOt(i) ];
Eg = [ Eg ones(size(zv)) * Egt(i) ];
EP_K= [ EP_K ones(size(zv)) * EPt_K(i) ];
% EP_L= [ EP_L ones(size(zv)) * EPt_L(i) ];
Dso = [ Dso ones(size(zv)) * Dsot(i) ];
% F = [ F ones(size(zv)) * Ft(i) ];
g1 = [ g1 ones(size(zv)) * g1t(i) ];
g2 = [ g2 ones(size(zv)) * g2t(i) ];
g3 = [ g3 ones(size(zv)) * g3t(i) ];
ac = [ ac ones(size(zv)) * act(i) ];
av = [ av ones(size(zv)) * avt(i) ];
bv = [ bv ones(size(zv)) * bvt(i) ];
exx = [ exx ones(size(zv)) * exxt(i) ];
ezz = [ ezz ones(size(zv)) * ezzt(i) ];
end
V0=V0-min(V0); % Shift the band in order to get the bottom of the well at zero
V0=(F0*z)+V0; % adding the electric field to the potential
eyy = exx;
DCBO = -abs(ac).*(exx+eyy+ezz) ; % shift of the CB due to strain
DVBOHH = +abs(av).*(exx+eyy+ezz) - abs(bv).*(exx-ezz) ; % shift of the VB-HH due to strain
DVBOLH = +abs(av).*(exx+eyy+ezz) + abs(bv).*(exx-ezz) ; % shift of the VB-LH due to strain
DVBOSO = +abs(av).*(exx+eyy+ezz) ; % shift of the VB-SO due to strain
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%% Selection of the model %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
[Ec,psic] = Schrod_2bands_Kane_f(z,V0,Eg,EP_K,Dso,n,ac,av,bv,exx,ezz);
EcT(:,t)=Ec;
% m=m(z), take care, the mhh in the z-direction is different from mhh in 3D
mhhL= 1 ./ (g1-2*g2);
[Ehh,psihh] = Schrod_1band_f(z,-(V0-Eg+DVBOHH),mhhL,n); % m = m(z) the HH are all the time parabolic in ZB-001, even with strain!
Ehh=-Ehh;
EhhT(:,t)=Ehh;
[Elh,psilh] = Schrod_2bands_Luttinger_Kohn_f(z,V0,Eg,Dso,g1,g2,g3,n,av,bv,exx,ezz);
ElhT(:,t)=Elh;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
computesISBdipoles;
computesIBoverlap;
EEc_hhT(:,:,t) = EEc_hh; % storing of the interband transition vs temperature
EEc_lhT(:,:,t) = EEc_lh; % storing of the interband transition vs temperature
EEhh_lhT(:,:,t) = EEhh_lh; % storing of the interband transition vs temperature
EEc_cT(:,:,t) = EEc_c; % storing of the intersubband transition vs temperature
EEhh_hhT(:,:,t) = EEhh_hh; % storing of the intersubband transition vs temperature
EElh_lhT(:,:,t) = EElh_lh; % storing of the intersubband transition vs temperature
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c=1;Egt=Eg(1);V0t=V0(1);DCBOt=DCBO(1);
for i=1:length(z)
if V0t~=V0(i)
Egt(c+1)=Eg(i);
V0t(c+1)=V0(i);
DCBOt(c+1)=DCBO(i);
DVBOHHt(c+1)=DVBOHH(i);
DVBOLHt(c+1)=DVBOLH(i);
c=c+1;
end
end
EgtT(:,t) = Egt; % storing of the bandgag vs temperature
V0tT(:,t) = V0t; % storing of the potential vs temperature
DCBOtT(:,t) = DCBOt; % storing of the strain potential CB vs temperature
DVBOHHtT(:,t)= DVBOHHt; % storing of the strain potential VB heavy hole vs temperature
DVBOLHtT(:,t)= DVBOLHt; % storing of the strain potential VB light hole vs temperature
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Display Results %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
if Display_IB_Results == 1
PrintIBResults;
end
if Display_ISB_Results == 1
PrintISBResults;
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% figures %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
figure('position',[10 50 1200 900]);
FS=10;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
subplot(3,3,1,'fontsize',FS)
hold on;grid on;
for i=1:length(EcT(:,1))
plot(T,EcT(i,:),'o-')
ll{i}=strcat('e',num2str(i));
end
legend(ll)
xlabel('Temperature (K)')
ylabel('Ec (eV)')
title('electron in conduction band')
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
subplot(3,3,2,'fontsize',FS)
hold on;grid on;
for i=1:length(EhhT(:,1))
plot(T,EhhT(i,:),'o-')
ll{i}=strcat('hh',num2str(i));
end
legend(ll)
xlabel('Temperature (K)')
ylabel('Ehh (eV)')
title('heavy hole in valence band')
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
subplot(3,3,3,'fontsize',FS)
hold on;grid on;
for i=1:length(ElhT(:,1))
plot(T,ElhT(i,:),'o-')
ll{i}=strcat('lh',num2str(i));
end
legend(ll)
xlabel('Temperature (K)')
ylabel('Elh (eV)')
title('light hole in valence band')
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
subplot(3,3,4,'fontsize',FS)
hold on;grid on;
for i=1:length(EEc_hhT(1,:,1))
plot(T,squeeze(EEc_hhT(i,i,:)),'o-')
s1{i}=strcat('e',num2str(i),'-hh',num2str(i));
end
for i=1:length(EEc_lhT(1,:,1))
plot(T,squeeze(EEc_lhT(i,i,:)),'o-')
s2{i}=strcat('e',num2str(i),'-lh',num2str(i));
end
xlabel('Temperature (K)')
ylabel('Ec-Eh (eV)')
title('Interband transition')
legend([s1 s2])
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
subplot(3,3,5,'fontsize',FS)
hold on;grid on;
for i=1:length(EEc_cT(:,1,1))
for j=1:length(EEc_cT(1,:,1))
if j>i
plot(T,squeeze(EEc_cT(i,j,:)),'o-')
end
end
end
xlabel('Temperature (K)')
ylabel('Ec-Ec (eV)')
title('Intersubband transition in CB')
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
subplot(3,3,6,'fontsize',FS)
hold on;grid on;
for i=1:length(EEhh_hhT(:,1,1))
for j=1:length(EEhh_hhT(1,:,1))
if j>i
plot(T,squeeze(EEhh_hhT(i,j,:)),'o-')
plot(T,squeeze(EElh_lhT(i,j,:)),'o-')
end
end
end
xlabel('Temperature (K)')
ylabel('Eh-Eh (eV)')
title('Intersubband transition in VB')
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
subplot(3,3,7,'fontsize',FS)
hold on;grid on;
for i=1:length(EgtT(:,1))
plot(T,EgtT(i,:),'bo-')
plot(T,EgtT(i,:)+DCBOtT(i,:)-DVBOHHtT(i,:),'mo--')
plot(T,EgtT(i,:)+DCBOtT(i,:)-DVBOLHtT(i,:),'co--')
end
xlabel('Temperature (K)')
ylabel('Eg (eV)')
title('Band-gap')
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
subplot(3,3,8,'fontsize',FS)
hold on;grid on;
for i=1:length(V0tT(:,1))
plot(T,V0tT(i,:),'bo-')
plot(T,V0tT(i,:)+DCBOtT(i,:),'bo--')
end
xlabel('Temperature (K)')
ylabel('CBO (eV)')
title('Conduction Band offset')
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
subplot(3,3,9,'fontsize',FS)
hold on;grid on;
for i=1:length(EgtT(:,1))
plot(T,V0tT(i,:)-EgtT(i,:),'bo-')
plot(T,V0tT(i,:)-EgtT(i,:)+DVBOHHtT(i,:),'mo--')
plot(T,V0tT(i,:)-EgtT(i,:)+DVBOLHtT(i,:),'co--')
end
xlabel('Temperature (K)')
ylabel('VBO (eV)')
title('Valence Band offset')
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%