-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrunit2D.m
More file actions
172 lines (133 loc) · 3.91 KB
/
Copy pathrunit2D.m
File metadata and controls
172 lines (133 loc) · 3.91 KB
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
%The first part of this code sets defaults for the plots to look good
%The second part runs code to make plots.
%initial data
width = 5.1; % Width in inches
height = 3; % Height in inches
alw = 1; % AxesLineWidth
fsz = 18; % Fontsize
fna = 'Helvetica'; %Fontname
lw = 1.5; % LineWidth
msz = 8; % MarkerSize
interp = 'tex';
%pixs = get(0,'screensize');
%width = pixs(3)/2; height = pixs(4)/2-50;
%Close the figures
close all;
% The properties we've been using in the figures
set(0,'defaultLineLineWidth',lw); % set the default line width to lw
set(0,'defaultLineMarkerSize',msz); % set the default line marker size to msz
set(0,'defaultLineLineWidth',lw); % set the default line width to lw
set(0,'defaultLineMarkerSize',msz); % set the default line marker size to msz
set(0,'defaultAxesFontName',fna);
set(0,'defaultAxesFontSize',fsz);
set(0,'defaultTextInterpreter',interp);
% Set the default Size for display
defpos = get(0,'defaultFigurePosition');
set(0,'defaultFigurePosition', [defpos(1) defpos(2) width*100, height*100]);
% Set the defaults for saving/printing to a file
set(0,'defaultFigureInvertHardcopy','on'); % This is the default anyway
set(0,'defaultFigurePaperUnits','inches'); % This is the default anyway
defsize = get(gcf, 'PaperSize');
left = (defsize(1)- width)/2;
bottom = (defsize(2)- height)/2;
defsize = [left, bottom, width, height];
set(0, 'defaultFigurePaperPosition', defsize);
N=207;
nn=10;
bins = 200;%5*round(sqrt(N));
tic
%initialization
dosx=zeros(8,bins,3); dosy = dosx; dosz = dosx;
Jx = 1;
flag = 1;
type = 'xx';
run_script_2D
Ixx = I;
dosx=DE;
%Use all the densities of states to get best estimates
%dost = cat(1 ,dosx,dosxy,dosy );
%dost = cat(1 ,dosx,dosxy );
dos = dosx;
%dos = mean(dost);
doserr = std(dos,0,1).';
disp(mean(doserr))
disp(max (doserr))
%Plot DOS
fsz = 24;
%position = [pixs(3)/2 20 pixs(3)/2 pixs(4)/2-50];
h=figure;%('Position',position);
hold on;
plot(Ev,dos);
title(['DOS for Honeycomb Kitaev spinons: bins = ',num2str(bins),', N= ',num2str(N)])
xlabel('E');
ylabel('density of states');
hold off;
filename = ['2D_DOS_10^7_Jx_',num2str(round(100*Jx)),'over100'];
savefig(filename)
print(h, '-dpng', filename);
fsz = 18;
%Plot 3 ramans
%position = [0 0 pixs(3)/2 pixs(4)/2];
h=figure;%('Position',position);
hold on;
plot(2*Ev,Ixx);
%errorbar(Ev,Ipp+Imm+Ipm,errs(:,4)+errs(:,5)+errs(:,6));
title(['Raman Spectrum for Honeycomb Kitaev spinons: bins = ',num2str(bins),', N= ',num2str(N)])
xlabel('E');
ylabel('I(E)');
hold off;
filename = ['2D_Raman_',type,'_10^7_Jx_',num2str(round(100*Jx)),'over100'];
savefig(filename)
print(h, '-dpng', filename);
for Jx = [1.43,0.3]
dosx=zeros(8,bins,3); dosy = dosx; dosz = dosx;
flag = 0;
type = 'xx';
run_script_2D
Ixx = I;
dosx=DE;
% flag=0;
% type = 'yy';
% run_script_2D
% Iyy = I;
% dosy=DE;
flag = 0;
type = 'xy';
run_script_2D
Ixy = I;
dosxy=DE;
%Use all the densities of states to get best estimates
%dost = cat(1 ,dosx,dosxy,dosy );
dost = cat(1 ,dosx,dosxy );
%dost = dosx
dos = mean(dost);
doserr = std(dost,0,1).';
disp(mean(doserr))
disp(max (doserr))
%Plot DOS
%position = [pixs(3)/2 20 pixs(3)/2 pixs(4)/2-50];
h=figure;%('Position',position);
hold on;
plot(Ev,dos);
title(['DOS for Honeycomb Kitaev: bins = ',num2str(bins),', N= ',num2str(N),' Jx=',num2str(Jx)])
xlabel('E');
ylabel('density of states');
hold off;
filename=['2D_DOS_10^7_Jx_',num2str(round(100*Jx)),'over100'];
savefig(filename)
print(h, '-dpng', filename);
%Plot 3 ramans
%position = [0 0 pixs(3)/2 pixs(4)/2];
h=figure;%('Position',position);
hold on;
plot(2*Ev,Ixx,2*Ev,Ixy);
%errorbar(Ev,Ipp+Imm+Ipm,errs(:,4)+errs(:,5)+errs(:,6));
title(['Raman for Honeycomb Kitaev: bins=',num2str(bins),', N=',num2str(N),' Jx=',num2str(Jx)])
xlabel('E');
ylabel('I(E)');
hold off;
filename = ['2D_Raman_',type,'_10^7_Jx_',num2str(round(100*Jx)),'over100'];
savefig(filename)
print(h, '-dpng', filename);
end
toc