NEB and reaction paths
The ammonia umbrella inversion connects two pyramidal minima through a planar
transition state. This example uses PBE/def2-SVP, seven images, analytical nuclear
forces, and an analytical Hessian at the climbing image. Atomli supplies native
IDPP interpolation and quantitative path analysis; ASE supplies the NEB driver
and band optimizer. Install ase alongside the matching Atomli core and engines.
Reproduction script · Complete path record · Path geometries
Climbing-image ammonia inversion
Section titled “Climbing-image ammonia inversion”PBE ammonia inversion geometries and climbing-image NEB barrier
The structure panel contains the optimized band. The barrier panel uses the cumulative Cartesian arc length in Å and electronic energies relative to the initial minimum. Both endpoints are relaxed and share the same atom order and orientation. Reflecting the relaxed geometry through the hydrogen plane reverses the umbrella coordinate without permuting the hydrogens.
import numpy as npfrom atomli import Atomsfrom atomli.calculators import QCfrom atomli.optimize import BFGSfrom atomli.analysis import interpolate_reaction_pathfrom ase import Atoms as AseAtomsfrom ase.mep import NEBfrom ase.optimize import BFGS as BandBFGS
def calculator(): return QC(xc="PBE", basis="def2-svp", device="cpu", scf={"energy_tolerance": 1e-8}, maxiter=150)
initial = Atoms("NH3", positions=[ [0, 0, .38], [.94, 0, 0], [-.47, .8140638796, 0], [-.47, -.8140638796, 0],])initial.calc = calculator()if not BFGS(initial, maxstep=.12).run(fmax=.001, steps=180): raise RuntimeError("Endpoint did not converge")pos = initial.get_positions()pos[:, 2] -= pos[1:, 2].mean()initial.set_positions(pos)final = initial.copy()pos[:, 2] *= -1final.set_positions(pos)
path = interpolate_reaction_path(initial, final, n_images=7, method="idpp", mic=False)images = [AseAtoms(a.get_chemical_symbols(), positions=a.get_positions()) for a in path]for image in images: image.calc = calculator()
band = NEB(images, k=.1, method="improvedtangent", climb=False)if not BandBFGS(band, maxstep=.08).run(fmax=.03, steps=100): raise RuntimeError("Ordinary NEB did not converge")band.climb = Trueif not BandBFGS(band, maxstep=.04).run(fmax=.01, steps=120): raise RuntimeError("Climbing-image NEB did not converge")Use a separate calculator for each image. The two-stage optimization first relaxes the band, then reverses the tangent force at the highest interior image. The reported stopping criterion is the maximum NEB force norm, 0.01 eV/Å. IDPP alone optimizes an interpolation objective; it does not establish an energetic path or barrier.
Barrier, path forces, and transition-state mode
Section titled “Barrier, path forces, and transition-state mode”from atomli.analysis import analyze_reaction_pathfrom atomli.vibrations import Vibrations
energies = [image.get_potential_energy() for image in images]forces = [image.get_forces() for image in images]path = [Atoms(image.get_chemical_symbols(), positions=image.get_positions()) for image in images]result = analyze_reaction_path(path, energies_ev=energies, forces=forces)print(result.forward_barrier_ev, result.reverse_barrier_ev)print(result.max_perpendicular_force_ev_per_angstrom)
candidate = result.transition_statecandidate.calc = calculator()vib = Vibrations(candidate, method="analytical").run()print(vib.get_frequencies())Analytical PBE imaginary umbrella mode at the ammonia transition state
The saved Hessian has one substantial imaginary mode along the umbrella coordinate. Its 0.20 Å animation amplitude is a display scale. Inspect residual forces and distinguish small rigid translation/rotation artifacts from the internal instability. Reverse and forward barriers should agree for this symmetric reaction. The electronic barrier excludes ZPE, thermal, tunneling, and solvent corrections. A kinetic rate requires a consistently defined activation free energy; the electronic profile alone does not supply one.
For a different reaction, confirm connectivity by downhill relaxation or an IRC from the candidate. Image count, spring strength, force tolerance, SCF settings, and electronic method require convergence studies.
Constrained adsorption coordinate
Section titled “Constrained adsorption coordinate”A constrained scan addresses a specified coordinate and relaxed subspace. The finite (LiF)₂–H₂O adsorption workflow holds the substrate and O fixed at each height while both H coordinates relax with PBE/def2-SVP.
PBE constrained water adsorption scan and independently relaxed structures
O x/y remain −0.30/−0.25 Å and z ranges from 1.5 to 3.0 Å. The record retains absolute energies, analytical O forces, and the relaxed-subspace residual at each point. A nonzero force on the scanned coordinate means that point is not stationary. This scan has different constraints and meaning from the NEB study above.
Analytical vibrations · Conformer searches · Constraint subspaces