Skip to content

atomli.phonons

Generated from the public Python surface of Atomli 0.1.18.

Periodic phonons from analytical force constants.

Phonons(atoms, supercell=(2, 2, 2)).run() uses primitive-cell DFPT when provided by the calculator, or an analytical Hessian of the repeated cell. The supercell determines the real-space force-constant range. Converge the reference geometry, basis, electronic k points, integration mesh, and range.

reference_fmax (eV/angstrom) and reference_stress_tolerance (eV/angstrom**3) require a stationary reference. Supply both limits together. They apply to unprojected atomic forces and stress components.

get_energies(qpoints) takes fractional reciprocal coordinates and returns signed energies in eV. Negative values identify imaginary modes. get_modes(qpoints) returns complex mass-normalized displacement vectors. get_dynamical_matrix(qpoint) returns a Hermitian matrix in eV**2.

get_thermodynamics(temperature=300, mesh=(8, 8, 8)) returns vibrational contributions per input cell, excluding electronic energy. The q mesh must exclude Gamma, and all sampled modes must be positive.

symmetrize=3, acoustic=True selects force-constant symmetrization and the acoustic sum rule. symmetrize=0, acoustic=False retains the raw constants.

Phonons.from_force_constants(atoms, constants, supercell=(...), indices=...) analyzes saved constants without a calculator. Constants use eV/angstrom**2 and the image order returned by get_force_constants() (ASE C_N convention). Supply matching cell, positions, species, masses, and active-atom order. Import preserves the supplied force-constant conditioning.

Phonons(atoms, calc=None, supercell=Ellipsis, delta=0.01, *, nfree=2, symmetry=False, symprec=1e-05, method='frederiksen', symmetrize=3, acoustic=True, reference_fmax=None, reference_stress_tolerance=None)

Section titled “Phonons(atoms, calc=None, supercell=Ellipsis, delta=0.01, *, nfree=2, symmetry=False, symprec=1e-05, method='frederiksen', symmetrize=3, acoustic=True, reference_fmax=None, reference_stress_tolerance=None)”

Native periodic phonons. Displacement and symmetry tolerance use angstrom.

Remove empty force reservations after their producing process has stopped.

from_force_constants(atoms, force_constants, *, supercell=Ellipsis, indices=None)

Section titled “from_force_constants(atoms, force_constants, *, supercell=Ellipsis, indices=None)”

Import compact force constants in eV/angstrom² without a calculator. The caller supplies the matching geometry, masses, and active-atom order.

Hermitian mass-weighted dynamical matrix in eV squared. Its active-atom eigenvalues equal signed squared phonon mode energies.

Signed mode energies in eV; negative values identify imaginary modes.

Force constants in eV/angstrom squared, shaped (image, 3N, 3N).

Active input-cell atom indices in force-constant order.

Complex displacement modes in atomic-mass-unit^-1/2. Shape: (q-point, mode, atom, Cartesian axis). Fixed atoms contain zeros. Each mode satisfies sum(mass_amu * abs(mode)^2) = 1.

get_thermodynamics(self, /, temperature=300.0, mesh=Ellipsis)

Section titled “get_thermodynamics(self, /, temperature=300.0, mesh=Ellipsis)”

Vibrational contributions per input cell. Electronic energy is excluded.

run(self, /, *, cache_directory=None, cache_key=None)

Section titled “run(self, /, *, cache_directory=None, cache_key=None)”

Calculate image-resolved force constants from an analytical supercell Hessian. No displacement calculation or finite-difference fallback is allowed.