Silicon Density of States with Castep and OptaDOS
Calculating an electronic density of states plot with Castep and c2x or dispersion.pl has already been described. Castep also has a more sophisticated tool for calculating densities of states and other related properties, OptaDOS.
OptaDOS is distributed with Castep, and can also be downloaded from GitHub. After running the two atom silicon Castep example, one needs to create an OptaDOS input file.
Si.odi
task : dos
Then OptaDOS can be run as
$ optados Si
Currently OptaDOS produces output for XMGrace and raw output only. So to plot the output,
$ gnuplot gnuplot> plot [-10:35] "si2.adaptive.dat" w l

By default OptaDOS uses adaptive Gaussian smearing. This is much superior to fixed Gaussian smearing, but arguably inferior to Blöchl's tetragonal interpolation.
Other algorithms are available, for instance
broadening : linear
which places its output in a file with the extension .linear.dat.
OptaDOS will also recalculate the Fermi energy. This, and other quantities, can be found in its output file which has the extension .odo.