MolForma

Coordinate table (“1 Molecule”)

The “3D + table” layout: the 3D view above and the coordinate table below, with O8 and D9 (mass 2) highlighted in both

Figure 1 The “3D + table” layout (ethanol-OD). Rows of the table and atoms of the 3D view share the selection, and the distance of the two chosen atoms appears at the lower left of the 3D view. H9 in the mass column is deuterium (2).

The “Table” layout: only the table is shown, and the selection bar shows C1, O8 and the distance 1.4249 Å

Figure 2 The “Table” layout. Without the 3D view, the distance, angle or dihedral of two to four chosen atoms appears in the selection bar above the table.

NWChem output

The “Export” menu in the operation row copies the NWChem geometry block or XYZ (always Å), or writes it to a file (“Export …”, .nw / .xyz). The unit of the NWChem coordinates is independent of the display unit of the table and is set with “Coordinate units” in “2 Calculation” (saved in document.nwchem.geometry_units, with undo/redo support); the menu item names show the current unit.

The export from the table is an input fragment of the coordinates and fixed atoms. Create the complete calculation input in “2 Calculation” and check it in “4 Input preview”. Export is disabled while there is an unconfirmed candidate. Calculations are run with “3 Run settings”, and output is viewed in the “Result viewer”. Existing NWChem input can be imported with “File → Open”. Using the table does not require an NWChem installation.

Input specification references: Cartesian coordinate input, Geometry keywords, Constraints, Basis sets.

Testing the coordinate table

ctest --test-dir build --output-on-failure runs the existing core/editor regression tests and coordinates. coordinates checks unit conversion and precision, per-cell rollback, isotopes, ghosts and fixing, selection sync, adding atoms (element buttons, nearest atom), candidates and undo/redo, the candidate comparison (by ID and by atom order, the change column and its filter), file drops, the display without atoms, the residue column, the filter and the selection bar (measurements only in the “Table” layout, no operation buttons), bulk fixing and ghosting through the right-side pages, showing and hiding “Coordinates (one atom)”, opening and closing the parts palette and the number of table rows in a narrow window, “View → 1 Molecule layout”, the export menu, switching layouts with the 3D view, invalidated references and the preserved envelope when the structure is replaced, saving the output unit, and fixed atom numbers after sorting.

For optional visual checks and checks with a real NWChem, the following command produces screenshots and test input for NWChem (STO-3G, water plus a carbon ghost, deuterium, fixed oxygen). Regular CTest runs do not need NWChem.

QT_QPA_PLATFORM=offscreen MOLFORMA_COORDINATE_ARTIFACTS=/tmp/molforma-coordinates \
  ./build/test_coordinates nwchemExportAndSettings

In the check on 2026-10-22, the Å and Bohr inputs above were run with NWChem 7.3.1; fixed atom 4 and the zero-nuclear-charge bqC were recognized, and the SCF energies were −74.945716644654 and −74.945716644653 Hartree, respectively.

See also: recipe 9 Complexes of molecules and BSSE, recipe 15 Isotopes and atom order, the list of pages in “Features”.