Play and inspect trajectories

Step through structures, inspect stored values and export motion. Open an ASE trajectory or supported multi-frame file; use the bottom timeline in View.

Open a trajectory

v_ase gui trajectory.extxyz
v_ase gui XDATCAR --index :
v_ase gui relaxation.traj --index -1
v_ase gui dump.lammpstrj --stream-frames

--index : selects all frames, -1 selects the last frame, and an integer selects one zero-based frame. A loaded file starts in View unless --interactive is supplied.

Lazy and streamed sources

View mode can avoid materializing the whole trajectory:

  • XDATCAR uses coordinate byte offsets when its layout can be proved safe;

  • native ASE .traj uses random access;

  • compatible numeric LAMMPS dumps use a byte-indexed, memory-mapped path; and

  • --stream-frames requests frames individually for other supported local sources.

Remote HOST:/path inputs always keep frame storage and parsing on the remote host. Switching to Edit materializes the frames required for topology-wide physical operations. An unsupported fast layout falls back to the compatible ASE reader instead of guessing.

Timeline controls

Use the bottom timeline or keyboard:

Control

Action

Space

Play or pause the active timeline

Home / End

Pause and jump to the first or last frame of the active timeline

Option+Left/Right Arrow (macOS); Alt+Left/Right Arrow (Windows/Linux)

Previous or next active-timeline frame

Previous/Next buttons

Step one frame

FPS

Playback rate

Skip

Advance by more than one source frame

v_ase can show several timeline kinds without merging them:

  • Source frames loaded from a file or Python sequence;

  • ordinary structure Relaxation frames;

  • Add Atoms placement-relaxation frames; and

  • Rigid Translation registry-relaxation frames.

The selected timeline alone receives playback and modified-arrow input. Plain arrow keys orbit or tilt the structure view without changing frames. Optimizer timelines are mode state, not silently appended source trajectories.

Add or replace frames

Open can replace the current document, append compatible frames, or open a new tab. Appending keeps the active frame, camera, and visual state. Appending a .vase imports only its structures; replacing or opening it in a new tab restores the complete saved project.

In Edit structure, right-click the timeline and choose Delete current frame. The next source frame becomes active. Deleting the last frame moves the timeline to the preceding one. When one frame remains it becomes a single structure. One Undo restores the removed frame, including its labels, properties, energies and forces.

If appended frames introduce new labels, v_ase registers them without discarding existing appearance. A variable atom count or changed element order is allowed for inspection but limits identity propagation and some analysis.

Match atom indices across source frames

Load at least two source frames with the same element counts and switch to Edit structure. Click Match atoms… beside the frame counter, right-click the timeline, or open the document menu and choose Edit → Match trajectory atom indices…. In Find tools, search for permutation, atom order, atom correspondence, or index matching.

Choose Minimum image, Cartesian distance, or SOAP + translation, then click Match indices. The command automatically matches atoms within each element against frame 1 and reorders the working source frames. Minimum image and Cartesian distance change the order. SOAP + translation also applies the best rigid shift and clears geometry-dependent stored results in moved frames. Undo restores the coordinates, order and stored results. Verify particle IDs or known correspondences if equivalent atoms can exchange places. Matching methods

Frame identity and selection

In Selected atoms, Apply to → All frames follows the selected indices. It is the default when each frame has the same atom count and element composition, and each selected index has the same element and effective label. The scope check compares stored ID arrays named id, atom_id or atom_ids when present. Other ID names and equal labels on exchanged atoms can leave a reordered trajectory eligible. Before applying to all frames, verify that the same particle occupies each selected row. Label differences at unselected indices are allowed. v_ase shows the first incompatible frame and updates eligibility after frame deletion, Undo, Redo and selection changes. A deliberately chosen Current frame only remains selected.

Current frame only asks for confirmation before updating the selected atoms. The edit invalidates label-based analysis results and retains stored energies and forces. The assigned labels and appearance survive View/Edit switches and project save and reopen.

In Per-label appearance, editing the name replaces that exact label throughout the trajectory, even if frame sizes, compositions and order vary. Appearance and label-based rules move with a renamed label. A confirmed merge uses the destination label’s settings. Expand a row to find Delete label. An unused label remains available until deleted. If it is used in a different frame, the row shows Used in other frames. Choose a destination for its atoms when deleting a label that is in use.

Do not reuse an atom index merely because the viewport looks similar. Verify the active frame, count, labels, chemical elements, and any particle-ID array before a coordinate-dependent operation.

Example: inspect a recorded contact-removal run

Download crowded_c60_relaxation.traj. Open it with File > Open, or run this in the folder containing the download:

v_ase gui crowded_c60_relaxation.traj
  1. Drag the timeline to frame 0 and inspect the crowded input.

  2. Play, pause and step one frame at a time to compare intermediate geometry.

  3. Choose original frames for scientific inspection. Interpolation creates a visual path between stored frames and adds no calculated dynamics.

  4. Keep atom identity consistent before applying index selections across frames.

  5. Export the chosen range through Video export.

A saved relaxation sequence used as a trajectory playback example.

A saved relaxation sequence used as a trajectory playback example.

Energy and structural analysis

Turn on Overlays → Energy graph for recorded energies, or use Analyze → Distributions for the current frame’s pair statistics. For a reaction path, first check the atom correspondence and how the coordinates are wrapped. Energy profiles and NEB fits · Pair distributions

Analysis frame synchronization

Changing a displayed frame refreshes every enabled frame-dependent result:

  • RDF or finite pair distribution;

  • atom colorscale values;

  • stored force vectors;

  • displacement vectors; and

  • frame-associated volumetric surfaces and planes.

Ordinary-sized RDF frame/results are prefetched for smooth playback; larger products use a bounded rolling window. A pending result may leave the previous curve visible until calculation completes, but semantic verification must confirm the reported result frame. A missing frame-associated volumetric field is hidden rather than reusing stale data.

Coordinate precision

Cached and streamed browser coordinates retain the original double precision. Visiting a frame and then editing or exporting it does not replace its scientific coordinates with the GPU’s lower-precision vertex data.

Delete atoms across frames

For a multi-frame source trajectory in Edit, choose Current frame only or All frames · same indices in the deletion dialog. All frames removes those zero-based indices regardless of element names; shorter frames skip indices they do not contain. Remaining arrays, labels and supported constraints are remapped per frame. Playback pauses before the choice. Cancel or Escape leaves every frame unchanged; Undo restores the full operation, not just the displayed frame. View-mode hiding remains a visual action.