Projected Densities of States of Antiferromagnetic Iron Oxide
This example shows the use of PDoSes and LDoSes in analysing a system with collinear spin, FeO. Here the chosen form of the LDoS is a sphere centred on an atom.
Input files
FeO.cell
%BLOCK LATTICE_CART 0.000 4.332 4.332 2.166 0.000 2.166 2.166 2.166 0.000 %ENDBLOCK LATTICE_CART %BLOCK POSITIONS_FRAC O 0.25 0.50 0.50 O 0.75 0.50 0.50 Fe 0.00 0.00 0.00 SPIN 2 Fe 0.50 0.00 0.00 SPIN -2 %ENDBLOCK POSITIONS_FRAC kpoints_mp_grid 1 3 3 kpoints_mp_offset 0.25 0 0 spectral_kpoint_mp_grid 2 6 6
FeO.param
task spectral spectral_task DOS fix_occupancy false num_dump_cycles 0 ! Don't write unwanted ".wvfn" files. spin_polarised true spectral_nbands 20 write_orbitals true pdos_calculate_weights true
Full DOS
$ c2x --dos_gnu FeO.bands full.gnu DOS sum, spin=0: 19.628384 DOS integral, spin=0: 19.689236 DOS sum, spin=1: 19.615285 DOS integral, spin=1: 19.681663 $ gnuplot -p full.gnu

Little to say save that there are two lines in the above graph, one
for each spin, but the antiferromagnetic symmetry means that the lines
lie exactly on top of each other. To see them separately,
try --dos_gnu:m. Also note that FeO appears to be
metallic; this is a known error of LDA with this system.
LDoS
$ c2x -v --dos_gnu --ldos=Fe1:1 FeO.orbitals Fe1.gnu Created ldos weights array DOS sum, spin=0: 2.815717 DOS integral, spin=0: 2.969180 DOS sum, spin=1: 3.135646 DOS integral, spin=1: 3.166756 $ c2x -v --dos_gnu --ldos=Fe2:1 FeO.orbitals Fe2.gnu Created ldos weights array DOS sum, spin=0: 3.136993 DOS integral, spin=0: 3.166990 DOS sum, spin=1: 2.815280 DOS integral, spin=1: 2.969042
Note that for a DoS one needs just k-points and eigenvalues, so
a .bands file suffices. For an LDoS one needs the
wavefunctions (orbitals) for each band, so a .orbitals
file is required.
The syntax for an LDoS projected onto a sphere is similar to that for spherical integration. One may specify either an atom, or a point in fractional co-ordinates, and then, after the colon, a radius in Angstroms (the default) or Bohr. So here the following two specifications would be almost identical:
--ldos=Fe1:0.52 --ldos='(0.5,0,0):1B'
(One's shell may need the brackets quoted.)
The integration needed for the projection is performed on the reciprocal space grid, so no number of integration points is needed, and, provided that the grid is sufficient to hold all the components of the charge density, the projection will be exact.

LDoS projected onto first Fe

LDoS projected onto second Fe
Now one can see spin polarisation in the region of each iron atom, but the two are mirror images of each other, so the net spin is zero.
Finally the LDoS on a sphere of radius 1A centred on an oxygen atom.

No spin polarisation here, and the low-lying states at around -13eV are strongly present, so presumably these are the 2s electrons of the oxygen. (The pseudopotentials used left as valence electrons 2s and 2p from O6+, and 3d and 4s from Fe8+.)
OptaDOS
With OptaDOS we can project onto the oxygen s orbitals directly.
The .odi file used was
task pdos broadening fixed fixed_smearing 0.1 pdos O1(s)
OptaDOS was run as
$ optados FeO
and the gnuplot command was
gnuplot> plot 'FeO.pdos.proj-0001-0001.dat' using 1:2 w l, 'FeO.pdos.proj-0001-0001.dat' using 1:3 w l

The identification of the peak as the 2s orbital of oxygen is thus confirmed.
Note that OptaDOS can project onto angular momentum states, and c2x cannot. Also that with OptaDOS a radius cannot be specified, for radii are determined by Castep when it projects onto pseudo-atomic orbitals. Conversely for c2x a radius must be specified.