Ethanol conformers and isotope shifts
How does the hydroxyl orientation change the energy of ethanol, and how far does the O–H stretch move when the hydrogen becomes deuterium? The model is the isolated molecule from three starting torsions, optimized with g-xTB and then PBE/def2-SVP on an Apple M4 Max GPU.
Build the model
Section titled “Build the model”molecule("CH3CH2OH") supplies nine atoms. Rotating the hydroxyl hydrogen about the C–O axis by 0° and ±120° gives an anti and two gauche starting orientations with identical atom order.
The build step writes one extxyz file per start and uses no calculator.
from atomli.build import moleculefrom atomli.io import write
atoms = molecule("CH3CH2OH")# rotate H3 about the C1-O2 axis by 0, +120 or -120 degrees (see the script)write("ethanol-anti-start.extxyz", atoms)The three starts are the frames of one viewer:
Three starting ethanol conformers: anti, gauche plus, gauche minus
Calculate
Section titled “Calculate”The run step reads the three files. A g-xTB optimization to 0.01 eV/Å precedes PBE/def2-SVP refinement to 0.002 eV/Å with an SCF energy tolerance of 0.00002 eV. An analytical Hessian follows. The O–D frequency comes from the same Hessian with the hydroxyl hydrogen mass set to 2.014 u.
from atomli.calculators import QCfrom atomli.optimize import BFGSfrom atomli.vibrations import Vibrations
atoms.calc = QC(xc="PBE", basis="def2-SVP", device="gpu", maxiter=150, convergence={"energy": 2e-5})BFGS(atoms).run(fmax=0.002, steps=300)hessian = Vibrations(atoms, method="analytical").run().get_hessian_2d()charges = atoms.calc.get_atomic_charges()Results
Section titled “Results”PBE relative energies of three ethanol conformers
| Conformer | Final C–C–O–H torsion (°) | Relative energy (meV) | O–H stretch (cm⁻¹) | O–D stretch (cm⁻¹) |
|---|---|---|---|---|
| anti | 180.0 | 16.12 | 3719.0 | 2707.9 |
| gauche (+) | 299.4 | 0.00 | 3695.2 | 2689.5 |
| gauche (−) | 60.6 | 0.004 | 3695.2 | 2689.5 |
The two gauche starts are mirror images and agree within 0.005 meV. The anti conformer is 16.12 meV higher. An electronic energy difference alone gives no room-temperature population, and the model omits anharmonicity and thermal averaging.
PBE optimization trajectory of the gauche plus conformer
The anti conformer below shows Mulliken charges and the O–H distance. The density section lies in the plane of the three heavy atoms, centered on oxygen, and the hydroxyl hydrogen sits in that plane.
Optimized anti ethanol with Mulliken charges and O–H distance
PBE electron density in the heavy-atom plane of ethanol
Deuteration lowers the O–H stretch by about 1011 cm⁻¹ in the anti conformer (3719.0 to 2707.9 cm⁻¹). This is a mass effect within the harmonic potential.
Reproduce
Section titled “Reproduce”python python/ethanol-build.py --output modelspython python/ethanol-run.py --models models --output ethanol-results