SPAR operator files and conventions

A BASIC-FUNCTION block defines the coordinate functions. The operator file supplies their coefficients and index tuples. Both are needed to reconstruct the model. TROVE has several checkpoint readers, selected by the input options; a filename ending in .chk does not identify its format.

KEO components

The kinetic checkpoint contains four consecutive sections:

Meaning of the component indices

Section

Indices

Meaning

Gvib

k1, k2

Two vibrational modes

Grot

k1, k2

Two body-fixed rotational axes (1, 2, 3)

Gcor

k1, k2

Vibrational mode followed by rotational axis

Pseudopotential

k1, k2

Scalar contribution; retain the file’s placeholder fields

In the mode-indexed KEO reader, a data record has the layout:

k1 k2 term grid coefficient l1 l2 ... lD

In the mass-factorised reader the layout is:

k1 k2 term grid coefficient l0 l1 l2 ... lD

term is local to the component. Keep component records together. grid is 0 for a rigid-reference file; non-rigid grid handling requires the matching reference-configuration setup. A zero coordinate index selects the constant function. In the mass-factorised format l0 is a positive atom index in the ZMAT mass order; it is not a coordinate exponent.

Each section has a header and ends with a sentinel record beginning with 987654321. Preserve the remaining sentinel fields as well: the reader reads the whole record before checking the sentinel. Keep the final threshold record and footer, where present. The abbreviated tables in the paper omit some native checkpoint fields and are not complete files.

Units and mass factors

The ordinary mode-indexed reader uses the supplied coefficients directly in TROVE’s internal energy convention. A checkpoint written by the matching TROVE calculation is the safest starting point for this route.

The mass-factorised reader multiplies each coefficient by an internal conversion factor divided by mass(l0). The factor in fields.f90 is

\[C=\frac{h N_{\rm A}\,10^{16}}{4\pi^2 c},\]

with the physical constants in TROVE’s own unit convention. The conversion is consistent with distances in angstroms, angular coordinates in radians, nuclear masses in atomic mass units, and output energies in \(\mathrm{cm}^{-1}\). Do not multiply a saved internal-unit checkpoint by this factor a second time. Compare a reconstructed operator at several geometries before using converted coefficients for a spectrum.

Selecting a reader

An external mode-indexed KEO commonly uses the following checkpoint option:

CHECK_POINT
  kinetic read with_modes
END

This is an excerpt, not a complete restart specification. Pair it with the appropriate BASIC-FUNCTION block, KINETIC settings, coordinates, frame, and basis. BASIC-FUNCTION MASS selects the additional mass column. See Checkpoints for the other checkpoint objects and the staged TROVE workflow. Reusing wavefunctions or matrix elements requires compatible dimensions and conventions as well as compatible files.

A BASIC-FUNCTION block (KINETIC or MASS) selects the mode-indexed reader by itself, so kinetic read is sufficient and with_modes is optional. The PH3 inputs of PH3: 1D-based and 2D-based SPAR kinetic energy operators use kinetic read.

Do not retain KINETIC COMPACT when intending to read an external file: at this revision that option unconditionally changes KINETIC READ to SAVE for the built-in construction route. In the H2S round-trip test, the entire built-in KINETIC block is removed, the explicit function library is retained, and kinetic read with_modes is specified after the CONTROL block. The saved kinetic.chk is copied into the fresh run directory. This exercises the external reader instead of rebuilding the operator. See H2S: a compact SPAR kinetic operator.

Two-dimensional KEO integrals

A 2D-based KEO (Eq. (2) of SPAR: operator representations) needs a second file, keo_2d_s4s5.chk, with the integrals of its 2D functions over modes 4 and 5. TROVE reads it whenever it exists in the working directory; there is no input keyword. The element me2d(iop4, iop5, i4, i5, v4, v4', v5, v5') is the integral \(I^{(o_4o_5)}_{k_4k_5}(v_4v_4';v_5v_5')\) defined on PH3: 1D-based and 2D-based SPAR kinetic energy operators, with \(o_4=\) iop4, \(o_5=\) iop5, \(k_4=\) i4 and \(k_5=\) i5. iop4 and iop5 (0–3) give the placement of the derivatives, i4 and i5 are the labels of the 2D function used in columns l4 and l5 of kinetic.chk, and v4, v4', v5, v5' are harmonic-oscillator quantum numbers. Two formats are recognised from the first bytes of the file.

The ASCII format, written by default, looks like this:

keo_2d_s4s5   2D (s4,s5) integrals of the KEO terms of modes 4 and 5
     8     6     1382976   <- kmax, vmax, number of entries
 mode=exact ft=0.2865833376039929 rmax=2.45 n_rho=80 n_theta=96 rank=63
 iop4 iop5  i4  i5  v4 v4'  v5 v5'                   value
    0    0   0   0   0   0   0   0   9.9999999999999356e-01
...
End of keo_2d_s4s5

The first line must start with keo_2d_s4s5. The second gives \(k_{\max}\), \(v_{\max}\) and the number \(N\) of entries. The third line is free text; the generator records its parameters there. The fourth line is a column header. Then follow \(N\) lines iop4 iop5 i4 i5 v4 v4' v5 v5' value for the non-zero elements, and the line End of keo_2d_s4s5. Missing elements are zero. Values with 17 significant digits reproduce the double-precision numbers exactly. TROVE stops if an entry lies outside the ranges in the header or if End does not follow the \(N\) entries.

The binary format (exact_2d_keo.py --binary) is a stream file without record markers. It contains two 4-byte integers, \(k_{\max}\) and \(v_{\max}\), followed by the 8-byte real array me2d(0:3, 0:3, 0:kmax, 0:kmax, 0:vmax, 0:vmax, 0:vmax, 0:vmax) in Fortran order and native byte order.

For PH3 with \(k_{\max}=8\) and \(v_{\max}=6\), the ASCII file has 1 382 976 entries (about 83 MB) and the binary file is 25 MB; TROVE gave the same energies with both. A kinetic.chk whose l4, l5 columns hold 2D labels is meaningful only together with the keo_2d_s4s5.chk generated with it. The consistency checks performed by TROVE, and those left to the user, are listed on PH3: 1D-based and 2D-based SPAR kinetic energy operators.

Potential and dipole files

The potential and external-property readers have their own record formats and function-index conventions. External-property records include a component index; the meaning of that component depends on the chosen body-fixed frame and property representation. The model must specify that mapping explicitly. The compact tables in the SPAR supplementary material document the model coefficients, while SPAR input syntax and migration describes the current TROVE constructor. Neither replaces a complete native checkpoint example.

Validation before reuse

  1. Check atom, coordinate, and component order against the derivation.

  2. Check every tuple against its function library and mass convention.

  3. Evaluate the reconstructed functions at non-singular geometries and compare them with independent analytic expressions or reference data.

  4. Run a small calculation from a clean directory. Inspect the program’s completion message and selected levels; a zero process exit status alone does not prove that a Fortran program completed.

  5. Check a nonzero-J case before claiming rotational/Coriolis validation, and a transition observable before claiming intensity validation.

The H2S example tests the explicit kinetic-function library and the ordinary mode-indexed KEO checkpoint reader. It is separate from validation of the mass-factorised and external PEF/DMF readers.