Skip to content

Water stretch–bend surface

How does water respond to bond stretching and bending near equilibrium? The model is the isolated molecule with both O–H distances equal. A 9×9 g-xTB surface locates the minimum, and PBE/def2-SVP refines the geometry, charges, density and vibrations. All calculations ran on an Apple M4 Max GPU.

Build script · Run script

Both O–H distances vary together from 0.80 to 1.20 Å in nine steps, and the H–O–H angle from 80° to 160° in nine steps. Mirrored hydrogen coordinates keep the distances equal, so the surface excludes the asymmetric stretch. The build step writes the 81 geometries as one extxyz file, ordered angle-major, and uses no calculator.

import numpy as np
from atomli import Atoms
from atomli.io import write
def water_geometry(distance, angle):
half = np.radians(angle) / 2
x, y = distance * np.sin(half), distance * np.cos(half)
return Atoms("OH2", positions=[[0, 0, 0], [x, y, 0], [-x, y, 0]])
frames = [water_geometry(d, a) for a in np.linspace(80, 160, 9) for d in np.linspace(0.8, 1.2, 9)]
write("water-pes-grid.extxyz", frames)

The 81 water geometries of the stretch–bend grid

The viewer opens on the grid minimum at 0.95 Å and 110°; the slider steps through all 81 geometries.

The run step evaluates one g-xTB single point per frame, relaxes the lowest grid point with g-xTB and then with PBE/def2-SVP to 0.0005 eV/Å (SCF energy tolerance 0.00002 eV). The analytical PBE Hessian covers all nine Cartesian coordinates, including the asymmetric stretch that the surface omits.

from atomli.calculators import QC, XTB
from atomli.optimize import BFGS
from atomli.vibrations import Vibrations
atoms.calc = XTB(method="gxtb", device="gpu")
energies = []
for frame in frames:
atoms.set_positions(frame.get_positions())
energies.append(atoms.get_potential_energy())
atoms.calc = QC(xc="PBE", basis="def2-SVP", device="gpu",
maxiter=150, convergence={"energy": 2e-5})
BFGS(atoms).run(fmax=0.0005, steps=300)
frequencies = Vibrations(atoms, method="analytical").run().get_frequencies()

Energies are relative to the lowest g-xTB grid point.

g-xTB energy of water over O–H distance and H–O–H angle

The interior minimum sits at 0.95 Å and 110°. Each section below holds one coordinate at that grid point.

Energy sections through the minimum: stretch at fixed angle, bend at fixed distance

Moving the equal O–H distances 0.15 Å inward costs 1.70 eV and 0.25 Å outward costs 1.75 eV. Bending to 80° costs 0.53 eV and to 160° costs 1.09 eV. Both sections are asymmetric about the minimum, so one harmonic expansion cannot describe the surface.

PBE/def2-SVP refines the geometry to an O–H distance of 0.9746 Å and an H–O–H angle of 102.05°. The two levels give different absolute energies, so values are compared only within one level.

PBE water geometry with Mulliken charges and the H–O–H angle

The density section lies in the molecular plane, centered on oxygen, with a log₁₀(ρ / e Å⁻³) color scale.

PBE electron density of water in the molecular plane

Basis convergence and anharmonic corrections are needed before comparing these frequencies with measured bands. Water modes does that comparison for the three fundamentals.

Terminal window
python python/water-pes-build.py --output models
python python/water-pes-run.py --models models --output water-results

Surface and equilibrium results