Plotter¶
Commands for adding atoms to the scene and animating them.
Mathematics¶
The key equation is: [1]
Where \(\nu\) is the mode identity, \(\omega\) is frequency, \(\mathbf{U}\) is the displacement vector, and \(\mathbf{u}\) is the displacement of atom \(j\) in unit cell \(l\). We can break this down to a per-mode displacement and so the up-to-date position of atom \(j\) in cell \(l\) in a given mode visualisation
Our unit of time should be such that a full cycle elapses over the desired number of frames.
A full cycle usually lasts \(2\pi/\omega\), so let \(t = \frac{2\pi f}{\omega N}\); \(-\omega t\) becomes \(-\omega \frac{2 \pi f}{\omega N} = 2 \pi f / N\) where \(f\) is the frame number.
The arrows for static images are defined as the vectors from the initial (average) positions to one quarter of the vibrational period (i.e. max displacement)
| [1] |
|