File: lesson_gw1.html

package info (click to toggle)
abinit 7.8.2-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 278,292 kB
  • ctags: 19,095
  • sloc: f90: 463,759; python: 50,419; xml: 32,095; perl: 6,968; sh: 6,209; ansic: 4,705; fortran: 951; objc: 323; makefile: 43; csh: 42; pascal: 31
file content (1413 lines) | stat: -rw-r--r-- 66,477 bytes parent folder | download
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
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
<html>
<head>
<title>First GW tutorial</title>
</head>
<body bgcolor="#ffffff">
<hr>
<h1>ABINIT, first tutorial on GW :</h1>
<h2>The quasi-particle band structure of Silicon, in the GW approximation </h2>
<hr>
<p>
This lesson aims at showing how to calculate self-energy corrections to the DFT Kohn-Sham eigenvalues in the GW approximation.
<p> 
A brief description of the formalism and of the equations implemented in the code 
can be found in the <a href="theory_mbt.html">GW_notes</a>.
<p>
The different formulas of the GW formalism have been written in a pdf
document by Valerio Olevano (who also wrote the first version of this tutorial), see ~abinit/doc/theory/gwa.pdf .
<p>
For a much more consistent discussion of the theoretical aspects of the GW method we refer the reader to the review
<ul>
 <li>"Quasiparticle calculations in solids", by Aulbur WG, Jonsson L, Wilkins JW,
       <br> in Solid State Physics 54, 1-218 (2000),
      <br>
      also available at
      <a href="http://ftp.abinit.org/docs/quasiparticle_calculations_in_solids.pdf.bz2">
               http://ftp.abinit.org/docs/quasiparticle_calculations_in_solids.pdf.bz2</a> 
</ul>

<p>
It is suggested to
<a href="../users/acknowledgments.html">acknowledge</a> the efforts of developers of the GW part of ABINIT, by citing
<br><cite>
X. Gonze, G.-M. Rignanese, M. Verstraete, J.-M. Beuken, Y. Pouillon,
R. Caracas, F. Jollet, M. Torrent, G. Zerah, M. Mikami, Ph. Ghosez,
M. Veithen, J.-Y. Raty, V. Olevano, F. Bruneval, L. Reining,
R. Godby, G. Onida, D.R. Hamann, and D.C. Allan.
Zeit. Kristallogr. 220, 558-562 (2005).</cite>
<br>

<p>
The user should be familiarized with the four basic lessons of ABINIT, see the <a href="welcome.html">tutorial home page</a>.
<p>
After this first tutorial on GW, you should read the <a href="lesson_gw2.html">second tutorial on GW</a>.

<p>
This lesson should take about 2 hours.

<h5>Copyright (C) 2002-2014 ABINIT group (VOlevano,XG)
<br> This file is distributed under the terms of the GNU General Public License, see
~abinit/COPYING or <a href="http://www.gnu.org/copyleft/gpl.txt">
http://www.gnu.org/copyleft/gpl.txt </a>.
<br> For the initials of contributors, see ~abinit/doc/developers/contributors.txt .
</h5>

<script type="text/javascript" src="list_internal_links.js"> </script>

<h3><b>Content of the lesson GW</b></h3>
<ul>
  <li><a href="#1">1.</a> General example of well converged GW calculation.
  <li><a href="#2">2.</a> Calculation of the Kohn-Sham structure (KSS file) and of the screening (SCR file).
  <li><a href="#3">3.</a> Convergence on the number of planewaves in the wavefunctions to calculate the Self-Energy.
  <li><a href="#4">4.</a> Convergence on the number of planewaves to calculate &Sigma;<sub>x</sub>.
  <li><a href="#5">5.</a> Convergence on the number of bands to calculate &Sigma;<sub>c</sub>.
  <li><a href="#6">6.</a> Convergence on the number of planewaves in the wavefunctions to calculate &epsilon;<sup>-1</sup>.
  <li><a href="#7">7.</a> Convergence on the number of bands to calculate &epsilon;<sup>-1</sup>.
  <li><a href="#8">8.</a> Convergence on the dimension of the &epsilon;<sup>-1</sup> matrix.
  <li><a href="#9">9.</a> Calculation of the GW corrections for the band gap in &Gamma;.
  <li><a href="#10">10.</a> Advanced features: calculations without plasmon-pole models, and self-consistency.
</ul>
<hr>
<h4><a name="1"></a></h4>
<h3><b> 1. Computation of the Silicon band gap at &Gamma;, using a GW calculation. </b></h3>

<p><i>Before beginning, you might consider to work in a different subdirectory
  as for the other lessons. Why not "Work_gw1" ?</i>

<p>
At the end of <a href="lesson_base3.html#35">lesson 3</a>, we computed the Kohn-Sham band structure of silicon. 
In this approximation, the band dispersion as well as the band widths are reasonable, 
but the band gaps are qualitatively wrong. 
Now, we will compute the band gaps much more accurately, using the so-called GW approximation.
<p>
We start by an example, in which we show how to perform in a single input file the calculation of
the ground state density, the Kohn Sham band structure, the screening, and the 
the GW corrections.
<!--
for <i>one</i> k-point for the highest occupied and the lowest empty bands. 
-->
We use reasonable values for the parameters of the calculation. 
The discussion on the convergence tests is postponed to the next paragraphs.
We will see that GW calculations are MUCH MORE time-consuming than the computation of the Kohn-Sham eigenvalues.
<p>
So, let us run immediately this calculation, and while it is running, we will explain what has been done.

<p>
In the directory ~abinit/tests/tutorial/Input/Work_gw1, copy the files ~abinit/tests/tutorial/Input/tgw1_x.files
and tgw1_1.in, and modify the tgw1_x.files file as usual (see lesson 1).
<p>
Then, issue:
<pre>
abinit < tgw1_x.files >& tgw1_1.log &
</pre>

<p>
It is very important to run this job in background. 
Indeed, a PC Intel PIV/2.2 GHz will take about 6 minutes to complete it. 
In the meantime, you should read the following.

<h4><a name="1a"></a></h4>
<h4><b> 1.a The three steps of a GW calculation.</b></h4>

<p>

In order to perform a standard one-shot GW calculation one has to:
<ol>
 <li>
   Run a converged Ground State calculation to obtain the self-consistent density.
 </li>
 <br>
 <li>
  Perform a non self-consistent run to compute the Kohn-Sham eigenvalues
  and eigenfunctions on a regular grid of k-points
 </li>
 <br>
 <li>
   Use <a href="../input_variables/vargs.html#optdriver" target="kwimg">optdriver</a>=3 to compute
   the independent-particle susceptibility (&chi;<sup>0</sup>) on a regular grid of <b>q</b>-points, for at least two frequencies
   (usually, &omega;=0 and a large purely imaginary frequency - of the order of the plasmon frequency, a dozen of eV).
   The inverse dielectric matrix (&epsilon;<sup>-1</sup>) is then obtained via matrix inversion
   and stored in an external file (SCR).
 </li>
 <br>
 <li>
 Use <a href="../input_variables/vargs.html#optdriver" target="kwimg">optdriver</a>=4 to compute
 the self-energy (&Sigma;) matrix element at the given k-point in order to obtain the GW quasiparticle energies
 </li>
</ol>

The flowchart diagram of a standard one-shot run is depicted in the figure below.

<p align="center">
    <!--
    <object type="image/svg+xml" data=./lesson_gw1/gw_flowchart.svg width="444" height="24" class="img">
    -->
    <img src=./lesson_gw1/gw_flowchart.png>
    </object>
</p>


The input file tgw1_1.in has precisely that structure: there are three datasets.
<p>
The first dataset performs a rather usual SCF calculation and produces 
a specialized file, tgw1_xo_DS1_KSS (_KSS stands for Kohn-Sham Structure), that
contains the information needed to start step 2. 
The second dataset drives the computation of susceptibility and dielectric matrices,
producing another specialized file, tgw1_xo_DS2_SCR (_SCR for "Screening", actually 
the inverse dielectric matrix &epsilon;<sup>-1</sup>). 
Then, in the third dataset, the code calculates the quasiparticle energies for the 4th and 5th bands at the &Gamma; point.

<p>
So, you can edit this tgw1_1.in file.

<p>
The dataset-independent part of this file (the last half of the file),
contains the usual set of input variables describing the cell,
atom types, number, position, planewave cut-off energy, SCF convergence
parameters driving the Kohn-Sham band structure calculation. 
Then, for the three datasets, you will find specialized additional input variables.

<h4><a name="1b"></a></h4>
<h4><b> 1.b Generating the Kohn-Sham band structure: the KSS file.</b></h4>

<p>
In dataset 1, apart from the usual input variables we are acquainted to
through the previous tutorials, there is a new input variable:

<pre>
nbandkss -1        # Number of bands in KSS file (-1 means the maximum possible)
</pre>

<p>
This input variable tells the program to calculate the Kohn-Sham electronic structure
by perforing the full diagonalization of the Kohn-Sham Hamiltonian evaluated at the converged density
and calculated in each one of the k-points of the grid.
Note that this diagonalization is performed in a routine (outkss.F90)
separated from the usual SCF cycle, so that there is
additional control of the wavefunction actually stored, if needed.
In particular, the number of bands to be computed in this routine
is NOT determined by the usual input variable
<a href="../input_variables/varbas.html#nband" target="kwimg">nband</a>.

<p>
<a href="../input_variables/vargw.html#nbandkss" target="kwimg">nbandkss</a>
is the key variable to create a _KSS file. 
If it is zero, no _KSS file will be created. -1 lead to the generation
(full diagonalization of the Kohn-Sham hamiltonian) and storage of the maximum possible
number of states (or bands) common to all points. 
This depends on the energy cutoff <a href="../input_variables/varbas.html#ecut" target="kwimg">ecut</a>
which also determines the dimension of the Kohn-Sham hamiltonian, and might lead to quite time-consuming calculations. 
One can reduce the load in the diagonalization by requiring less states by carring out
partial diagonalizations of the Kohn-Sham hamiltonian.
This can be done by the use of <a href="../input_variables/varfil.html#kssform" target="kwimg">kssform</a>=3,
and is to be preferred when the number of planewaves is getting large, see later (try 
both <a href="../input_variables/varfil.html#kssform" target="kwimg">kssform</a>=1 and 
<a href="../input_variables/varfil.html#kssform" target="kwimg">kssform</a>=3 when you start calculations beyond the tutorial).

<p>
The variable <a href="../input_variables/vargw.html#npwkss" target="kwimg">npwkss</a>
governs the size of the plane wave basis used to store the wavefunctions in the KSS file.
The default value leaves the number of plane waves equal to the one of the SCF ground state
calculation determined by the <a href="../input_variables/varbas.html#ecut" target="kwimg">ecut</a> variable.
The  variable <a href="../input_variables/vargw.html#npwkss" target="kwimg">npwkss</a>
reduces the size of the KSS file but it does NOT reduce the load of
the diagonalization since the dimension of the Kohn-Sham hamiltonian
is always controlled by <a href="../input_variables/varbas.html#ecut" target="kwimg">ecut</a>
and <a href="../input_variables/vargw.html#npwkss" target="kwimg">npwkss</a> acts only
as a post-diagonalization cutoff.
Please also notice that in the GW calculation the plane waves basis is always &Gamma; centered  and it is the same
for all the considered k-points, while in the Ground State calculation the plane waves basis changes for each
k-point, each time being centered on the given k-point.

<p>
Another relevant input variable, related also to the specific set up of the _KSS file
is <a href="../input_variables/varfil.html#kssform" target="kwimg">kssform</a>.
In this case we are using the value 1, which corresponds to ask
a KSS (Kohn-Sham electronic Structure file) through a diagonalization of the Kohn-Sham hamiltonian. 
The value 3 corresponds to ask a KSS through the normal Conjugate Gradient algorithm to be carried
out also for all the empty states we need in the GW calculation (in much the same way of what is done when calculating
a band plot, paying attention at the value used for the tolerance on the residual on the wavefunctions).
This could be interesting for systems having very large Kohn-Sham Hamiltonians, that is very large cutoff energies. 
However, if the number of states needed in the GW calculation is large, it
might be more convenient to carry out the diagonalization even in this case.

<p>
In this first dataset, we asked also the self-consistent cycle to be done for nine bands.
<pre>
nband1      9         # Number of (occ and empty) bands to be computed
</pre>
Only four bands would be needed for Si.
The purpose of defining more bands in the ground-state run
is to verify that at least the first Kohn-Sham eigenvalues obtained through
the diagonalization are sufficiently close to those determined
(with a residual) in the self-consistent procedure. 
The comparison is done automatically, and one should check if there is something
wrong when a warning message appears.

<p>
Finally, the input variable <a href="../input_variables/vargw.html#symmorphi" target="kwimg">symmorphi</a>
is also used in this datafile, where it is set to 0.
Please, read the corresponding section of the help file. 
This restriction of symmetry operations to symmorphic ones for the GW part
has been waived since the tutorial was originally written. 
For your production runs, please use 
(<a href="../input_variables/vargw.html#symmorphi" target="kwimg">symmorphi</a>=1)
whenever you generate the KSS file, or perform the calculation of the screening or the self-energy.

<h4><a name="1c"></a></h4>
<h4><b> 1.c Generating the screening : the SCR file.</b></h4>

<p>
In dataset 2, the calculation of the screening (susceptibility, dielectric matrix) is performed.
We need to set <a href="../input_variables/vargs.html#optdriver" target="kwimg">optdriver</a>=3 to do that:
<pre>
optdriver2  3        # Screening calculation
</pre>

<p>
The <a href="../input_variables/varfil.html#getkss" target="kwimg">getkss</a> input variable
is similar to other "get" input variables of ABINIT :
<pre>
getkss2     -1       # Obtain KSS file from previous dataset
</pre>
In this case, it tells the code to use the KSS file calculated in the previous dataset.

<p>
Then, three input variables describe the computation :
<pre>
nband2      25       # Bands used in the screening calculation
ecutwfn2    2.1      # Cut-off energy of the planewave set to represent the wavefunctions
ecuteps2    3.6      # Cut-off energy of the planewave set to represent the dielectric matrix
</pre>

In this case, we use 25 bands to calculate the Kohn-Sham response function $\chi^{(0)}_{KS}$.
We use a cut-off
<a href="../input_variables/vargw.html#ecutwfn" target="kwimg">ecutwfn</a>=2.1 Hartree, giving
89 planewaves to represent the wavefunctions in the calculation of $\chi^{(0)}_{KS}$.
The dimension of $\chi^{(0)}_{KS}$, as well as all the other matrices ($\chi$, $\epsilon$) is
determined by <a href="../input_variables/vargw.html#ecuteps" target="kwimg">ecuteps</a>=3.6 Hartree, giving 169 planewaves.

<p>
Finally, we define the frequencies at which the screening must be evaluated: 
&omega;=0.0 eV and the imaginary frequency &omega;= i 16.7 eV.  
The latter is determined by the input variable
<a href="../input_variables/vargw.html#ppmfrq" target="kwimg">ppmfrq</a>
<pre>
ppmfrq2    16.7 eV  # Imaginary frequency where to calculate the screening
</pre>
The two frequencies are used to calculate the plasmon-pole model parameters.
For the non-zero frequency it is recommended to use
a value close to the plasmon frequency for the plasmon-pole model to work well. 
Plasmons frequencies are usually close to 0.5 Hartree.
The parameters for the screening calculation are not far from
the ones that give converged Energy Loss Function (-Im \epsilon^-1_00) spectra,
So that one can start up by using indications from EELS calculations existing in literature.

<h4><a name="1d"></a></h4>
<h4><b> 1.d Computing the GW energies.</b></h4>

<p>
In dataset 3 the calculation of the Self-Energy matrix elements is performed. 
One needs to define the driver option, as well as the _KSS and _SCR files.
<pre>
optdriver3  4        # Self-Energy calculation
getkss3     -2       # Obtain KSS file from dataset 1
getscr3     -1       # Obtain SCR file from previous dataset
</pre>

The <a href="../input_variables/varfil.html#getscr" target="kwimg">getscr</a> input variable
is similar to other "get" input variables of ABINIT.

<p>
Then, comes the definition of parameters needed to compute the self-energy. 
As for the computation of the susceptibility and dielectric matrices, 
one must define the set of bands, and two sets of planewaves:

<pre>
nband3      100      # Bands to be used in the Self-Energy calculation
ecutwfn3    5.0      # Planewaves to be used to represent the wavefunctions
ecutsigx3   6.0      # Dimension of the G sum in Sigma_x
                     # (the dimension in Sigma_c is controlled by npweps)
</pre>
In this case,
<a href="../input_variables/varbas.html#nband" target="kwimg">nband</a>
controls the number of bands used to calculate the correlation part of the Self-Energy.
<a href="../input_variables/vargw.html#ecutwfn" target="kwimg">ecutwfn</a>
defines (as for
<a href="../input_variables/vargs.html#optdriver" target="kwimg">optdriver</a>=3)
the number of planewaves used to represent the wavefunctions.
<a href="../input_variables/vargw.html#ecutsigx" target="kwimg">ecutsigx</a>
gives the number of planewaves used to calculate &sigma;<sub>x</sub> (the exchange part of the self-energy).
The size of the planewave set used to compute &Sigma;<sub>c</sub> (the correlation part of the self-energy) is controlled by
<a href="../input_variables/vargw.html#ecuteps" target="kwimg">ecuteps</a>
(cannot be larger than the value used to generate the SCR file). 
However, it is taken equal to the number of planewave of &Sigma;<sub>x</sub> if the latter is smaller than the one for &Sigma;<sub>c</sub>.

<p>
Then, come the parameters defining the k-points and the band indices
for which the quasiparticle energies will be computed:
<pre>
nkptgw3      1               # number of k-point where to calculate the GW correction
kptgw3                       # k-points
  -0.125    0.000    0.000
bdgw3       4  5             # calculate GW corrections for bands from 4 to 5
</pre>
<br>
<a href="../input_variables/vargw.html#nkptgw" target="kwimg">nkptgw</a>
defines the number of k-points for which the GW corrections will be computed.
The k-point reduced coordinates are specified in
<a href="../input_variables/vargw.html#kptgw" target="kwimg">kptgw</a>.
At present, they MUST belong to the k-mesh used to generate the KSS file. 
Hence if you wish the GW correction in a particular k-point, you should choose a grid containing it. 
Usually this is done by taking the k-point grid where the
convergence is achieved and shifting it such as at least one k-point
is placed on the wished position in the Brillouin zone.
<a href="../input_variables/vargw.html#bdgw" target="kwimg">bdgw</a>
gives the minimum/maximum band whose energies are calculated for the given k-point.
<p>
There is an additional parameter, called
<a href="../input_variables/vargw.html#zcut" target="kwimg">zcut</a>, related to the self-energy computation.
It is meant to avoid some divergencies that might occur in the calculation due to integrable poles along the integration path.


<h4><a name="1e"></a></h4>
<h4><b> 1.e Examination of the output file.</b></h4>

<p>
Let us hope that your calculation has been completed, and that we can examine the output file. 
Open tgw1_1.out in your preferred editor.     

<p>
The first departure from the usual information present in the output file
for usual GS calculations appears after the SCF cycles of DATASET 1 :
<pre>
======================================================================
 Calculating and writing out Kohn-Sham electronic Structure file
 Using diagonalized wavefunctions and energies (kssform=1)
 number of Gamma centered plane waves    471
 number of Gamma centered shells     40
 number of bands    283
 maximum angular momentum components      3
</pre>
This section was issued when the Hamiltonian at the different k points
was diagonalized, after the SCF cycles, in order to generate the KSS
file. Then, comes the output of the numerous eigenvalues at the different
k-points. Finally, the normalisation and orthogonalisation
of the eigenvectors is tested. 
One should obtain close to perfect normalisation and orthogonalisation at that stage :
<pre>
 Test on the normalization of the wavefunctions
  min sum_G |a(n,k,G)| =  1.000000
  max sum_G |a(n,k,G)| =  1.000000
 Test on the orthogonalization of the wavefunctions
  min sum_G a(n,k,G)* a(n',k,G) =  0.000000
  max sum_G a(n,k,G)* a(n',k,G) =  0.000000
</pre>
Of course, if we post-cutoff the wavefunctions by using a reduced
value for <a href="../input_variables/vargw.html#npwkss" target="kwimg">npwkss</a>
this results in a reduction in the orthonormalization of the wavefunctions.

<p>
Then, follows the usual information for the dataset 1.

The second dataset drives the computation of the susceptibility
and dielectric matrices, in preparation of the GW energy calculation done in dataset 3. 
After some general information (origin of KSS file, header, description of unit cell),
comes the echo of Kohn-Sham eigenenergies (in eV),
and then the evaluation of the wavefunction normalisation
and orthogonalisation USING ONLY THE PLANEWAVE SET DEFINED
BY <a href="../input_variables/vargw.html#ecutwfn">ecutwfn</a>,
<a href="../input_variables/vargw.html#npwwfn">npwwfn</a>,
or <a href="../input_variables/vargw.html#nshwfn">nshwfn</a>.
Thus, there is no surprise that these relations are not fulfilled:
<pre>
 test on the normalization of the wavefunctions
 min sum_G |a(n,k,G)| =  0.497560
 max sum_G |a(n,k,G)| =  0.995840
 test on the orthogonalization of the wavefunctions
 min sum_G a(n,k,G)* a(n",k,G) =  0.000000 
 max sum_G a(n,k,G)* a(n",k,G) =  0.179458  
</pre>
The squared norm of one of the wavefunctions is even as low as one half! 
This should lead us to question the choice of <a href="../input_variables/vargw.html#ecutwfn">ecutwfn</a> that we have made. 
One should do a convergence study, see later. With the increase of memory/disk
space, in the last years, it appears that in most of the cases, it is fine to
set <a href="../input_variables/vargw.html#ecutwfn">ecutwfn</a> to the maximal value,
that is <a href="../input_variables/varbas.html#ecut">ecut</a>, which has become the default value.

<p>
The parameters of the FFT grid needed to represent the wavefunctions
and to compute their convolution (so as to get the screening matrices) are then given.

<p>
Then, the grid of q-point (in the Irreducible part of the Brillouin Zone) on which the susceptibility
and dielectric matrices will be computed is given.
It is a set of BZ points defined as all the possible differences
among the k-points (<i>q=k-k'</i>) of the grid chosen to generate the KSS file.
From the last statement it is clear the interest to choose
homogenous k-point grids, in order not to explose the number of q-points.

<p>
On the basis of only the average density, one can obtain the classical Drude plasmon frequency.
The next lines calculate the average density of the system, and evaluate the r_s parameter,
then compute the Drude plasmon frequency.
This is the value used by default for the parameter
<a href="../input_variables/vargw.html#ppmfrq" target="kwimg">ppmfrq</a>.
It is in fact the second frequency where the code calculates
the dielectric matrix to adjust the plasmon-pole model parameters.
It has been found that Drude plasma frequency is a reasonable value where to adjust the model. 
The control over this parameter is however left to the user in order to check that the result does not change
when changing <a href="../input_variables/vargw.html#ppmfrq" target="kwimg">ppmfrq</a>.
If it is the case, then the plasmon-pole model is not appropriated
and one should go beyond by taking into account
a full dynamical dependence in the screening (see later, the contour-deformation method). 
However, the plasmon-pole model has been found to work well
for a very large range of systems when focusing only on the real part of the GW corrections.

<p>
At the end of the screening calculation, the macroscopic dielectric constant is printed:
<pre>
  dielectric constant =  13.8483
  dielectric constant without local fields =  15.5527
</pre>
Note that the convergence in the dielectric constant DOES NOT guarantee the convergence in the GW corrections.
In fact, the dielectric constant is representative of only one element i.e. the head of the full dielectric matrix. 
Even if the convergence on the dielectric constant with local fields takes somehow
into account also other non-diagonal elements.
In a GW calculation all the &epsilon;<sup>-1</sup> matrix is used to build the Self-Energy operator.
<br>
The dielectric constant here reported is the so-called RPA dielectric constant due to the electrons.
Although evaluated at zero frequency, it is understood that the ionic response is not included. 
This is to be contrasted with the one computed in ANADDB).
The RPA dielectric constant restricted to electronic effects is also not the same as the one computed in the RESPFN
part of ABINIT, that includes exchange-correlation effects.

<p>
We enter now the third dataset.
As for dataset 2, after some general information (origin of KSS file, header, description of unit cell),
the echo of Kohn-Sham eigenenergies (in eV), the evaluation of the wavefunction normalisation,
the description of the FFT grid and jellium parameters, there is the echo of parameters for the plasmon-pole
model, and the inverse dielectric function (the screening).
The self-energy operator has been constructed, and one can evaluate the GW energies, for each of the states.

<p>
The results follows :
<pre>
k =   -0.125   0.000   0.000
 Band     E0  &lt;VxcLDA&gt;   SigX SigC(E0)    Z dSigC/dE  Sig(E)    E-E0     E
    4   5.616 -11.115 -12.334   1.257   0.775  -0.290 -11.085   0.030   5.646
    5   8.357 -10.140  -5.951  -3.336   0.779  -0.284  -9.476   0.664   9.021

 E^0_gap          2.741
 E^GW_gap         3.375
 DeltaE^GW_gap    0.634
</pre>
For the desired k-point, state 4, then state 5, one finds different information:
<ul>
 <li>E0 is the Kohn-Sham eigenenergy </li>
 <br>
 <li>VxcLDA gives the average Kohn-Sham exchange-correlation potential </li>
 <br>
 <li>SigX gives the exchange contribution to the self-energy </li>
 <br>
 <li>SigC(E0) gives the correlation contribution to the self-energy, evaluated at the Kohn-Sham eigenenergy</li>
 <br>
 <li>Z is the renormalisation factor </li>
 <br>
 <li>dSigC/dE is the energy derivative of SigC with respect to the energy</li>
 <br>
 <li>SigC(E) gives the correlation contribution to the self-energy,
     evaluated at the GW energy</li>
 <br>
 <li>E-E0 is the difference between GW energy and Kohn-Sham eigenenergy </li>
 <br>
 <li>E is the GW energy </li>
</ul>

In this case, the gap is also analyzed: E^0_gap is the direct Kohn-Sham gap at that k point
(and spin, in the case of spin-polarized calculations),
E^GW_gap is the GW one, and DeltaE^GW_gap is the difference.
This direct gap is always computed between the band whose number is equal to the
number of electrons in the cell divided by two (integer part, in case of spin-polarized calculation),
and the next one. (Warning: for a metal, these two bands do not systematically lie
below and above the Fermi energy - but the concept of a direct gap is not relevant in that case).

<p>
It is seen that the average Kohn-Sham exchange-correlation potential
for the state 4 (a valence state) is very close to the exchange
self-energy correction. For that state, the correlation correction is small,
and the difference between Kohn-Sham and GW energies is also small (43 meV).
By contrast, the exchange self-energy is much smaller than the average Kohn-Sham
potential for the state 5 (a conduction state), but the correlation
correction is much larger than for state 4. On the whole, the
difference between Kohn-Sham and GW energies is not very large, but nevertheless,
it is quite important when compared with the size of the gap.
<hr>


<h3><p><b><a name="2">2</a>
Preparing convergence studies : Kohn-Sham structure (KSS file) and screening (SCR file).
</b></h3>

In the following sections, we will perform different convergence studies.
In order to keep the CPU time at a reasonable level, we will use fake KSS and screening data.
Moreover we will only consider the correction at the &Gamma; point only. 
In this way, we will be able to verify convergence aspects that could
be very cumbersome (at least in the framework of a tutorial) if more k-points were used. 
Testing the convergence with a &Gamma; point only grid of k point represents a convenient approach
although some caution should always be used.

<p>
In directory ~abinit/tests/tutorial/Input/Work_gw1, copy the file
../tgw1_2.in, and modify the tgw1_x.files file as usual.
Edit the tgw1_2.in file, and take the time to examine it.
Note that the SCF cycles have been disconnected from the generation of the KSS file.
<p>
Then, issue:
<pre>
abinit < tgw1_x.files >& tgw1_2.log &
</pre>
This small job lasts about 10 secs on a PC PIV Intel 2.2 GHz.

<p>
After this step you will need the KSS and SCR files produced in this run for the next runs (up to 6.8).
Move tgw1o_DS2_KSS to tgw1o_DS1_KSS and tgw1o_DS3_SCR to tgw1o_DS1_SCR.

<p>
The next sections are intended to show you how to find the converged parameters for a GW calculation.
In principle, the following parameters might be used to decrease the CPU time or memory demand:
<a href="../input_variables/vargs.html#optdriver"target="kwimg">optdriver</a>=3
<a href="../input_variables/vargw.html#ecutwfn" target="kwimg">ecutwfn</a>,
<a href="../input_variables/vargw.html#ecuteps" target="kwimg">ecuteps</a>,
<a href="../input_variables/varbas.html#nband" target="kwimg">nband</a>.
and
for <a href="../input_variables/vargs.html#optdriver"target="kwimg">optdriver</a>=4, 
<a href="../input_variables/vargw.html#ecutwfn" target="kwimg">ecutwfn</a>,
<a href="../input_variables/vargw.html#ecutsigx" target="kwimg">ecutsigx</a>,
<a href="../input_variables/varbas.html#nband" target="kwimg">nband</a>.
<p>
Before 2008, the advice was indeed to check independently what was the best value for each of these.
However, with the evolution of memory/disk space, as well as the advent of new techniques to 
diminish the number of bands that is needed (see e.g. F. Bruneval, X. Gonze, Phys. Rev. B 78, 085125 (2008),
and the input variable <a href="../input_variables/vargw.html#gwcomp" target="kwimg">gwcomp</a>),
standard calculations nowadays only need the tuning of <a href="../input_variables/varbas.html#nband" target="kwimg">nband</a>
<a href="../input_variables/vargw.html#ecuteps" target="kwimg">ecuteps</a>,
simultaneously for <a href="../input_variables/vargs.html#optdriver"target="kwimg">optdriver</a>=3 and =4.
Indeed, <a href="../input_variables/vargw.html#ecutwfn" target="kwimg">ecutwfn</a> and
can have the default value
of <a href="../input_variables/varbas.html#ecut" target="kwimg">ecut</a>, while
<a href="../input_variables/vargw.html#ecutsigx" target="kwimg">ecutsigx</a> can have the default value
of 4*<a href="../input_variables/varbas.html#ecut" target="kwimg">ecut</a> for norm-conserving
pseudopotentials, or <a href="../input_variables/varpaw.html#pawecutdg" target="kwimg">pawecutdg</a> for PAW calculations.
Actually, the present tutorial needs to be updated to account for the current practice.
<p>
We begin by the convergence study on the three parameters needed in the self-energy
calculation (<a href="../input_variables/vargs.html#optdriver"target="kwimg">optdriver</a>=4): 
<a href="../input_variables/vargw.html#ecutwfn" target="kwimg">ecutwfn</a>,
<a href="../input_variables/vargw.html#ecutsigx" target="kwimg">ecutsigx</a>,
<a href="../input_variables/varbas.html#nband" target="kwimg">nband</a>.
This is because for these, we will not need a double dataset loop to check this convergence,
and we will rely on the previously determined SCR file.


<hr>
<h3><p><b><a name="3">3</a>
Convergence on the number of planewaves in the wavefunctions to calculate the Self-Energy (optional).
</b></h3>

First, we check the convergence on the number of planewaves used to describe
the wavefunctions, in the calculation of the Self-Energy.
This will be done by defining five datasets,
with increasing <a href="../input_variables/vargw.html#ecutwfn" target="kwimg">ecutwfn</a>:
<pre>
ndtset     5
ecutwfn:  3.0
ecutwfn+  1.0
</pre>

<p>
<p>
In directory ~abinit/tests/tutorial/Input/Work_gw1, copy the file
../tgw1_3.in, and modify the tgw1_x.files file as usual.
Edit the tgw1_3.in file, and take the time to examine it.
<p>
Then, issue:
<pre>
abinit < tgw1_x.files >& tgw1_3.log &
</pre>
This small job lasts about 10 secs on a PC PIV Intel 2.2 GHz.

<p>
Edit the output file. The number of plane waves used for the
wavefunctions in the computation of the self-energy is mentioned in the fragments of output :
<pre>
 SIGMA fundamental parameters:
 PLASMON POLE MODEL
 number of plane-waves for SigmaX                  169
 number of plane-waves for SigmaC and W            169
 number of plane-waves for wavefunctions            59
</pre>

<p>
Gathering the GW energies for each planewave set, one gets :

<pre>
 number of plane-waves for wavefunctions            59
 Band     E0  VxcLDA    SigX SigC(E0)      Z dSigC/dE  Sig(E)    E-E0       E
    4   5.915 -11.637 -15.237   3.897   0.806  -0.240 -11.398   0.239   6.154
    5   8.445  -9.653  -3.222  -5.460   0.819  -0.222  -8.858   0.795   9.240

 number of plane-waves for wavefunctions           113
 Band     E0  VxcLDA    SigX SigC(E0)      Z dSigC/dE  Sig(E)    E-E0       E
    4   5.915 -11.639 -15.244   3.789   0.804  -0.244 -11.492   0.148   6.063
    5   8.445  -9.675  -3.213  -5.564   0.817  -0.224  -8.941   0.734   9.179

 number of plane-waves for wavefunctions           137
 Band     E0  VxcLDA    SigX SigC(E0)      Z dSigC/dE  Sig(E)    E-E0       E
    4   5.915 -11.639 -15.244   3.779   0.804  -0.244 -11.499   0.139   6.055
    5   8.445  -9.686  -3.216  -5.577   0.817  -0.225  -8.957   0.730   9.175

 number of plane-waves for wavefunctions           169
 Band     E0  VxcLDA    SigX SigC(E0)      Z dSigC/dE  Sig(E)    E-E0       E
    4   5.915 -11.636 -15.242   3.770   0.804  -0.245 -11.505   0.132   6.047
    5   8.445  -9.701  -3.221  -5.584   0.817  -0.225  -8.970   0.732   9.177

 number of plane-waves for wavefunctions           259
 Band     E0  VxcLDA    SigX SigC(E0)      Z dSigC/dE  Sig(E)    E-E0       E
    4   5.915 -11.652 -15.253   3.766   0.803  -0.245 -11.519   0.133   6.048
    5   8.445  -9.700  -3.219  -5.591   0.816  -0.225  -8.974   0.726   9.172
</pre>

So that ecutwfn=5.0 (npwwfn=137) can be considered converged within 0.01eV.

<hr>
<h3><p><b><a name="4">4</a>
Convergence on the number of planewaves to calculate &Sigma;<sub>x</sub> (optional).
</b></h3>

<p>
Second, we check the convergence on the number of planewaves in the calculation of &Sigma;<sub>x</sub>.
As mentioned in the documentation <a href="../input_variables/vargw.html#ecutsigx" target="kwimg">ecutsigx</a>,
safe values exist for <a href="../input_variables/vargw.html#ecutsigx" target="kwimg">ecutsigx</a>,
so that if you do not want to squeeze the CPU time for your calculation (you might gain only a few percent in some cases ...),
you can impose these values, and skip the corresponding convergence study.
<p>
In this lesson, this convergenc study will be done by defining five datasets,
with increasing <a href="../input_variables/vargw.html#ecutsigx" target="kwimg">ecutsigx</a>:
<pre>
ndtset     7
ecutsigx:  3.0
ecutsigx+  1.0
</pre>

<p>
<p>
In directory ~abinit/tests/tutorial/Input/Work_gw1, copy the file
../tgw1_4.in, and modify the tgw1_x.files file as usual.
Edit the tgw1_4.in file, and take the time to examine it.

<p>
Then, issue :
<pre>
abinit < tgw1_x.files >& tgw1_4.log &
</pre>
This small job lasts about 12 secs on a PC PIV Intel 2.2 GHz.

<p>
Edit the output file. The number of plane waves used for &Sigma;<sub>x</sub> is mentioned in the fragments of output:
<pre>
 SIGMA fundamental parameters:
 PLASMON POLE MODEL
 number of plane-waves for SigmaX                   59
 number of plane-waves for SigmaC and W             59
</pre>

<p>
Gathering the GW energies for each planewave set, one gets :

<pre>
 number of plane-waves for SigmaX                   59
 number of plane-waves for SigmaC and W             59
 Band     E0  VxcLDA    SigX SigC(E0)      Z dSigC/dE  Sig(E)    E-E0       E
    4   5.915 -11.639 -15.195   3.862   0.806  -0.241 -11.392   0.247   6.162
    5   8.445  -9.686  -3.177  -5.595   0.818  -0.223  -8.938   0.748   9.193

 number of plane-waves for SigmaX                  113
 number of plane-waves for SigmaC and W            113
 Band     E0  VxcLDA    SigX SigC(E0)      Z dSigC/dE  Sig(E)    E-E0       E
    4   5.915 -11.639 -15.235   3.795   0.804  -0.244 -11.479   0.160   6.075
    5   8.445  -9.686  -3.210  -5.581   0.817  -0.224  -8.955   0.731   9.176

 number of plane-waves for SigmaX                  137
 number of plane-waves for SigmaC and W            137
 Band     E0  VxcLDA    SigX SigC(E0)      Z dSigC/dE  Sig(E)    E-E0       E
    4   5.915 -11.639 -15.241   3.785   0.804  -0.244 -11.492   0.147   6.062
    5   8.445  -9.686  -3.213  -5.577   0.817  -0.224  -8.955   0.732   9.177

 number of plane-waves for SigmaX                  169
 number of plane-waves for SigmaC and W            169
 Band     E0  VxcLDA    SigX SigC(E0)      Z dSigC/dE  Sig(E)    E-E0       E
    4   5.915 -11.639 -15.244   3.779   0.804  -0.244 -11.499   0.139   6.055
    5   8.445  -9.686  -3.216  -5.577   0.817  -0.225  -8.957   0.730   9.175

 number of plane-waves for SigmaX                  259
 number of plane-waves for SigmaC and W            169
 Band     E0  VxcLDA    SigX SigC(E0)      Z dSigC/dE  Sig(E)    E-E0       E
    4   5.915 -11.639 -15.247   3.779   0.804  -0.244 -11.501   0.138   6.053
    5   8.445  -9.686  -3.218  -5.577   0.817  -0.225  -8.958   0.728   9.173

 number of plane-waves for SigmaX                  283
 number of plane-waves for SigmaC and W            169
 Band     E0  VxcLDA    SigX SigC(E0)      Z dSigC/dE  Sig(E)    E-E0       E
    4   5.915 -11.639 -15.247   3.779   0.804  -0.244 -11.501   0.138   6.053
    5   8.445  -9.686  -3.218  -5.577   0.817  -0.225  -8.958   0.728   9.173

 number of plane-waves for SigmaX                  283
 number of plane-waves for SigmaC and W            169
 Band     E0  VxcLDA    SigX SigC(E0)      Z dSigC/dE  Sig(E)    E-E0       E
    4   5.915 -11.639 -15.247   3.779   0.804  -0.244 -11.501   0.138   6.053
    5   8.445  -9.686  -3.218  -5.577   0.817  -0.225  -8.958   0.728   9.173
</pre>

So that ecutsigx=6.0 (npwsigx=169) can be considered converged within 0.01eV.


<hr>
<h3><p><b><a name="5">5</a>
Convergence on the number of bands to calculate  &Sigma;<sub>c</sub> (important).
</b></h3>

<p>
At last, as concerns the computation of the self-energy,
we check the convergence on the number of bands in the calculation of &Sigma;<sub>c</sub>.
This convergence study is rather important, usually, BUT it can be done at the same time
as the convergence study for the number of bands for the dielectric matrix.

<p>
The convergence on the number of bands to calculate the Self-Energy will be done by defining five datasets,
with increasing <a href="../input_variables/varbas.html#nband" target="kwimg">nband</a>:
<pre>
ndtset  5
nband:  50
nband+  50
</pre>

<p>
In directory ~abinit/tests/tutorial/Input/Work_gw1, copy the file
../tgw1_5.in, and modify the tgw1_x.files file as usual.
Edit the tgw1_5.in file, and take the time to examine it.
<br>Then, issue :
<pre>
abinit < tgw1_x.files >& tgw1_5.log &
</pre>
This small job lasts about 12 secs on a PC PIV Intel 2.2 GHz.

<p>
Edit the output file. 
The number of bands used for the self-energy is mentioned in the fragments of output:
<pre>
 SIGMA fundamental parameters:
 PLASMON POLE MODEL
 number of plane-waves for SigmaX                  169
 number of plane-waves for SigmaC and W            169
 number of plane-waves for wavefunctions           137
 number of bands                                    50
</pre>

<p>
Gathering the GW energies for each number of bands, one gets :
<pre>
 number of bands                                   50
    4   5.915 -11.639 -15.244   3.853   0.804  -0.243 -11.440   0.199   6.114
    5   8.445  -9.686  -3.216  -5.507   0.817  -0.224  -8.899   0.787   9.232

 number of bands                                  100
    4   5.915 -11.639 -15.244   3.779   0.804  -0.244 -11.499   0.139   6.055
    5   8.445  -9.686  -3.216  -5.577   0.817  -0.225  -8.957   0.730   9.175

 number of bands                                  150
    4   5.915 -11.639 -15.244   3.771   0.804  -0.244 -11.506   0.133   6.048
    5   8.445  -9.686  -3.216  -5.585   0.817  -0.225  -8.963   0.723   9.168

 number of bands                                  200
    4   5.915 -11.639 -15.244   3.769   0.804  -0.244 -11.507   0.132   6.047
    5   8.445  -9.686  -3.216  -5.587   0.817  -0.225  -8.964   0.722   9.167

 number of bands                                  250
    4   5.915 -11.639 -15.244   3.769   0.804  -0.244 -11.507   0.131   6.047
    5   8.445  -9.686  -3.216  -5.587   0.817  -0.225  -8.964   0.722   9.167
</pre>

So that nband=100 can be considered converged within 0.01eV.

<p>
At this stage, we know that for the self-energy computation, we need
<a href="../input_variables/vargw.html#ecutwfn" target="kwimg">ecutwfn</a>=5.0
<a href="../input_variables/vargw.html#ecutsigx" target="kwimg">ecutsigx</a>=6.0,
<a href="../input_variables/varbas.html#nband" target="kwimg">nband</a>=100 .


<hr>
<h3><p><b><a name="6">6</a>
Convergence on the number of planewaves in the wavefunctions to calculate the screening (&epsilon;<sup>-1</sup>) (optional).
</b></h3>

Now, we come back to the calculation of the screening.
Adequate convergence studies will couple the change of parameters for
<a href="../input_variables/vargs.html#optdriver" target="kwimg">optdriver</a>=3 with
a computation of the GW energy changes. 
One cannot rely on the convergence of the macroscopic dielectric constant to assess the convergence of the GW energies.

<p>
As a consequence, we will define a double loop over the datasets:
<pre>
ndtset      10
udtset      5  2
</pre>
The datasets 12,22,32,42 and 52, drive the computation of the GW energies :
<pre>
# Calculation of the Self-Energy matrix elements (GW corrections)
optdriver?2   4
getscr?2     -1
ecutwfn?2     5.0
ecutsigx      6.0
nband?2       100
</pre>
The datasets 11,21,31,41 and 51, drive the corresponding computation
of the screening :
<pre>
# Calculation of the screening (epsilon^-1 matrix)
optdriver?1  3
</pre>
In this latter series, we will have to vary the three different parameters
<a href="../input_variables/vargw.html#ecutwfn" target="kwimg">ecutwfn</a>,
<a href="../input_variables/vargw.html#ecuteps" target="kwimg">ecuteps</a>
and
<a href="../input_variables/varbas.html#nband" target="kwimg">nband</a>.

<p>
First, we check the convergence on the number of planewaves to describe
the wavefunctions, in the calculation of the screening.
This will be done by defining five datasets,
with increasing <a href="../input_variables/vargw.html#ecutwfn" target="kwimg">ecutwfn</a>:
<pre>
ecutwfn:?   3.0
ecutwfn+?   1.0
</pre>

<p>
In directory ~abinit/tests/tutorial/Input/Work_gw1, copy the file
../tgw1_6.in, and modify the tgw1_x.files file as usual.
Edit the tgw1_6.in file, and take the time to examine it.
<br>Then, issue :
<pre>
abinit < tgw1_x.files >& tgw1_6.log &
</pre>
This small job lasts about 15 secs on a PC PIV Intel 2.2 GHz.

<p>
Edit the output file. 
The number of plane waves used for the wavefunctions in the computation of the screening
is mentioned in the fragments of output:
<pre>
 EPSILON^-1 parameters (SCR file):
 dimension of the eps^-1 matrix                    169
 number of plane-waves for wavefunctions            59
</pre>

<p>
Gathering the macroscopic dielectric constant and
GW energies for each planewave set, one gets:

<pre>
 dielectric constant = 101.5301
 dielectric constant without local fields = 147.3095
 number of plane-waves for wavefunctions            59
    4   5.915 -11.639 -15.244   3.799   0.806  -0.241 -11.483   0.156   6.071
    5   8.445  -9.686  -3.216  -5.555   0.816  -0.225  -8.939   0.747   9.193

 dielectric constant =  99.5265
 dielectric constant without local fields = 143.7208
 number of plane-waves for wavefunctions           113
    4   5.915 -11.639 -15.244   3.769   0.804  -0.244 -11.507   0.132   6.047
    5   8.445  -9.686  -3.216  -5.582   0.815  -0.226  -8.961   0.725   9.170

 dielectric constant =  98.2598
 dielectric constant without local fields = 142.5982
 number of plane-waves for wavefunctions           137
    4   5.915 -11.639 -15.244   3.762   0.801  -0.248 -11.514   0.125   6.040
    5   8.445  -9.686  -3.216  -5.588   0.815  -0.227  -8.967   0.720   9.165

 dielectric constant =  97.6265
 dielectric constant without local fields = 142.1664
 number of plane-waves for wavefunctions           169
    4   5.915 -11.639 -15.244   3.759   0.804  -0.244 -11.516   0.123   6.038
    5   8.445  -9.686  -3.216  -5.590   0.815  -0.227  -8.969   0.717   9.163

 dielectric constant =  96.4286
 dielectric constant without local fields = 140.5466
 number of plane-waves for wavefunctions           259
    4   5.915 -11.639 -15.244   3.760   0.803  -0.245 -11.515   0.124   6.039
    5   8.445  -9.686  -3.216  -5.592   0.815  -0.227  -8.970   0.717   9.162
</pre>

So that ecutwfn=4.0 (npwwfn=113) can be considered converged within 0.01eV.

<hr>
<h3><p><b><a name="7">7</a>
Convergence on the number of bands to calculate the screening (important).
</b></h3>

This convergence study is rather important. 
It can be done at the same time as the convergence study for the number of bands for the self-energy.
Note that the number of bands used to calculate both the screening
and the self-energy can be lowered by a large amount by resorting to the
extrapolar technique (see the input variable 
<a href="../input_variables/vargw.html#gwcomp" target="kwimg">gwcomp</a>).

<p>
Second, we check the convergence on the number of bands in the calculation of the screening.
This will be done by defining five datasets,
with increasing <a href="../input_variables/varbas.html#nband" target="kwimg">nband</a>:
<pre>
nband11  25
nband21  50
nband31  100
nband41  150
nband51  200
</pre>

<p>
In directory ~abinit/tests/tutorial/Input/Work_gw1, copy the file
../tgw1_7.in, and modify the tgw1_x.files file as usual.
Edit the tgw1_7.in file, and take the time to examine it.
<p>
Then, issue :
<pre>
abinit < tgw1_x.files >& tgw1_7.log &
</pre>
This small job lasts about 22 secs on a PC PIV Intel 2.2 GHz.

<p>
Edit the output file. 
The number of bands used for the wavefunctions in the computation of the screening
is mentioned in the fragments of output:
<pre>
 EPSILON^-1 parameters (SCR file):
 dimension of the eps^-1 matrix                    169
 number of plane-waves for wavefunctions           113
 number of bands                                    25
</pre>

<p>
Gathering the macroscopic dielectric constant and
GW energies for each number of bands, one gets:

<pre>
 dielectric constant =  99.5265
 dielectric constant without local fields = 143.7208
 number of bands                                    25
    4   5.915 -11.639 -15.244   3.769   0.804  -0.244 -11.507   0.132   6.047
    5   8.445  -9.686  -3.216  -5.582   0.815  -0.226  -8.961   0.725   9.170

 dielectric constant = 100.6436
 dielectric constant without local fields = 143.7240
 number of bands                                    50
    4   5.915 -11.639 -15.244   3.587   0.804  -0.244 -11.654  -0.015   5.900
    5   8.445  -9.686  -3.216  -5.764   0.815  -0.227  -9.110   0.576   9.021

 dielectric constant = 101.1764
 dielectric constant without local fields = 143.7244
 number of bands                                   100
    4   5.915 -11.639 -15.244   3.516   0.804  -0.244 -11.711  -0.072   5.843
    5   8.445  -9.686  -3.216  -5.846   0.811  -0.233  -9.179   0.507   8.952

 dielectric constant = 101.2028
 dielectric constant without local fields = 143.7244
 number of bands                                   150
    4   5.915 -11.639 -15.244   3.510   0.804  -0.244 -11.715  -0.077   5.839
    5   8.445  -9.686  -3.216  -5.853   0.810  -0.234  -9.186   0.501   8.946

 dielectric constant = 101.2128
 dielectric constant without local fields = 143.7244
 number of bands                                   200
    4   5.915 -11.639 -15.244   3.509   0.803  -0.246 -11.716  -0.077   5.838
    5   8.445  -9.686  -3.216  -5.854   0.812  -0.231  -9.185   0.501   8.946
</pre>

So that the computation using 100 bands can be considered converged within 0.01eV.

<hr>
<h3><p><b><a name="8">8</a>
Convergence on the dimension of the &epsilon;<sup>-1</sup> matrix (important).
</b></h3>

<p>
Third, we check the convergence on the number of plane waves in the calculation of the screening.
This will be done by defining six datasets,
with increasing <a href="../input_variables/vargw.html#ecuteps" target="kwimg">ecuteps</a>:
<pre>
ecuteps:?     3.0
ecuteps+?     1.0
</pre>

<p>
In directory ~abinit/tests/tutorial/Input/Work_gw1, copy the file
../tgw1_8.in, and modify the tgw1_x.files file as usual.
Edit the tgw1_8.in file, and take the time to examine it.
<p>
Then, issue:
<pre>
abinit < tgw1_x.files >& tgw1_8.log &
</pre>
This small job lasts about 25 secs on a PC PIV Intel 2.2 GHz.

<p>
Edit the output file. 
The number of bands used for the wavefunctions in the computation of the screening
is mentioned in the fragments of output:
<pre>
 EPSILON^-1 parameters (SCR file):
 dimension of the eps^-1 matrix                     59
</pre>

<p>
Gathering the macroscopic dielectric constant and
GW energies for each number of bands, one gets:

<pre>
 dielectric constant = 102.1281
 dielectric constant without local fields = 143.7244
 dimension of the eps^-1 matrix                     59
    4   5.915 -11.639 -15.244   3.684   0.806  -0.241 -11.576   0.063   5.978
    5   8.445  -9.686  -3.216  -5.847   0.811  -0.232  -9.180   0.506   8.951

 dielectric constant = 101.2712
 dielectric constant without local fields = 143.7244
 dimension of the eps^-1 matrix                    113
    4   5.915 -11.639 -15.244   3.559   0.804  -0.243 -11.677  -0.038   5.877
    5   8.445  -9.686  -3.216  -5.850   0.811  -0.233  -9.182   0.504   8.949

 dielectric constant = 101.2649
 dielectric constant without local fields = 143.7244
 dimension of the eps^-1 matrix                    137
    4   5.915 -11.639 -15.244   3.535   0.804  -0.244 -11.696  -0.057   5.858
    5   8.445  -9.686  -3.216  -5.846   0.811  -0.232  -9.179   0.507   8.952

 dielectric constant = 101.1764
 dielectric constant without local fields = 143.7244
 dimension of the eps^-1 matrix                    169
    4   5.915 -11.639 -15.244   3.516   0.804  -0.244 -11.711  -0.072   5.843
    5   8.445  -9.686  -3.216  -5.846   0.811  -0.233  -9.179   0.507   8.952

 dielectric constant = 101.1384
 dielectric constant without local fields = 143.7244
 dimension of the eps^-1 matrix                    259
    4   5.915 -11.639 -15.244   3.517   0.804  -0.244 -11.710  -0.072   5.844
    5   8.445  -9.686  -3.216  -5.845   0.811  -0.232  -9.179   0.507   8.953
</pre>

So that ecuteps=6.0 (npweps=169) can be considered converged within 0.01eV.

<p>
At this stage, we know that for the screening computation, we need
<a href="../input_variables/vargw.html#ecutwfn" target="kwimg">ecutwfn</a>=4.0
<a href="../input_variables/vargw.html#ecuteps" target="kwimg">ecuteps</a>=6.0,
<a href="../input_variables/varbas.html#nband" target="kwimg">nband</a>=100.

<p>
Of course, until now, we have skipped the most difficult
part of the convergence tests: the covergence in the number of k-points.
It is as important to check the convergence on this parameter, than on the other ones. 
However, this might be very time consuming, since the CPU time scales as the square of the
number of k points (roughly), and the number of k-points can increase very rapidly from one 
possible grid to the next denser one. This is why we will leave this out of the present
tutorial, and consider that we already know a sufficient k-point grid, for the last calculation.

<hr>
<h3><p><b><a name="9">9</a>
Calculation of the GW corrections for the band gap in &Gamma;.
</b></h3>

Now we try to perform a GW calculation for a real problem:
the calculation of the GW corrections for the direct band gap of
bulk Silicon in &Gamma;.

<p>
In directory ~abinit/tests/tutorial/Input/Work_gw1, copy the file
../tgw1_9.in, and modify the tgw1_x.files file as usual.
Then, edit the tgw1_9.in file, and, without examining it, comment the line
<pre>
 ngkpt    2 2 2         # Density of k points used for the automatic tests of the tutorial
</pre>
and uncomment the line
<pre>
#ngkpt    4 4 4        # Density of k points needed for a converged calculation
</pre>
Then,
<br>Issue :
<pre>
abinit < tgw1_x.files >& tgw1_9.log &
</pre>
This job lasts about 20 minutes on a PC PIV Intel 2.2 GHz. 
Because it is so long, it was worth to run it before the examination of the input file.

<p>
Now, you can examine it.
<br>
We need the usual part of the input file to perform a ground state calculation.
This is done in dataset 1 and at the end we print out the density.
We use a 4x4x4 FCC grid (so, 256 k points in the full Brillouin Zone),
shifted, because it is the most economical.
It gives 10 k-points in the Irreducible part of the Brillouin Zone.
However, this k-point grid does not contains the &Gamma; point, and, at present,
one cannot perform calculations of the self-energy corrections
for other k points than those present in the grid of k-points
in the KSS file.
<p>
Then in dataset 2 we perform a non self-consistent calculation to calculate the
Kohn-Sham structure in a set of 19 k-points in the Irreducible
Brillouin Zone. This set of k-points is also derived
from a 4x4x4 FCC grid, but a NON-SHIFTED one.
It has the same density of points as the 10 k-point set, but the symmetries
are not used in a very efficient way. However,
this set contains the &Gamma; point, which allows us to tackle
the computation of the band gap at this point.
<p>
In dataset 3 we calculate the screening. 
The screening calculation is very time-consuming. 
So, we have decided to decrease a bit the parameters found in the
previous convergence studies. 
Indeed, <a href="../input_variables/vargw.html#ecutwfn" target="kwimg">ecutwfn</a>
has been decreased from 4.0 to 3.6. This is rather innocuous.
Also, <a href="../input_variables/varbas.html#nband" target="kwimg">nband</a>
has been decreased from 100 to 25. This is a drastic change.
The CPU time of this part is linear with respect to this paramater
(or more exacly, with the number of conduction bands).
Thus, the CPU time has been decreased by a factor of 4.
Referring to our previous convergence study, we see that
the absolute accuracy on the GW energies is now on the
order of 0.2 eV only. However, the gap energy
(difference between valence and conduction states),
that is the relative accuracy, is likely
correct within 0.02 eV.
It is very important to clarify this point:
in bulk systems what matters is only the relative accuracy. There
is no zero of the energy defined for a bulk system. 
Hence in these systems one CAN WELL check the convergence
only on the relative accuracy on the energies rather than the absolute,
by checking the convergence on the band gap for example.
This will reduce a lot the values to be found for the convergence parameters. 
The same holds for 2-, 1-, and 0-dimensional systems if one is interested only on relative energies
and is not interested in calculating quantities like the work function.

<p>
Finally in dataset 4 we calculate the self-energy matrix element in &Gamma;, 
using the previously determined parameters.
<p>
You should obtain the following results:
<pre>
 k =    0.000   0.000   0.000
 Band     E0  VxcLDA    SigX SigC(E0)      Z dSigC/dE  Sig(E)    E-E0       E
    4   5.915 -11.238 -12.425   0.861   0.771  -0.296 -11.489  -0.251   5.664
    5   8.445 -10.049  -5.858  -3.690   0.772  -0.296  -9.662   0.387   8.833

 E^0_gap          2.530
 E^GW_gap         3.169
 DeltaE^GW_gap    0.639
</pre>
So that the LDA energy gap in &Gamma; is about 2.53eV, while
the GW correction is about 0.64eV, so that the GW band gap found is 3.17eV.

<p>
One can compare now what have been obtained to what one can get from the litterature.

<pre>
 EXP         3.40 eV   Landolt-Boernstein	

 LDA         2.57 eV   L. Hedin, Phys. Rev. 139, A796 (1965)
 LDA         2.57 eV   M.S. Hybertsen and S. Louie, PRL 55, 1418 (1985)
 LDA (FLAPW) 2.55 eV   N. Hamada, M. Hwang and A.J. Freeman, PRB 41, 3620 (1990)
 LDA (PAW)   2.53 eV   B. Arnaud and M. Alouani, PRB 62, 4464 (2000)
 LDA         2.53 eV   present work

 GW          3.27 eV   M.S. Hybertsen and S. Louie, PRL 55, 1418 (1985)
 GW          3.35 eV   M.S. Hybertsen and S. Louie, PRB 34, 5390 (1986)
 GW          3.30 eV   R.W. Godby, M. Schlueter, L.J. Sham, PRB 37, 10159 (1988)
 GW  (FLAPW) 3.30 eV   N. Hamada, M. Hwang and A.J. Freeman, PRB 41, 3620 (1990)
 GW  (PAW)   3.15 eV   B. Arnaud and M. Alouani, PRB 62, 4464 (2000)
 GW  (FLAPW) 3.12 eV   W. Ku and A.G. Eguiluz, PRL 89, 126401 (2002)
 GW          3.17 eV   present work
</pre>

<p>
The values are spread over an interval of 0.2eV. They depend on the details of the calculation. 
In the case of pseudopotential calculations, they depend of course on the pseudopotential used.
However, a GW result is hardly meaningful beyond 0.1 eV, in the present state of the art. 
But this goes also with the other source of inaccuracy, the choice of the pseudopotential, that can arrive up to even 0.2 eV.
This can also be taken into account when choosing the level of accuracy for the convergence parameters in the GW calculation.

<p>
Finally, it is possible to calculate a full band plot of a system. 
There are two possible techniques.
The first one is based on the use of Wannier functions, to interpolate a few selected points obtained using the direct GW approach. 
You need to have the Wannier90 plug-in installed. See the directory tests/wannier90, test case 03,
for an example of a file where a GW calculation is followed by the use of Wannier90.

Another practical way follows from the fact that the GW corrections are quite linear with the energy, for each group of bands. 
This is evident when reporting on a plot the GW correction with respect to the 0-order LDA energy for each state. 
One can then simply correct the Kohn-Sham band structure at any point, by using a GW correction for the k-points 
where it has not been calculated explicitly, using a fit of the GW correction at a sparse set of points.
<hr>


<h3><b><a name="10">10</a> Advanced features in the GW code  </b></h3>

The user might switch to the <a href="lesson_gw2.html">second GW tutorial</a>
before coming back to the present section.

<h4><b> Calculations without using the Plasmon-Pole model  </b></h4>

<p>
In order to circumvent the plasmon-pole model, the GW frequency convolution has to be
calculated explicitly along the real axis.
This is a tough job, since G and W have poles along the real axis.
Therefore it is more convenient to use another path of integration
along the imaginary axis plus the residues enclosed in the path.

<p>
Consequently, it is better to evaluate the screening for imaginary frequencies (to
perform the integration) and also for real frequencies (to evaluate
the contributions of the residues that may enter into the path of integration).
The number of imaginary frequencies is set by the input variable
<a href="../input_variables/vargw.html#nfreqim" target="kwimg">nfreqim</a>.
The regular grid of real frequencies is determined by the input variables
<a href="../input_variables/vargw.html#nfreqre" target="kwimg">nfreqre</a>, which sets the number of real frequencies,
and <a href="../input_variables/vargw.html#freqremax" target="kwimg">freqremax</a>, which indicates the maximum
real frequency used.

<p>
The method is particularly suited to output the spectral function (contained in file out.sig).
The grid of real frequencies used to calculate the spectral function is set by
the number of frequencies (input variable <a href="../input_variables/vargw.html#nfreqsp" target="kwimg">nfreqsp</a>)
and by the maximum frequency calculated
(input variable <a href="../input_variables/vargw.html#freqspmax" target="kwimg">freqspmax</a>).


<h4><b> Self-consistent calculations  </b></h4>

<p>
The details in the implementation and the justification for the approximations retained can be found in
F. Bruneval, N. Vast, and L. Reining, Phys. Rev. B <b>74</b>, 045102 (2006).<br>
The only added input variables are
<a href="../input_variables/varfil.html#getqps" target="kwimg">getqps</a> and
<a href="../input_variables/varfil.html#irdqps" target="kwimg">irdqps</a>.
These variables concerns the reading of the _QPS file, that contains the eigenvalues and
the unitary transform matrices of a previous quasiparticle calculation.
QPS stands for "QuasiParticle Structure".<br>
The only modified input variables for self-consistent calculations are
<a href="../input_variables/vargw.html#gwcalctyp" target="kwimg">gwcalctyp</a>
and <a href="../input_variables/vargw.html#bdgw" target="kwimg">bdgw</a>.<br>
When the variable <a href="../input_variables/vargw.html#gwcalctyp" target="kwimg">gwcalctyp</a> is in between 0 and 9,
The code calculates the quasiparticle energies only and does not output any QPS file (as in a standard GW run). <br>
When the variable <a href="../input_variables/vargw.html#gwcalctyp" target="kwimg">gwcalctyp</a> is in between 10 and 19,
the code calculates the quasiparticle energies only and outputs them in a QPS file.<br>
When the variable <a href="../input_variables/vargw.html#gwcalctyp" target="kwimg">gwcalctyp</a> is in between 20 and 29,
the code calculates the quasiparticle energies and wavefunctions and outputs them in a QPS file.<br>
For a full self-consistency calculation, the quasiparticle wavefunctions are expanded in the basis set of the Kohn-Sham wavefunctions.
The variable <a href="../input_variables/vargw.html#bdgw" target="kwimg">bdgw</a> now indicates the size of all matrices to be calculated and diagonalized.
The quasiparticle wavefunctions are consequently linear combinations of the Kohn-Sham wavefunctions in between the min and max values of bdgw.


<p>
A correct self-consistent calculation should consist of the following runs:
<ul>
<li> 1) Self-consistent Kohn-Sham calculation: outputs a KSS file
<li> 2) Screening calculation (with Kohn-Sham inputs): outputs a SCR file
<li> 3) Sigma calculation (with Kohn-Sham inputs): outputs a QPS file
<li> 4) Screening calculation (with the KSS, and QPS file as an input): outputs a new SCR file
<li> 5) Sigma calculation (with the KSS, QPS and the new SCR files): outputs a new QPS file
<li> 6) Screening calculation (with the KSS, the new QPS file): outputs a newer SCR file
<li> 7) Sigma calculation (with the KSS, the newer QPS and SCR files): outputs a newer QPS
<li> ............ and so on, until the desired accuracy is reached
</ul>

<p>
Note that for Hartree-Fock calculations a dummy screening is required for initialization reasons.
Therefore, a correct HF calculations should look like
<ul>
<li> 1) Self-consistent Kohn-Sham calculation: outputs a KSS file
<li> 2) Screening calculation using very low convergence parameters (with Kohn-Sham inputs): output a <b>dummy</b> SCR file
<li> 3) Sigma calculation (with Kohn-Sham inputs): outputs a QPS file
<li> 4) Sigma calculation (with the KSS and QPS files): outputs a new QPS file
<li> 5) Sigma calculation (with the KSS and the new QPS file): outputs a newer QPS file
<li> ............ and so on, until the desired accuracy is reached
</ul>

<p>
In the case of a self-consistent calculation, the output is slightly more complex:<br>
<b>For instance, iteration 2</b>
<pre>
 k =    0.500   0.250   0.000
 Band     E_lda  &#60Vxclda&#62    E(N-1) &#60Hhartree&#62    SigX  SigC[E(N-1)]    Z     dSigC/dE  Sig[E(N)]  DeltaE  E(N)_pert E(N)_diago
    1    -3.422   -10.273    -3.761     6.847   -15.232     4.034     1.000     0.000   -11.198    -0.590    -4.351    -4.351
    2    -0.574   -10.245    -0.850     9.666   -13.806     2.998     1.000     0.000   -10.807    -0.291    -1.141    -1.141
    3     2.242    -9.606     2.513    11.841   -11.452     1.931     1.000     0.000    -9.521    -0.193     2.320     2.320
    4     3.595   -10.267     4.151    13.866   -11.775     1.842     1.000     0.000    -9.933    -0.217     3.934     3.934
    5     7.279    -8.804     9.916    16.078    -4.452    -1.592     1.000     0.000    -6.044     0.119    10.034    10.035
    6    10.247    -9.143    13.462    19.395    -4.063    -1.775     1.000     0.000    -5.838     0.095    13.557    13.557
    7    11.488    -9.704    15.159    21.197    -4.061    -1.863     1.000     0.000    -5.924     0.113    15.273    15.273
    8    11.780    -9.180    15.225    20.958    -3.705    -1.893     1.000     0.000    -5.598     0.135    15.360    15.360

 E^0_gap          3.684
 E^GW_gap         5.764
 DeltaE^GW_gap    2.080
</pre>
The columns are
<ul>
<li> <b>Band</b>: index of the band
<br>
<br>
<li> <b>E_lda</b>: LDA eigenvalue
<br>
<br>
<li> <b>&#60Vxclda&#62</b>: diagonal expectation value of the xc potential in between LDA bra and ket
<br>
<br>
<li> <b>E(N-1)</b>: quasiparticle energy of the preceeding iteration (equal to LDA for the first iteration)
<br>
<br>
<li> <b>&#60Hhartree&#62</b>:
diagonal expectation value of the Hartree Hamiltonian (equal to E_lda -  &#60Vxclda&#62 for the first iteration only)
<br>
<br>
<li> <b>SigX</b>: diagonal expectation value of the exchange self-energy
<br>
<br>
<li> <b>SigC[E(N-1)]</b>: diagonal expectation value of the correlation self-energy (evaluated for the energy of the preceeding iteration)
<br>
<br>
<li> <b>Z</b>: quasiparticle renormalization factor Z (taken equal to 1 in methods HF, SEX, COHSEX and model GW)
<br>
<br>
<li> <b>dSigC/dE</b>: Derivative of the correlation self-energy with respect to the energy
<br>
<br>
<li> <b>Sig[E(N)]</b>: Total self-energy for the new quasiparticle energy
<br>
<br>
<li> <b>DeltaE</b>: Energy difference with respect to the previous step
<br>
<br>
<li> <b>E(N)_pert</b>: QP energy as obtained by the usual perturbative method
<br>
<br>
<li> <b>E(N)_diago</b>: QP energy as obtained by the full diagonalization
</ul>

<script type="text/javascript" src="list_internal_links.js"> </script>

</body>
</html>