Phonons and DFT: the Theory of 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.
To illustrate some of the issues, a simple 1D chain is presented, with just a single atom in its unit cell. The only phonon mode with the periodicity of the unit cell is the one in which all atoms in the extended system move in the same way, i.e. a rigid translation. The use of q-points (the analogue to the k-points of electronic structure) enables phonons with a longer-range periodicity than the unit cell to be calculated.
Consider a supercell of four atoms. Now there are four phonon modes, and the eigenvectors can be determined by inspection.
1 1 1 1 translation
1 -1 1 -1 high frequency mode
1 0 -1 0 intermediate mode
0 1 0 -1 intermediate mode
The eigenvectors are orthogonal.
But there is an immediate source of confusion. The two intermediate modes have the same frequency, and so are degenerate. This degeneracy arises because the modes as shown are related by a symmetry operation, a translation of one atomic spacing. This means that any linear combination of these two modes must also be an eigenmode. So we could have written them as
1 1 -1 -1 intermediate mode
1 -1 -1 1 intermediate mode
where the first new mode is the sum of the original pair, and the second their difference. In many ways these modes look quite different from the original pair, not least because in each two bonds are inactive, but they are just a different representation of the same degenerate pair of modes.
Degeneracies and q-points
The translational mode above arises from a q-point of zero, and the high frequency mode from a q-point of a half. The two intermediate modes arise from q-points of plus and minus a quarter (or one quarter and three quarters, as q-space is periodic). The modes at points q and -q are always degenerate.
DFT codes generally produce complex modes with the q-point appearing as exp(2πiqx). These modes represent travelling waves. The phonons at +q and -q are degenerate, and their eigenvectors are the complex conjugates of each other, and orthogonal to each other.
If the q-point is rational, it is possible to find a supercell in which it maps to the Γ point. For the q-points of one quarter and minus one quarter, this would be a supercell of four times the length. How can one then construct the real standing wave from the pair of complex travelling waves?
The eigenvectors are the conjugates of each other, so one simply needs to extend the eigenvectors to the supercell, and then add. Adding a complex number to its conjugate will always give a real quantity.
But there must be two independent modes, and the other is found by taking the difference, not the sum. This will give a result which is purely imaginary, but an eigenvector remains an eigenvector when scaled, so it can be multiplied by i to make it real.
There is an obvious short-cut: simply take the real and imaginary components of one of the original eigenvectors.
But how can we better reveal the alternative representations of the standing waves? Consider the following approach.
One can take the real part, or one can premultiply by -i and then take the real part (equivalent to taking the imaginary part). One can then take a linear combination of these two vectors, and using the form a.cos(φ)+b.sin(φ) will keep things nicely normalised as φ is varied.
But this could be rewritten as
Re((cos(φ)+i.sin(φ))v)
where v is one of the original complex eigenvectors. Now φ=0 gives the real part, φ=π/2 the imaginary part, φ=π/4 an equal combination of the real and imaginary parts, etc.
A Castep Example
A system of a 1D carbon chain is described here. The calculation should take a few core-minutes. C2x version 2.50a or later is required.
The transverse modes are the easiest to visualise, so here we pick the modes with an eigenvector pointing in the y direction. First the second mode from the q-point of a quarter, the second q-point listed.
$ c2x --ph2force=2,2 C1.phonon C1_4.xsf $ xcrysden --xsf C1_4.xsf Display | Forces Modify | Force Settings | Length Factor | 2

Note that c2x has automatically selected the minimum supercell for displaying this mode.
The highest frequency mode comes from q=0.5. To display in the same manner, with four atoms, we must explicitly give the supercell size, otherwise a two atom cell will be chosen. The second mode from the third q-point is wanted.
$ c2x --ph2force=3,2 -x=4x1x1 C1.phonon C1_2.xsf

And the trivial translation in y comes from mode 2 and q-point 1.
$ c2x --ph2force=1,2 -x=4x1x1 C1.phonon C1_1.xsf

But we have shown three modes, and there should be four. The missing one is the other q=0.25 mode.
$ c2x --ph2force=2,2:pi/2 C1.phonon C1_q4_2.xsf
If the expression for φ includes the string "pi", c2x assumes it is in radians. Else it assumes degrees, so one could write "90" in place of "pi/2".

To show the alternative syntax for φ, and an alternative representation for the q=0.25 modes,
$ c2x --ph2force=2,2:45 C1.phonon C1_q4_3.xsf

This mode is the sum of the two q=0.25 modes shown previously.
Practical details
The eigenvectors produced by DFT codes are typically:
- orthogonal
- normalised to one
- represent displacement scaled by the square root of the atomic mass
- when expanding, need a factor of exp(2πiqR) where R is the lattice vector from the expanded atom to its counterpart in the original cell.
If two vectors are orthogonal, their sum has length √2. So v+v* has length √2, and Re(v)=0.5(v+v*) has length 1/√2. Thus √2Re(v) has unit length.
The normalisation means that phonons in large cells look smaller than those in small cells. For periodic systems the magnitude is not very meaningful, as there is effectively a continuum of possible excitement amplitudes. (For an isolated system, the quantisation of the phonon energy may lead to significant steps between allowed vibration amplitudes.)
Although normalisation to one has problems, so do most other schemes. Normalisation to number of atoms might create surprises for those studying vacancies, and normalisation to cell volume would upset those studying surfaces and varying the amount of vacuum present. So one might wish to rescale in some appropriate manner.
Visualising a single mode, when modes occur in degenerate pairs, can be unhelpful. Another possibility is to visualise the modulus of the displacement associated with this pair of modes. This will be an ellipsoid.