Iron Density of States
This example should be read in conjunction with the silicon example, for here just the differences with spin-polarised systems are explored.
Fe.cell
%BLOCK LATTICE_CART
-1.4332 1.4332 1.4332
1.4332 -1.4332 1.4332
1.4332 1.4332 -1.4332
%ENDBLOCK LATTICE_CART
%BLOCK POSITIONS_FRAC
Fe 0.000 0.000 0.000
%ENDBLOCK POSITIONS_FRAC
symmetry_generate
! Kpoint grid for the groundstate (SCF) calculation
kpoint_mp_grid 8 8 8
! Kpoint grid for a DOS plot
spectral_kpoint_mp_grid 12 12 12
Fe.param
task spectral ! The TASK keyword instructs CASTEP what to do spectral_task DOS ! Which kind of spectrum to compute fix_occupancy false ! Treat the system as an metal num_dump_cycles 0 ! Don't write unwanted ".wvfn" files. spin 1 ! Set the spin in the original cell to 1. spin_polarised true ! Run a spin polarised calculation spectral_nbands 6 ! number of bands to compute during the band structure
This example should run in about ten seconds.
$ c2x --dos_gnu Fe.bands out.gnu $ gnuplot -p out.gnu

The main difference from the silicon example is that the two spin states are shown as separate lines. One can also choose a "mirror" plot.
$ c2x --dos_gnu:m Fe.bands out.gnu

Or one can add the two spin channels for a total spinless density.
$ c2x --dos_gnu:a Fe.bands out.gnu

Finally, if choosing eps output, one can rotate the plot.
$ c2x --dos_eps:mr Fe.bands out.eps $ gv out.eps

Rotation is also available for spin-free plots.
Finally one might wonder what artifacts Gaussian smearing would introduce.
$ c2x --dos_eps:mrG Fe.bands out.eps $ gv out.eps

Wiggles in the high-energy tails would seem to be one part of the answer. Are these really just artifacts? Repeating the calculation with a 24x24x24 grid, rather than 12x12x12, and again using Gaussian smearing would suggest so.
