# The Structure tab

> The Structure tab draws a job's geometry in 3-D: the latest step, a trajectory or a NEB path, with playback, view options and the file it came from.

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

## In short

- The tab shows the latest geometry, a relaxation or MD trajectory, or a NEB path image by image, and opens on the last step.
- Under the picture are play and pause, a step slider, a 0.5×–4× speed control and More, which holds Smooth motion and Save as video.
- View options set the drawing style, the unit cell, how atoms at the cell boundary are treated, periodic images, the axes and auto-rotate.
- The view is read-only; nothing you do in it changes a file.

The Structure tab draws the job's atoms in 3-D. Depending on the job it shows the latest
geometry, the trajectory of a relaxation or a molecular dynamics run, or a NEB path image by
image. It opens on the last step, so the first thing you see is where the job is now.

The view is read-only. Nothing you do in it changes a file on the server.

## What it shows

Each code says which of its files hold geometry, and HiveBoard reads the first that has atoms
in it. A few examples:

| Code | What the tab shows |
|---|---|
| VASP | `XDATCAR` as a trajectory, else `CONTCAR` |
| VASP NEB | One frame per image folder |
| ORCA | The `_trj.xyz` trajectory of an optimisation |
| Others | Their engine's geometry files |

For VASP, at most the last 40 ionic steps of `XDATCAR` are played. Under the picture, the
**Source** line names what was read, the number of atoms and steps, and *(transitions smoothed)*
when there is more than one step:

> Source: XDATCAR trajectory (last 23 steps) · 14 atoms · 23 steps (transitions smoothed)

For a molecule with no periodic cell, the line adds *molecule (no periodic cell)*. Above it is a
legend of the elements, in the colours the picture uses.

The geometry is read when you open the tab. It is not read again while you watch: to see steps
written since, open another tab and come back.

A job that has not started, or a running job whose folder still holds an earlier run's files,
is labelled above the picture. See
[Queued jobs and reused folders](/docs/job/queued-and-reused-folders).

## Playing a trajectory

When there is more than one step, a play bar sits under the picture:

- **Play** and **Pause**. Playback runs through the steps and starts again from the first.
- The step slider, with the step shown beside it, such as *step 23 of 23*.
- The speed: **0.5×**, **1×**, **2×** or **4×**. At 1× each step takes 0.6 seconds.
- **More** (the three dots), which holds **Smooth motion** and **Save as video**.

### Smooth motion

Real steps are far apart, so HiveBoard draws in-between frames from one step to the next. With
**Smooth motion** on (the default), each atom's path curves through the whole trajectory (a
Catmull-Rom spline); off, it moves in straight lines between steps. Either way the in-between
frames take the periodic cell into account, so an atom that crosses a face glides across it
rather than streaking through the box. The in-between frames are drawn, not computed by your
code: only the steps themselves are the calculation's.

[Save as video](/docs/job/save-as-video) records the trajectory as it plays here.

## Moving the camera

- Drag to rotate.
- <kbd>Ctrl</kbd>-drag to pan.
- Scroll to zoom.
- **Reset the view**, one of the two buttons in the top-left corner of the picture, recentres
  and fits the structure, and stops auto-rotate.

## View options

The other corner button, **View options**, holds the settings you set once and leave:

| Option | What it does | Default |
|---|---|---|
| Drawing | Ball and stick, Space filling or Sticks | Ball and stick |
| Unit cell | Draws the box the structure repeats in | On |
| At the cell boundary | Repaired, Original or Clipped | Repaired |
| Periodic images | Shows atoms that cross a face on both sides | On |
| Axes | A corner triad; click an axis to look down it | On |
| Auto-rotate | Turns the camera, not the atoms | Off |

**Unit cell**, **At the cell boundary** and **Periodic images** appear only for a structure
with a periodic cell. **Periodic images** works only with **Repaired**.

This browser remembers **Smooth motion**, **At the cell boundary**, **Periodic images** and
**Axes**. The drawing style and auto-rotate start afresh each time you open the tab.

### At the cell boundary

- **Repaired** — molecules are kept whole; atoms that stick out of the box are drawn paler. A
  molecule that crosses a face stays in one piece, and a slab stays as the file wrote it.
- **Original** — no boundary treatment: atoms may sit outside the box, and during a trajectory
  an atom that crosses a face carries on outside it.
- **Clipped** — every atom is wrapped into the box. A molecule that straddles a face is shown
  split.

None of these changes the atoms' positions in the file. They only decide where in the repeating
lattice each atom is drawn.

## Measuring

Click an atom to read its position, two for a distance, three for an angle. The readout follows
playback. See [Measuring atoms](/docs/job/measuring-atoms).

## When there is nothing to show

If the folder holds no geometry the code's engine knows, the tab says **No structure to show**,
names the files it looked for, and offers **Open Files**.

To edit a geometry, download it from the [Files tab](/docs/job/files-tab) and open it in a
structure editor. HiveBoard never edits a job's geometry in place.

## Check yourself

1. What does Repaired do at the cell boundary?
   - Keeps molecules whole and fades atoms outside the box ← the answer
   - Wraps every atom into the box, even if a molecule splits
   - Shows the coordinates exactly as the file wrote them
   - Moves atoms back to where they were in POSCAR
   Why: Repaired keeps molecules whole and draws atoms that stick out of the box paler; Clipped wraps every atom in, and Original shows them as written.

2. A relaxation keeps running while the Structure tab is open. How do you see the steps it has added?
   - Open another tab and come back to Structure ← the answer
   - Wait 15 seconds; the picture updates by itself
   - Press Reset the view
   - Turn Smooth motion off and on
   Why: The geometry is read when you open the tab; it is not read again on the 15-second refresh.

## Try it in the app

- Open one of your relaxations on the Structure tab, press play, and try each speed.
- Open View options and switch the drawing to Space filling, then back to Ball and stick.
- Turn the camera by dragging, then press Reset the view.

## Related

- [Measuring atoms](https://hiveboard.dev/docs/job/measuring-atoms.md)
- [Saving a trajectory as a video](https://hiveboard.dev/docs/job/save-as-video.md)
- [Queued jobs and reused folders](https://hiveboard.dev/docs/job/queued-and-reused-folders.md)
- [Comparing jobs](https://hiveboard.dev/docs/compare/compare-jobs.md)
- [The twenty supported codes](https://hiveboard.dev/docs/codes/supported-codes.md)
