Measure the geometry

Reproduce distance, angle and dihedral with example data.

Prepare the measurement selections

Import the teaching chain with two conformers (ZIP) and select index 0. In Atoms, click a row, then use Ctrl+click to add more rows or Shift+click to select a range. The projection lets you pick out an atom with a click. For several atoms, use the table. The text below the buttons lists the selected indices.

The viewer uses the indices in ascending order. The order of the clicks does not change the order of the measurement. For the angle, the middle atom by index is the vertex. In the dihedral, the two central indices define the bond axis, if the selected points follow a chain.

Distance between two atoms

Select rows 1 and 2 and press Distance (2 atoms). The result is Distance 1–2: 1.5000 Å. The distance is the norm of the difference of the Cartesian coordinates in three dimensions. In the synthetic chain the difference lies entirely along X. You can also measure atoms that are not bonded to each other.

Reading of 1.5000 Å between atoms 1 and 2 of the teaching chain.
Reading of 1.5000 Å between atoms 1 and 2 of the teaching chain.

Angle with three atoms

Select 1, 2 and 3. Press Angle (3 atoms). For the order 1–2–3, the vertex is 2. With the two Cartesian directions orthogonal, the result is 90.0000°. Check the reported vertex before interpreting a bond angle. For the CCD water, the indices are O, H, H and selecting all three measures O–H–H.

The angle of the teaching chain has its vertex at atom 2.
The angle of the teaching chain has its vertex at atom 2.

Dihedral with four atoms

Select the four rows and press Dihedral (4 atoms). The viewer computes the signed angle between the planes 1–2–3 and 2–3–4 around the central axis 2→3. At conformer 0 the result is −90.0000°. Select Conformer 1 and then reselect the atoms. The result changes to 120.0007° because the coordinate of the last atom changes. The signs follow the viewer’s index order.

Conformer 0 has a dihedral of −90.0000°.
Conformer 0 has a dihedral of −90.0000°.
The same sequence of four indices gives 120.0007° at conformer 1.
The same sequence of four indices gives 120.0007° at conformer 1.

Interpret a rejected measurement

Each button requires exactly the stated number of distinct atoms. On ccd_hoh the dihedral is rejected because only three atoms are available. If the atoms that define the vertex coincide, the angle is undefined. A dihedral needs two defined planes and two distinct central atoms. The measurement bar reports the reason instead of the value. The two test cases were reproduced with four collinear atoms and with the first two atoms coincident. Change the indices or try the other conformer and run the command again.

The measurement bar asks for four distinct indices when Dihedral is pressed.
The measurement bar asks for four distinct indices when Dihedral is pressed.