Displacement and force vectors

Show how atoms moved relative to a reference frame, or draw forces already stored in the input. Style → Vector layers opens visibility and style controls for both layers and reports whether forces are available for the current frame. Analyze → Displacements provides the reference frame, minimum-image option, and statistics. Reading stored forces does not run a calculator.

Displacement analysis

Open Style → Vector layers to enable the layer. Use Analyze → Displacements for the reference and periodic mapping options.

  1. Choose Previous frame or Specific frame as reference.

  2. For a specific reference, enter its displayed one-based frame number in the GUI.

  3. Keep Minimum image enabled for periodic particle motion unless an unwrapped Cartesian path is intentionally required.

  4. Choose 3D arrow or 2D flat arrow.

  5. Adjust vector scale, thickness, and color.

When both frames have a common unique particle-ID array, v_ase compares matching IDs. Otherwise, equal-size frames are paired by row index, even when rows have been reordered or their elements differ. Verify identities before interpreting the arrows. With MIC enabled, the current frame’s cell sets the distance metric. This is the displacement between two frames. Accumulated diffusion across several box lengths requires unwrapped positions or image counters from the simulation. The two frames must use the same length units. For LAMMPS data the reported units may be file-native or reduced Lennard-Jones units.

Displacement vectors retain physical values. The renderer anchors them at current visible positions, repeats them with displayed supercells, and applies the same visual translation to both endpoints. Scaling changes arrow length, not the stored displacement.

Trajectory displacement vectors

Stored force vectors

Open Style → Vector layers and turn on Show layer under Stored forces. Choose 3D/2D style, length scale, thickness, and color.

Force arrows use only values already stored on the active frame in an ASE array or calculator result. The layer does not recalculate forces when you edit coordinates. After a physical edit, use the original calculated frame or supply freshly calculated forces for the edited geometry. When using v0.5.1, check any saved forces against their original calculation.

For stored Cartesian vector F, the displayed direction is exactly the direction of F and the arrow length is:

forceVectorScale × |F|

Displayed supercells repeat arrows with their atoms. During playback, force vectors and scalar colors are reloaded from the same active frame.

Open vector styling

Choose Style → Vector layers, or click Displacements or Force vectors in the Scene sidebar. Open Analyze → Displacements to change the reference or inspect statistics.

Inspect one atom’s stored properties

One selected atom exposes properties lazily for the active frame. The detail can include:

  • index, symbol, label, position, mass, tag, charge, and magnetic moment;

  • arbitrary scalar, string, vector, or tensor entries from Atoms.arrays;

  • stored calculator results; and

  • stored Cartesian forces.

The property request never evaluates a calculator. A selected replica uses the base atom’s property payload while retaining its displayed replica position for measurement.

Example: follow a probe above a Cu surface

Download stored-forces.extxyz. Open it with File > Open, or run this in the folder containing the download:

v_ase gui stored-forces.extxyz
  1. Open Style → Vector layers and turn on Show layer under Stored forces.

  2. To match the GIF, use 3D arrows, scale 3.4, thickness 0.04, and color #db4b32. The global atom-radius multiplier is 0.46, bonds are hidden.

  3. Play the 14 frames. The O probe moves; Cu atoms stay at fixed coordinates while their supplied force vectors change.

  4. Switch to displacement relative to frame 0. Stationary Cu should have zero displacement even though it has nonzero stored forces.

  5. Use a scalar colorscale to compare force magnitude by color.

Analytic stored probe-response forces on Cu, not a DFT or MD trajectory.

Analytic stored probe-response forces on Cu, not a DFT or MD trajectory.