Densities of States

Approximations to the electronic density of states can be produced by uniformly sampling k-space and noting the band energies found. The traditional approach is to plot these eigenvalues not as delta functions, but rather smeared, usually by a Gaussian. This is an approach that c2x 2.42 and later takes, along with Castep's dos.pl script.

There is a better method, using tetrahedral linear interpolation, and several codes (including Abinit and Quantum Espresso) implement this, as does c2x 2.42 and later. See "Improved tetrahedron method for Brillouin-zone integrations", PE Blöchl, PRB 49 16223 (1994) for more details.

Versions of c2x from 2.42a can also produce a DoS for a restricted region of real-space, such as a slab, sphere or cylindrical shell. These PDoS plots are described separately.

Versions of c2x from 2.42 can produce density of states plots via gnuplot, or directly in PostScript. (PostScript is easier to write than PDF, and various PS to PDF conversion utilities exist, mostly based on Ghostscript.) The syntax is

  c2x --dos_{fmt}[=s][:n][flags]

e.g.

  c2x --dos_gnu=0.2:300g

where

fmt is "gnu", "eps" or "raw"
s is the smearing width in eV
n is the number of bins

flags is any of:
  a -- add spins, to create a single DOS from a spin-polarised calculation
  B -- use Blochl's method. The default, so this flag is never needed
  o -- (c2x 2.50a) use old version of Blochl's method
  f -- fix bin range to be independent of smearing
  g -- adjust the smearing function to preserve gaps better
  G -- use Gaussians even if tetrahedral method would be possible
  m -- produce a "mirror" plot (for spin polarised systems)
  r -- produce a rotated plot (eps only)

Blöchl's tetrahedral method will be used if a regular grid of at least eight distinct k-points is detected. The flags s, f and g have no meaning for the tetrahedral method.

Versions of c2x up to 2.50 inclusive use the first version of Blöchl's method discussed on the Dangers of DoSes page. Versions from 2.50a onwards use the second, with the old method available via the "o" flag.

To set the title of the plot, use the --title option, e.g.

  c2x --dos_gnu=0.2:300g --title="Silicon DoS" Si.bands Si.gnu

And to set the range of the x-axis explicitly, use the --xrange option, e.g.

  c2x --dos_gnu=0.2:300g --xrange=2:10 Si.bands Si.gnu

And also a more detailed discussion of Gaussian smearing.