Skip to content

Vibrational analysis

Vibrations uses an analytical Cartesian Hessian. Unsupported configurations raise; there is no finite-difference fallback. Frequencies use cm⁻¹, mode energies use eV, and Hessians use eV/Ų.

The example is H₂O coordinated to an exposed Li site of a frozen (LiF)₂ cluster. The adsorption workflow relaxes all nine water coordinates with PBE/def2-SVP to fmax=0.003 eV/Å.

from atomli.vibrations import Vibrations
# atoms is the converged seven-atom complex; host indices 0–3 are fixed.
vib = Vibrations(atoms, indices=[4, 5, 6], method="analytical").run()
hessian = vib.get_hessian_2d() # (9, 9), eV/Ų
frequencies = vib.get_frequencies() # complex cm^-1
modes = vib.get_modes() # (9, 7, 3); host displacements are zero
Mode123456789
Frequency (cm⁻¹)33.8129.9262.5356.5459.9896.41596.53245.13763.1

The nine coordinates include frustrated adsorbate translations and rotations. They remain physical modes in the fixed-host model and are not removed as six isolated-molecule rigid-body modes. IR intensities are not calculated.

Partial Hessian, eigenvectors, frequencies, and force residual

Lowest analytical adsorbate mode with the LiF host fixed

The frozen host defines the reference frame. The lowest mode is dominated by collective adsorbate motion. Host response and host–adsorbate vibrational coupling are excluded. Low frequencies require particular attention to force residuals, electronic convergence, basis size, and the finite-host approximation.

Water adsorbate bending dominated analytical mode

Water adsorbate O H stretching dominated analytical mode

Assignments should follow the eigenvectors and internal-coordinate changes, including O–H stretches and the H–O–H angle. A frequency index alone is not a transferable assignment across geometries or methods. Display amplitudes are scaled to a maximum atom displacement of 0.15 Å.

Omit indices for a molecular Cartesian Hessian:

from atomli.build import molecule
from atomli.calculators import QC
from atomli.optimize import BFGS
water = molecule("H2O")
water.calc = QC(xc="PBE", basis="def2-svp", device="cpu", scf={"energy_tolerance": 1e-8})
if not BFGS(water).run(fmax=1e-4, steps=60):
raise RuntimeError("Geometry did not converge")
free = Vibrations(water, method="analytical").run()
free.summary()

An isolated nonlinear molecule has six rigid-body directions. Residual forces and numerical integration can contaminate their frequencies. Check stationarity before interpreting low modes or identifying a saddle point. A first-order saddle requires one significant imaginary internal mode and the intended connection between minima.

An explicit atom subset selects rows and columns of the full analytical Hessian. This is appropriate for adsorbate coordinates with the remaining atoms fixed. It does not construct the independent coordinate subspace of bond, line, or plane constraints. Such models need the corresponding projected Hessian and constraint curvature treatment before assigning physical frequencies.

capabilities = atoms.calc.get_capabilities(atoms)
assert capabilities["derivatives"]["hessian"] == "analytical"
from atomli.visualize import plot
figure = plot.vibration(vib)
figure.write_html("adsorbate-modes.html")
vib.write_mode(n=-1)

Hessian support depends on method, basis, boundary conditions, and device. Check get_capabilities(atoms) before launching a vibration calculation.

Harmonic frequencies exclude anharmonicity and finite-temperature sampling.

Runnable Python · Constraints · Electronic API