User Guide#

What the step makes#

The step works on the current configuration, which should be a minimum of the model chemistry chosen by a Model Chemistry step earlier in the flowchart. From the Hessian of that model chemistry it makes, in a new system named ‘<molecule> training’:

  • the minimum itself, as the first configuration;

  • normal-mode samples (‘sample 1’, …): the classical shape, which gives every mode the same expected energy, scaled to a harmonic energy drawn uniformly between the minimum and maximum target energies (0.5 and 9 kcal/mol by default). Modes below the lowest frequency (100 cm⁻¹) are left to the scans. By default there are half as many samples as sampled modes, between 10 and 40. These are the samples of the Normal Mode Sampling step’s energy-targeted distribution;

  • relaxed torsion scans (‘scan 1 C2-C3 +45’, …) of up to two heavy rotors: acyclic, non-conjugated single bonds with a heavy atom beyond each end, those that move the most heavy atoms first. Methyl, OH and NH₂ rotations are left to the samples, and conjugated bonds (amides, esters, aryl ketones) are left out because their barriers are high. The dihedral goes around the circle in 15° steps; each point is relaxed with the dihedral held fixed, at the generator level (GFN2-xTB by default);

  • bond stretches (‘stretch C-H +’, ‘stretch C-H -‘): the median bond of each bonded element pair is lengthened and shortened by a, where ½ a² vᵀHv equals the stretch energy (8 kcal/mol), at most 0.10 Å;

  • for a diatomic, a stretch grid of 100 points out to a harmonic energy of 9.5 kcal/mol, in place of the samples and stretches.

Checks#

Every point is checked before it is kept:

  • The bonds: atoms closer than 1.3 times the sum of their covalent radii are bonded, and a point must have exactly the minimum’s bonds (a stretch point’s own bond excepted). A sample that fails is drawn again; other points are dropped.

  • The pre-screen: the energy at the generator level must be within 15 kcal/mol of the minimum’s.

  • The limits on samples: no atom moves more than 0.30 Å, no bond length changes by more than 0.20 Å and no bond angle by more than 15°. A sample is drawn up to five times, keeping its target energy, then dropped.

The output lists the points dropped and why.

The Hessian#

For open-shell molecules, and a random 5 % of closed-shell ones, the Hessian is checked along three random displacements δ (0.005 Å RMS) against central differences of the gradient: e = ‖Hδ − [g(x₀+δ) − g(x₀−δ)]/2‖ / ‖Hδ‖. If any e exceeds 0.02, or any frequency exceeds 5000 cm⁻¹, the Hessian is refused and replaced by finite differences of the gradient. How the Hessian was made and checked is stored with the minimum.

Properties of each point#

Each configuration carries, as properties <name>#TrainingStructures#generation: the point type; the target and harmonic energies; the pre-screen energy; for scans the dihedral and the change of angle; for stretches the element pair, the bond and the change of length. The random seed is reported and saved with the results.

Exporting the labelled points#

After an Energy step has labelled the points (energies and gradients, with the model chemistry of the training set), the Export Training Set step writes them out:

  • each point’s energy above its molecule’s minimum (ΔE);

  • a check that all of a molecule’s points share one settings fingerprint, so a molecule never mixes levels or settings;

  • points more than the energy window (10 kcal/mol) above the minimum are dropped, and, for open shells, points whose <S**2> differs from the minimum’s by more than the spin tolerance (0.05). Dropped points are marked on their configurations (training status#TrainingStructures#export), never deleted;

  • one extended-XYZ file per molecule, <molecule>.extxyz: REF_energy, delta_energy and REF_forces in the chosen units (eV by default), with config_type, the point’s name and its generation details on each frame. ASE reads these keys as data, not as a calculator’s results;

  • a record per molecule, <molecule>.json: model chemistry, settings fingerprint, the calculation record (program and version), how the Hessian was made and checked, the random seed, and the points kept and dropped;

  • coverage.csv and a table in the output: for each element and bonded element pair, the molecules and points, the bond lengths sampled, and whether the minimum counts are met (elements 30 molecules and 500 points, pairs 10 and 100, by default).

A molecule that lost more than 15 % of its samples to the window or the spin check is reported, for new samples with a lower maximum target energy; so are molecules with points more than 1 kJ/mol below their minimum, whose starting structure may not be the lowest conformer.

A redraw pass#

A molecule that loses more than the redraw threshold of its samples gets new samples in the same flowchart:

  1. The first Export Training Set saves its result redraw regexp in a variable, e.g. redraw.

  2. A Loop For systems in the database, selecting systems by name regexp with $redraw and the configuration named minimum, runs Training Structures with the system name for a redraw, a lower maximum target energy (7 kcal/mol in the E2 recipe), no rotors, no bond stretches and a new random seed.

  3. An Energy step labels the * redraw systems.

  4. A second Export Training Set writes each molecule’s file again, with the redraw’s samples in place of the first pass’s.

Indices and tables#