Animations

Creating animations of phonon trajectories

To create animated gif files of phonon trajectories, simply add the following to your input file:

NUMBER_OF_TIMESTEPS            = 300

# Animation parameters:
OUTPUT_PATH_ANIMATION          = True
OUTPUT_TRAJECTORIES_OF_FIRST   = 30
OUTPUT_ANIMATION_FPS           = 24

Note that NUMBER_OF_TIMESTEPS should not be too large, otherwise the generation of animation may take a very long time, because one frame for each time step will be created. A few hundred time steps is a reasonable value. The file below shows an example of animated phonon trajectories:

Note that the library used to create animations (imageio) often introduces breaking changes, so the animation functionality may not work as expected.

Last updated