Diamond Phonon DoS using Castep

Castep can calculate phonons on a set of q points, interpolate onto a denser set (the "fine grid"), and calculate the DoS directly itself making use of band gradients. There is little for any post-processing tool to do.

diamond.cell

%block LATTICE_ABC
 2.5357 2.5357 2.5357 
 60.0000000  60.0000000  60.0000000
%endblock LATTICE_ABC

%block POSITIONS_FRAC
 C  0.000000000  0.000000000  0.000000000
 C  0.250000000  0.250000000  0.250000000
%endblock POSITIONS_FRAC

%block species_pot
NCP
%endblock species_pot

symmetry_generate
kpoint_mp_grid 8 8 8
kpoint_mp_offset include_gamma

phonon_kpoint_mp_grid 8 8 8
phonon_kpoint_mp_offset include_gamma
phonon_fine_kpoint_mp_grid 18 18 18
phonon_fine_kpoint_mp_offset include_gamma

diamond.param

task             : PHONON
phonon_sum_rule  : TRUE
phonon_fine_method : INTERPOLATE
phonon_calculate_dos : TRUE

This calculation might take around a core-hour. But if one has calculated the band structure by interpolation, then add

continuation : diamond.check

to the param file, and it will run in a few seconds reading data from the check file of the previous calculation.

Two important output files are produced. The .phonon file contains the phonon frequencies at each q point, the IR activity at the Gamma point, and the phonon eigenvectors. These are on the fine grid which, after symmetry, contains 195 q points. The coarser grid contains just 29 q points after symmetrisation.

The .phonon_dos file contains the phonon frequencies at each q point and Castep's calculated DoS. It omits IR activity and the eigenvectors.

Both files contain a header giving the basis unit cell parameters and atomic positions, though not the symmetry.

DoS from .phonon_dos

With dos.pl

$ dos.pl -gp diamond.phonon_dos
Integrated DOS =       5.9929

with c2x (versions later than 2.42a)

$ c2x --phdos_gnu -v diamond.phonon_dos out.gnu
Using supplied DoS
DOS sum,      spin=0: 5.992937
$ gnuplot -p out.gnu

phonon_dos plotted by dos.pl

phonon_dos plotted by c2x

The left-hand plot shows the result with dos.pl, and the right-hand plot that with c2x.

DoS from .phonon

With dos.pl

dos.pl -gp -w 25 diamond.phonon
Integrated DOS =       5.9995

This script uses Gaussian broadening, and the default width is far too narrow. One needs to specify something, with the usual trade-off between too narrow giving unphysical oscillations, and too broad smearing out sharp features.

with c2x (versions later than 2.42a)

$ c2x --phdos_gnu -v diamond.phonon out.gnu
DOS sum,      spin=0: 5.989663
DOS integral, spin=0: 6.001501
$ gnuplot -p out.gnu

phonon_dos plotted by dos.pl

phonon_dos plotted by c2x

Again the left-hand plot shows the result with dos.pl, and the right-hand plot that with c2x.

C2x uses Blöchl's method for generating a DoS if given values on a regular grid. This needs no smearing width, and generally produces a superior output to Gaussian smearing.