Working with Trajectories
This tutorial shows how to visualize molecular dynamics trajectories.
Opening Trajectory Files
Supported Formats
| Format | Extension | Description |
|---|---|---|
| VASP XDATCAR | XDATCAR, .xdatcar | VASP MD trajectory |
| Multi-frame XYZ | .xyz | XYZ with multiple frames |
| VASP OUTCAR | OUTCAR, .outcar | VASP output with ionic steps |
| QE Output | .out, .pwo, .log | QE output with ATOMIC_POSITIONS blocks |
| CASTEP Output | .castep | CASTEP geometry optimization/MD |
Open a Trajectory
- Open the trajectory file in VS Code
- ACoord detects multiple frames
- The Trajectory panel appears
- First frame loads automatically
Trajectory Panel
Playback Controls
| Button | Action |
|---|---|
| |< | Go to first frame |
| < | Previous frame |
| Play | Play animation |
| > | Next frame |
| >| | Go to last frame |
Frame Navigation
- Enter frame number in the input box and press Enter
- Or use Previous/Next buttons
Playback Speed
- Use the Speed slider (1-30 fps)
- Higher = faster playback
Analyzing Trajectories
Track Atom Movement
- Select an atom in the first frame
- Play the trajectory
- Selection persists across frames
Measure Bond Evolution
- Select two atoms
- Play the trajectory
- Distance updates each frame
Exporting Frames
Export Current Frame
- Navigate to desired frame
- Click Save As button in toolbar
- Choose format (POSCAR, XYZ, etc.)
Export HD Image
- Navigate to desired frame
- Click the Export button in toolbar
