Trajectory Animation
Visualize molecular dynamics trajectories with animation and energy plots.
Live Demo
Basic Usage
Frame Selection
| Index | Result |
|---|---|
-i : |
All frames |
-i 0:10 |
Frames 0-9 |
-i ::2 |
Every 2nd frame |
-i -1 |
Last frame only |
-i -20: |
Last 20 frames |
Energy Plot
Display energy synchronized with animation:
Energy is extracted from atoms.get_potential_energy() or atoms.info['energy'].
Force Vectors
Display force vectors on atoms:
Animation Controls
| Control | Description |
|---|---|
| Play/Pause | Toggle animation |
| Frame slider | Jump to frame |
| Copy frame | Copy current frame as XYZ |
| Copy all | Copy entire trajectory |