Projected Densities of States of a Silicon Surface
This example shows the use of PDoSes and LDoSes in analysing a silicon surface.
Starting with the standard eight atom silicon cell, a 32 atom cell with a surface was generated.
$ c2x -x=1x1x4 -Xc=35 --cell Si8.cell Si_surface.cell
To the end of this some k-point information was added.
symmetry_generate kpoint_mp_grid 4 4 1 spectral_kpoint_mp_grid 10 10 1
So that both OptaDOS and c2x could be used, the .param
file was
task spectral spectral_task DOS pdos_calculate_weights true spectral_nbands 128 write_orbitals true
The basic two-atom silicon DoS calculation which is used as a comparison used eight bands for two atoms, so, for consistency, here four bands per atom are calculated. This calculation is less trivial than most of the others on this site. Expect up to half a core-hour, and output files totalling almost 0.5GB.
Full DoS
$ c2x --dos_gnu:G Si_surface.bands out.gnu $ gnuplot -p out.gnu

Silicon with surface

Bulk Silicon
The bulk silicon DoS is copied from the Si DoS with Castep page.
Points to note include that the absolute energy is arbitrary, so there is a shift of almost 5eV between the plots, and this has no relevance. The DoS should integrate to the number of electrons in the unit cell, which is sixteen times higher in the surface example.
The basic structure of three peaks below the Fermi level, and one above, is common to both plots. But the system with the surface no longer has a gap at the Fermi energy. Surface states have caused it to become metallic.
LDOS with c2x
One can take a slice out of the centre of the slab, carefully choosing the slab size to be consistent with the periodicity.
$ c2x -v --dos_gnu:G --ldos=0.4805-0.5195c Si_surface.orbitals out_bulk.gnu
C2x will perform this calculation quite slowly, so the use
of -v is recommended to give a progress indicator.

Silicon with surface, LDoS in centre

Bulk Silicon
Again the bulk silicon DoS is copied from the Si DoS with Castep page.
Whilst not quite identical to the bulk calculation, this LDOS taken from the centre of the slab is now much closer. In particular, the density at the Fermi energy is almost zero, and the unexpected peak just below the Fermi energy has disappeared entirely. The slab was chosen to contain exactly two atoms, so the scaling should be identical, in that both DoSes should integrate to the same value.
$ c2x -v --dos_gnu:G --ldos=-0.05-0.05c Si_surface.orbitals out_vacuum.gnu $ c2x -v --dos_gnu:G --ldos=0.1-0.2c Si_surface.orbitals out_surface.gnu

Silicon with surface, LDoS in vacuum

Silicon with surface, LDoS at surface
The left-hand plots shows the LDoS in the vacuum region. There are no occupied states here, but there are some unoccupied excited states.
The right-hand plot shows the LDoS at the surface. Some of the features of the bulk DOS can be seen, but there is a very prominent peak close to the Fermi level. This will arise from the surface states.
PDOS with OptaDOS
Similar results can be obtained using OptaDOS. One can project onto
a central atom to obtain a bulk-like PDoS. For this the OptaDOS input
file, Si_surface.odi, was
task pdos broadening fixed fixed_smearing 0.1 pdos Si17
And for the surface PDoS the atom was changed to Si1. OptaDOS runs very quickly, as much of the work has already been done by Castep.
$ optados Si_surface $ gnuplot gnuplot> plot [-15:10] 'Si_surface.pdos.proj-0001-0001.dat' w l notitle

Silicon with surface, PDoS on bulk atom

Silicon with surface, PDoS on surface atom
The bulk PDoS looks very similar to the bulk LDoS, and the surface PDoS is quite similar to the surface LDoS. The differences between the surface PDoS and LDoS will arise in part from the different definitions of the surface region. The LDoS region is probably wider, and therefor includes more of the vacuum state. But a vacuum PDoS would be tricky -- there is no atom onto which to request a projection.