Skip to content

atomli.vibrations

Generated from the public Python surface of Atomli 0.1.18.

Harmonic vibrational analysis from analytical Hessians.

Public calculations require an analytical Hessian from the attached calculator. An unavailable analytical derivative raises NotImplementedError.

from atomli.build import molecule
from atomli.calculators.qc import QC
from atomli.vibrations import Vibrations
atoms = molecule("H2O")
atoms.calc = QC(xc="PBE")
Vibrations(atoms).run().summary()

Vibrations(atoms, indices=None, name='vib', delta=0.01, nfree=2, method='auto')

Section titled “Vibrations(atoms, indices=None, name='vib', delta=0.01, nfree=2, method='auto')”

Harmonic frequencies and modes for an Atoms object.

Mirrors ase.vibrations.Vibrations. The physics runs natively; this class is the ASE-shaped surface over it.

atoms: Atoms carrying a native atomli calculator on .calc. indices: Active atom indices; None means every unconstrained atom. A subset selects rows and columns from the full analytical Hessian. name: Prefix for files written by write_mode. method: "analytical" or "auto"; both require analytical derivatives.

Mode energies in eV as a complex array.

Imaginary modes carry their magnitude in the imaginary part, which is ASE’s convention and what summary marks with an i.

Mode frequencies in cm^-1 as a complex array.

The same Hessian shaped (n_active, 3, n_active, 3).

Cartesian Hessian in eV/angstrom^2, (3n_active, 3n_active).

Rows and columns run over the active atoms in get_indices() order, three Cartesian components per atom.

The atom indices the Hessian was actually built over.

Analytical harmonic IR intensities in (D/angstrom)^2 amu^-1.

Projects the calculator’s analytical Cartesian dipole derivatives (n_atoms, 3, 3) (in e) onto the mass-weighted normal modes.

Mode n as an (n_atoms, 3) Cartesian displacement.

Inactive atoms get a zero displacement, matching ase.vibrations.Vibrations.get_mode.

Every mode as a (3n_active, n_atoms, 3) array.

Mode n pairs with get_energies()[n]: both orders come from the ascending eigenvalues of the same mass-weighted Hessian.

Zero-point energy in eV; imaginary modes contribute zero.

Compute the Hessian and diagonalize it.

Returns: This object, so Vibrations(atoms).run().summary() reads as one statement.

Write the ASE frequency table.

log: An open text stream, a path, or None for stdout.

The frequency table as one string, in ASE’s layout.

write_mode(self, n=None, kT=0.02585199101165164, nimages=30)

Section titled “write_mode(self, n=None, kT=0.02585199101165164, nimages=30)”

Animate a mode into <name>.<n>.xyz.

n: Mode index, or None to write every non-zero mode. kT: Vibrational amplitude as an energy, units.kB * T. nimages: Frames in one full period.