Projected Densities of States and Castep
Castep provides the typical DFT method of calculating a self-consistent density at a smallish number of k-points, and then freezing the density (and hence potential), and performing much faster calculations at a large number of k-points in order to produce many spectral properties, including PDoSes.
For a simple Castep DoS
calculation one needs a spectral_kpoint_mp_grid
(or spectral kpoint list) in the .cell file, and
the .param file should contain
task spectral spectral_task DOS
This will result in a .bands file which contains the
band eigenvalues.
Castep can project wavefunctions onto atomic orbitals itself. In
the .param file one needs to add
pdos_calculate_weights true
and then a .pdos_bin file will be generated which can
then be read by OptaDOS.
If instead one wishes to perform projections in the post-processing
phase, including using c2x to project onto real-space slabs, then
the wavefunctions at each spectral k-point are required. Castep
confusingly calls these "orbitals", so the required entry in
the .param file is
write_orbitals true
and this will generate a .orbitals
file. The .orbitals file has the same format as
a .check file, except that it contains the non
self-consistent wavefunctions and eigenvalues, not the ones used for
the self-consistent calculation. It is likely to be very large.