Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Phonon Calculations

Phonon calculations are very important for inorganic materials science to

  1. Runs a relaxation on the unit cell and atoms

  2. Repeats the unit cell a number of times to make it sufficiently large to capture many interesting vibrational models

  3. Generatives a number of finite displacement structures by moving each atom of the unit cell a little bit in each direction

  4. Running single point calculations on each of (3)

  5. Gathering all of the calculations and calculating second derivatives (the hessian matrix!)

  6. Calculating the eigenvalues/eigenvectors of the hessian matrix to find the vibrational modes of the material

  7. Analyzing the thermodynamic properties of the vibrational modes.

Note that this analysis assumes that all vibrational modes are harmonic, which is a pretty reasonable approximately for low/moderate temperature materials, but becomes less realistic at high temperatures.

from __future__ import annotations

from ase.build import bulk
from quacc.recipes.mlp.phonons import phonon_flow

# Make an Atoms object of a bulk Cu structure
atoms = bulk("Cu")

# Run a phonon (hessian) calculation with our favorite MLP potential
result = phonon_flow(
    atoms,
    method="fairchem",
    job_params={
        "all": dict(
            name_or_path="uma-s-1p2",
            task_name="omat",
        ),
    },
    min_lengths=10.0,  # set the minimum unit cell size smaller to be compatible with limited github runner ram
)
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[1], line 4
      1 from __future__ import annotations
      2 
      3 from ase.build import bulk
----> 4 from quacc.recipes.mlp.phonons import phonon_flow
      5 
      6 # Make an Atoms object of a bulk Cu structure
      7 atoms = bulk("Cu")

ModuleNotFoundError: No module named 'quacc.recipes.mlp'
print(
    f'The entropy at { result["results"]["thermal_properties"]["temperatures"][-1]:.0f} K is { result["results"]["thermal_properties"]["entropy"][-1]:.2f} kJ/mol'
)

Congratulations, you ran your first phonon calculation!