# Measuring atoms

> Click atoms in the Structure tab to read a position, a distance or an angle: minimum-image in a periodic cell, and live while a trajectory plays.

Source: https://hiveboard.dev/docs/job/measuring-atoms · Section: One job, opened · HiveBoard 0.1.7 · Updated 2026-10-19

## In short

- Nothing needs switching on — click one atom for its element, number and position, two for a distance, three for an angle.
- The readout follows playback, so a bond length can be watched changing over a relaxation.
- In a periodic cell a distance is the minimum-image one, and the readout says when the nearest copy is through a cell face.
- Click a picked atom again to drop it, or press Clear to drop them all.

You can measure a structure in the [Structure tab](/docs/job/structure-tab) by clicking its
atoms. Nothing needs switching on: under the picture HiveBoard says "Click an atom to measure
it. Two atoms give the distance between them, three give the angle. Click a picked atom again
to drop it."

## What each click gives

| Atoms picked | What the readout shows |
|---|---|
| One | Its element, number and x, y, z in Å |
| Two | The distance between them, in Å |
| Three | Both distances, and the angle at the middle atom |

Atoms are named by element and number, such as `O14`. The number counts from 1 in the order the
file lists the atoms, so `O14` is the fourteenth atom of the geometry file. Positions and
distances are given to three decimals, angles to one decimal, in degrees.

In the picture, picked atoms are highlighted and a dashed line joins each pair, labelled with
its distance.

To change what is picked:

- Click a picked atom again to drop it.
- Click a fourth atom and the first pick is dropped: the readout keeps the last three.
- Press **Clear** to drop them all.

## It follows playback

The picks stay on the same atoms while a trajectory plays, and the distances and angle are
worked out again for every frame. A bond that stretches over a relaxation, such as the C–O bond
of the CO on Pt(111) in `pt111-co-relax`, can be watched rather than worked out step by step.

> [!TIP]
> Between two steps the picture shows in-between frames drawn for smooth playback, and the
> readout measures those. To read a value the calculation itself wrote, drag the step slider:
> it stops on real steps.

## Distances in a periodic cell

In a periodic cell, the readout gives the **minimum-image** distance: the distance to the
nearest copy of the second atom, which is the number a chemist means. Two atoms either side of
a cell face are neighbours, however far apart the screen draws them. When the nearest copy is
not the one drawn, the line says so:

> (nearest copy, through the cell edge)

The angle is worked out from the same minimum-image directions. A molecule with no cell, such
as an ORCA job's, has no copies, and the readout and the picture agree.

## When picks are dropped

Changing **Smooth motion**, **At the cell boundary** or **Periodic images** rebuilds the
picture, and the picks are dropped: the number of atoms drawn changes when periodic images
come and go, so a kept pick could point at another atom.

Measuring changes nothing. The geometry on the server is only read.

## Check yourself

1. You pick two atoms on either side of a cell face. Which distance does the readout give?
   - The distance to the nearest copy, through the face ← the answer
   - The distance across the box, as drawn on screen
   - Both, always side by side
   - None; picking across a face is refused
   Why: In a periodic cell the readout gives the minimum-image distance and adds that it was measured through the cell edge.

2. You have three atoms picked and click a fourth. What happens?
   - The first pick is dropped and the last three are kept ← the answer
   - The fourth click is ignored
   - All picks are cleared
   - A dihedral angle is shown
   Why: The readout keeps the last three picks; a fourth click drops the oldest.

## Try it in the app

- In one of your relaxations, pick two bonded atoms, press play, and watch the distance change.
- Pick three atoms and read the angle at the middle one.
- Click each picked atom again to drop it.

## Related

- [The Structure tab](https://hiveboard.dev/docs/job/structure-tab.md)
- [Saving a trajectory as a video](https://hiveboard.dev/docs/job/save-as-video.md)
- [Comparing jobs](https://hiveboard.dev/docs/compare/compare-jobs.md)
