Silicon Density of States with Quantum Espresso

It is best to use a primitive cell for density of state calculations. Generally a small number of k-points is used for the self-consistent electronic minimisation, and then the charge density (and hence potential) is frozen and eigenvalues calculated at a much larger number of k-points. The calculation with a frozen potential, rather than one which depends on the eigenvector itself, is much faster. Here Quantum Espresso is used.

Self-consistent calculation

&CONTROL
  calculation = 'scf',
  outdir = '.'
  pseudo_dir = '.'
/

&SYSTEM
  ibrav =  2,
  celldm(1) = 10.2076,
  nat =  2,
  ntyp = 1,
  ecutwfc = 50,
  nbnd = 8
/

&ELECTRONS
/

ATOMIC_SPECIES
  Si 28.086 Si.UPF

ATOMIC_POSITIONS (alat)
  Si 0.0 0.0 0.0
  Si 0.25 0.25 0.25

K_POINTS (automatic)
  6 6 6 0 0 0

And, for the pseudopotential

$ curl -o Si.UPF https://pseudopotentials.quantum-espresso.org/upf_files/Si.pz-vbc.UPF

Then PWSCF can be run to perform the self-consistent step with:

$ pw.x < si1.in > si1.out

Non self-consistent calculation

The next run will use the output files from the above calculation, particularly the calculated charge density which will form part of the fixed potential. The differences in the input file are shown below.

&CONTROL
  calculation = 'nscf',
  outdir = '.'
  pseudo_dir = '.'
/

    [...]

K_POINTS (automatic)
  16 16 16 0 0 0
  

The self-consistent calculation uses 216 k-points, which symmetry reduces to sixteen. The non self-consistent calculation uses 4096, which symmetry combined with the tetrahedral integration scheme reduces to 145. It can be run as

$ pw.x < si2.in > si2.out

and will over-write the pwscf.xml file produced by the first run.

Results, tetrahedral interpolation

With a dos.in reading simply

&DOS
/
  

One can run

$ dos.x < dos.in > dos.out
$ gnuplot
gnuplot> set xlabel "E(eV)"
gnuplot> plot [-6:16.5] "pwscf.dos" with lines
  

The equivalent approach using c2x is

$ c2x --dos_gnu:2200 pwscf.xml out.gnu
$ gnuplot -p out.gnu

Silicon DoS, QE

Silicon DoS, c2x

The plots are quite similar, but not identical. This is because QE defaults to a more sophisticated tetrahedral interpolation method that Blöchl's linear interpolation. To obtain a plot which is almost identical to the c2x one, the input card should be

&DOS
   bz_sum='tetrahedra'
/

To aid the comparison above, an x-axis label was explicitly set for the QE version, as was the range of the x axis. Neither was necessary. For the c2x version, the number of points, 2200, was set explicitly to match the QE output. Otherwise c2x would have defaulted to just 200.

There is one thing I do not understand about QE's calculation of the DOS.

  $ time dos.x < dos_lin.in > dos_lin.out
 real  0m54.082s 
  $ time c2x --dos_gnu:2200 pwscf.xml out.gnu
 real  0m0.174s

Results, Gaussian smearing

To use the traditional Gaussian smearing, for QE's dos.x one needs an input file of

  &DOS
  degauss = 0.01
  /

and for c2x a command line of

$ c2x --dos_gnu:G  pwscf.xml out.gnu

Silicon DoS, gaussians

Again dos.x is shown on the left, c2x on the right. The slight differences above arise from different definitions of Gaussian smearing. C2x defaults to 0.2eV for full width at half maximum, and dos.x needs its width specifying in Rydbergs, not eV. There are also different approaches for applying Gaussian smearing.

The results look somewhat different to those from the tetrahedron method, particularly in the shape of the peak between about 1eV and 5eV, and also in the oscillations from 11eV to 15eV. One can try increasing the k-point grid density to see if this improves matters, so below is a result from a 24x24x24 kpoint grid and Gaussian smearing, rather than the 16x16x16 grid used before. This increases the number of symmetrically distinct k-points from 145 to 413. As eight bands were calculated, the number of eigenvalues, and therefore of Gaussians, which make up the plot increases from 1160 to 3304.

Silicon DoS, gaussians

Whilst this is still not identical to the results from the tetrahedron method, the two differences mentioned above are much reduced, in that a double peak is emerging between 1eV and 5eV, and the oscillations above 11eV are reduced.

Fermi energies

Unlike some codes, QE recalculates the Fermi energy when performing the non self-consistent calculation. For a non-metal, the Fermi energy must lie within the band gap. When run as above, the second run of QE annoyingly over-writes the output XML file of the first, but, if we preserve the output of the first run, we can obtain:

$ c2x --gap -v --null pwscf.xml 
Fermi energy: 6.213759 eV
kpoint MP grid 6 6 6
Band gap from grid

Valence band maximum:    6.213759 eV at k=(0.000000,0.000000,0.000000)
Conduction band minimum: 6.840963 eV at k=(0.000000,-0.500000,-0.500000)
Direct gap:              2.565413 eV at k=(0.000000,0.000000,0.000000)
Indirect gap:            0.627204 eV

whereas the second run gives

Fermi energy: 6.646515 eV
kpoint MP grid 16 16 16
Band gap from grid

Valence band maximum:    6.213081 eV at k=(0.000000,0.000000,0.000000)
Conduction band minimum: 6.711298 eV at k=(0.000000,0.437500,0.437500)
Direct gap:              2.565756 eV at k=(0.000000,0.000000,0.000000)
Indirect gap:            0.498216 eV

One can ask c2x to make and use its own estimation of the Fermi energy, and it will place it in the centre of the gap.

$ c2x --efermi --dos_gnu:500 pwscf.xml out.gnu
Calculated E_Fermi (0K): 6.462190 eV