Phonons and DFT: Mode Visualisation
Visualising phonons is tricky. They move, and pictures on paper do not. Pictures on screens can move, but it can still be tricky working out what is going on.
At the Γ point modes are stationary waves, not travelling waves, so visualisation by showing a snapshot when displacements are maximised is reasonable. C2x can expand a phonon at a rational q-point into the minimal supercell which maps that q-point to Γ.
$ c2x --ph2force=20,1 -x=3x3x1 -CaB2.phonon out.xsf Phonon 1 from q-pt (0.333333,0.333333,0) $ xcrysden --xsf out.xsf Display | Forces Modify | Force Settings | Length Factor | 7 Modify | Number of Units Drawn | X=2 Y=2 Z=1

Above a phonon mode from CaB2. This low-frequency mode has activity on the heavy Ca atoms. A ring of six moves up, whilst the atom in the centre of the ring moves down. The calculation used a three-atom cell and a q-point of (1/3,1/3,0), and c2x has expanded into a 3x3x1 supercell.
Further notes on:
C2x syntax
(C2x 2.50a or later is required.)
--ph2force=[nq,]nb[:phi][:flags]
nq -- q-point number. If not present, default is 1
nb -- band/mode number. Must be present
phi -- multiply mode by exp(iφ) before taking real part. If the string includes "pi", radians are used, else degrees
flags -- any combination of:
- d -- convert eigenvector components to displacements (i.e. scale by 1/√mass)
- s -- square the modulus of each atom's displacement
Explicitly setting the supercell size using the
usual -x or -X options enables one to view
phonons of different periodicity in the same supercell. Otherwise c2x
will try to construct its own supercell for the given q-point.
Output to any file format which can include atomic positions and forces, so mostly .xsf, which is c2x's default, and therefore does not need specifying explicitly.