Skip to content

NEB-style reaction paths ​

sci-form provides three reaction-path primitives:

CommandWhat it does
simplified-neb-pathinterpolates between two geometries and relaxes the internal images with a spring-coupled gradient step
neb-energysingle-point energy with any NEB-capable backend
neb-gradientsingle-point energy plus the gradient of that same backend
flowchart LR
    A[Reactant coords] --> C[Linear interpolation]
    B[Product coords] --> C
    C --> D[Internal images]
    D --> E[Backend energy + gradient]
    E --> F[Spring-coupled Euler step]
    F --> G[Clamped displacement]
    G --> D
    D --> H[Path energies]

Simplified NEB ​

The path is linearly interpolated into n_images points. The endpoints are fixed; each internal image is updated for n_iter iterations with

Δxi=h(−∇E(xi)+k(xi+1−2xi+xi−1)),

where h is step_size and k is spring_k. The displacement is clamped to a fixed maximum per image and iteration, because strained interpolation endpoints can carry very large forces. spring_k = 0 disables the spring coupling and relaxes each image independently.

This is an exploratory, low-cost path. It is not a climbing-image NEB, it does not use tangent projection, and it does not locate a transition state. Use it to inspect a plausible path, not to report a barrier.

Energy and gradient backends ​

--method accepts uff, mmff94, pm3, xtb (GFN2), gfn1, gfn2 and hf3c. Absolute energies are not comparable across backends: for the ethanol geometry in the catalogue, uff gives 6.993 kcal/mol, mmff94 2.325, pm3 −14379.2, xtb/gfn2 −7146.2 and hf3c −94898.5 kcal/mol. Compare energies only along a path computed with one backend.

neb-energy evaluates one SCF for pm3/xtb; neb-gradient uses the analytic gradient for uff/mmff94, the stationary-density gradient for pm3, and warm-started central differences for xtb, gfn1, gfn2 and hf3c. See reaction backends.

Output ​

simplified-neb-path:

json
{
  "images": [
    {"index": 0, "coords": ["..."], "potential_energy_kcal_mol": 6.993048432903878},
    {"index": 1, "coords": ["..."], "potential_energy_kcal_mol": 5.493985628868082},
    {"index": 2, "coords": ["..."], "potential_energy_kcal_mol": 6.993048432903878}
  ],
  "notes": [
    "Simplified NEB (uff) with spring-coupled gradient relaxation on 1 internal images.",
    "Low-cost exploratory path; not a full climbing-image / tangent-projected NEB."
  ]
}

neb-gradient returns {"energy_kcal_mol": ..., "gradient_kcal_mol_ang": [...], "method": ...} with one gradient triple per atom in input order.

Validation and limits ​

  • Coordinates must contain exactly 3 × n_atoms finite values.
  • n_images must be an integer in 2..=1000; n_iter must be an integer ≥ 1.
  • spring_k must be finite and ≥ 0; step_size finite and > 0.
  • Empty or malformed SMILES and unknown backends are rejected by the path builders, neb-energy and neb-gradient.
  • Multi-fragment SMILES (for example [Cl-].CBr) are evaluated with every disconnected component; the coordinate array must cover all atoms.
  • Connectivity-changing paths need a topology-independent backend (pm3, gfn1, gfn2, xtb or hf3c). UFF and MMFF carry one fixed topology and are rejected by the 3D reaction path for bond-order/connectivity changes.
  • Single-point energy and gradient reject non-finite coordinates, a non-finite backend energy and a gradient whose length is not 3 × n_atoms.
  • WASM takes n_images/n_iter as numbers and rejects negative, fractional, NaN and infinite values with {"error": ...} instead of wrapping them.
  • list_neb_backends marks a backend available only when every element has parameters for it: UFF atom types, MMFF94 (H, C, N, O, F, Si, P, S, Cl, Br, I, Fe), the PM3 table, the GFN1/GFN2 tables, and HF-3c (H, C, N, O, F, P, S, Cl). Empty element lists and atomic numbers outside 1..=118 are errors. Availability is parameter coverage, not a promise that an SCF will converge.
  • Python exposes the UFF-only compute_simplified_neb_path; the configurable backend selector and the single-point energy/gradient queries are Rust/WASM/CLI only.
  • The backend gradients are the same validated gradients used by pm3-gradient, xtb-gradient and the force fields; the simplified NEB has no separate CI-NEB or transition-state gate. The Rust-only 3D CI-NEB does have ASE NEB parity gates for same-topology UFF paths and a connectivity-changing PM3 path; see reaction dynamics.
  • No climbing image, no tangent projection, no TS optimization, no reparameterization by arc length.
  • Absolute energies are backend-specific and may be shifted arbitrarily.

Surfaces ​

SurfaceEntry point
CLIsimplified-neb-path, neb-energy, neb-gradient
Rustcompute_simplified_neb_path_configurable, neb_backend_energy_kcal, neb_backend_energy_and_gradient
Pythoncompute_simplified_neb_path (UFF)
WASMcompute_neb_path_with_method, compute_simplified_neb_path, neb_single_point_energy, neb_energy_and_gradient, list_neb_backends

Released under the MIT License.