CaB2 phonon DoS and c2x

Warning: this calculation is unconverged nonsense as far as CaB2 is concerned, but is still a useful demonstration of how to use c2x to analyse output, so remains.

Removing the phonon_fine_kpoint_path from the .cell file and adding

  phonon_fine_kpoint_mp_grid 16 16 16

calculates on a uniform grid suitable for constructing a DoS. If one has already performed the band structure calculation, then taking a copy of the .check file and adding

continuation : CaB2.check

to the .param file will reduce the run-tim from around a core-week to around a core-minute.

  $ c2x --phdos_eps CaB2.dos.phonon out.eps
  $ c2x --phdos_eps --dosfill CaB2.dos.phonon out.eps

CaB2 phonon DoS

CaB2 phonon DoS, filled

Worthy, but dull. Would it not be more interesting to colour the bands according to the contribution from different species, with Ca green and B red?

$ c2x --phdos_eps --phcolour=00ff00:Ca+ff0000:B --dosfill CaB2.dos.phonon out.eps

CaB2 DoS, coloured by species

One can also add to the plot lines showing the contributions from the individual species.

$ c2x --phdos_eps --phcolour=00ff00:Ca+ff0000:B --dosfill --doscolour=+++ CaB2.dos.phonon out.eps

Here doscolour is being used to toggle the visibility of the three DoS plots (full DoS, then projected DoSes in the order of phcolour). A plus sign means show, and a minus sign do not show.

CaB2 DoS, coloured by species

Other possibilities include

$ c2x --phdos_eps --phcolour=00ff00:Ca+ff0000:B  --doscolour=+++ CaB2.dos.phonon out.eps

Three unfilled lines, the full DoS coloured as before but not filled.

$ c2x --phdos_eps --phcolour=00ff00:Ca+ff0000:B  --doscolour=+++ --dosfill=+++ CaB2.dos.phonon out.eps

Ditto, but all three lines filled. The filling has zero transparency, so this is unlikely to be helpful. Fill strings such as +-+ might be more helpful.

$ c2x --phdos_eps --phcolour=00ff00:Ca+ff0000:B  --dosfill --doslinecolour=,,white CaB2.dos.phonon out.eps

Fill the DoS with a gradient fill using red for boron, but plot the boron-projected DoS with a white line.

$ c2x --phdos_eps --phcolour=Ca+B --dosfill --doslinecolour=black,red,green CaB2.dos.phonon out.eps

Fill the DoS in black, and plot Ca and B projected DoSes as red and green lines.