Skip to content

Growing String Method ​

Module: sci_form::gsm (core since 2026-11-08; F82 validated) Feature flag: none — alpha-gsm and experimental-gsm are compatibility aliases; sci_form::alpha::gsm re-exports the core module.


Validation and limits ​

QuestionAnswer
Compared withASE CI-NEB and analytic surfaces
Measured separationMüller-Brown barrier 1.6e-3, TS location 0.028; five curved wells ≤0.8%
Confidence regionMüller-Brown plus five curved wells
Main limitationno pyGSM/Transition1x parity; the energy backend limits accuracy

The raw rows and the exact tolerances are in the full validation matrix.


Overview ​

Implements a reaction path and transition state finder driven purely by force-field gradients. Unlike NEB (Nudged Elastic Band), GSM does not require an initial guess of the full path — it grows the string from both reactant and product endpoints, finding the minimum energy path and saddle point with fewer energy evaluations.


Theory ​

String Initialization ​

Given reactant R and product P coordinates, the string starts with 3 nodes: R, an interpolated midpoint, and P.

Growth Step ​

At each iteration, new nodes are added along the string:

  1. Tangent: τ^=xi+1−xi−1|xi+1−xi−1| (central difference)
  2. Perpendicular gradient: g⊥=g−(g⋅τ^)τ^
  3. Optimization: Interior nodes are optimized along the perpendicular gradient
  4. New node: Added at distance Δs along the interpolation direction

Junction and Saddle Detection ​

  • Junction: When tips from both ends meet (distance < Δs/2)
  • Saddle point: Node with maximum energy along the converged string
  • Refinement: Steepest descent on the perpendicular gradient around the saddle candidate

API ​

rust
use sci_form::gsm::*;

// Interpolate between two geometries
let midpoint = interpolate_node(&reactant, &product, 0.5);

// Energy function (any force field)
let energy_fn = |coords: &[f64]| -> f64 { /* UFF, MMFF94, EHT, etc. */ };

// Configure GSM
let config = GsmConfig {
    max_nodes: 11,      // nodes along the string
    step_size: 0.01,    // optimization step size
    grad_tol: 0.5,      // gradient tolerance
    max_iter: 100,       // max optimization iterations per growth
    fd_step: 0.005,      // finite difference step for gradient
};

// Grow the string
let path = grow_string(&reactant, &product, &energy_fn, &config);
// path.nodes: Vec<Vec<f64>>
// path.energies: Vec<f64>
// path.joined: bool
// path.iterations: usize

// Find transition state
let result = find_transition_state(&reactant, &product, &energy_fn, &config);
// result.ts_coords: Vec<f64>
// result.ts_energy: f64
// result.activation_energy: f64     (forward barrier)
// result.reverse_barrier: f64       (reverse barrier)
// result.path_coords: Vec<Vec<f64>>
// result.n_nodes: usize
// result.energy_evaluations: usize

// Refine saddle point
let (refined_coords, refined_energy) = refine_saddle(
    &ts_guess, &energy_fn, (&prev_node, &next_node),
    max_steps, fd_step, step_size,
);

Energy Backends ​

GSM works with any energy function that maps coordinates to a scalar:

BackendSpeedAccuracyBest For
UFFFastLowQuick screening
MMFF94FastMediumOrganic reactions
EHTMediumMediumπ-conjugated systems
PM3SlowHighReaction barriers
xTBSlowHighOrganometallic reactions

Output ​

The transition state result includes:

  • Transition state geometry and energy
  • Activation energy (forward barrier: ETS−ER)
  • Reverse barrier (ETS−EP)
  • Full reaction path as a sequence of geometries with energies
  • Energy evaluation count for benchmarking efficiency

Validation (F82, 2026-10-14) ​

External gate tests/alpha_gsm_validation.rs vs scripts/validation/oracle_gsm.py (ASE CI-NEB/FIRE on Müller-Brown, TS −40.66 textbook): barrier 1.6e-3, TS location 0.028. Fix: arc-length reparametrization every iteration (without it nodes slide into the minima and the barrier collapses to 0.02). pyGSM/Transition1x not run.

Tests ​

bash
cargo test --test experimental_gates -- test_gsm

8 integration tests (tests/experimental/test_gsm.rs) covering: linear interpolation, quarter-point interpolation, string growth, transition state finding on a double-well potential, path ordering, energy evaluation counting, symmetric barrier detection, and saddle point refinement.

These tests live in the experimental_gates target — see Overview for the full command matrix.

Released under the MIT License.