Code

phonopy

Harmonic phonons from finite displacements.

openmaterials.ai / codes / phonopy

phonopy: harmonic phonons and thermal properties from displaced supercells

The finite-displacement supercell code behind most first-principles phonon work: symmetry-reduced displacements, force constants fitted to DFT forces, bands, DOS and free energies.

What it is and how it works

Force constants from forces

phonopy displaces atoms in a supercell by 0.01 A, a DFT code returns the forces, and crystal symmetry recovers the full second-order force constants. The Al example is a 3x3x3 conventional cell of 108 atoms (Togo 2015).

Symmetry reduction

The cell is standardized to a crystallographic convention. Site symmetry picks the atoms to displace, and the space group recovers the other force constants (Togo 2023).

Bands, DOS and thermodynamics

Dynamical matrix at any q, band structure, total and projected DOS, irreducible representations, group velocities, Cv, free energy and entropy versus T (Togo 2015).

Quasi-harmonic approximation

Free energies at several volumes give G(T,p), equilibrium volume, thermal expansion, Cp and mode Gruneisen parameters. The Al Cp agrees with experiment (Togo 2015).

Non-analytical term correction

Born effective charges and the dielectric tensor add the long-range Coulomb part to the force constants, which the supercell approach cannot hold (Togo 2023).

Finite temperature displacements

phonopy builds supercells with random displacements drawn from harmonic oscillators at T and averages the properties computed on each to mimic temperature (Togo 2023).

What people do with it

  • 0.01 Adisplacement distance in the Al exampleTogo 2015
  • 108atoms in the 3x3x3 Al supercellTogo 2015
  • 50,000random 512-atom NaCl supercells at 300 KTogo 2023

Monolayer boron nitride, kappa and expansion

Suspended monolayer hBN measured 751 W/m/K near room temperature and an experimental TEC of -3.58e-6/K. Phonopy gave the computed TECs of 1 to 3 layers for comparison (Cai 2019). Cai 2019

MAPbI3 perovskite in three phases

PHONOPY on DFT force constants gives the phonons of the phases that change at 165 and 327 K. The cubic phase has soft zone-boundary modes from PbI6 octahedral tilting (Brivio 2015). Brivio 2015

How it is used

  1. Standardize and relax

    Bring the unit cell to the crystallographic convention and relax it until forces vanish.

  2. Displace supercells

    Create supercells with symmetry-reduced finite displacements.

  3. Compute forces

    Run the DFT code on each supercell and collect the forces (FORCE_SETS).

  4. Fit force constants

    Phonopy.force_constants from displacements and forces, Phonopy.nac_params if polar.

  5. Phonon properties

    Phonopy.run_thermal_properties, run_total_dos, band paths, PhonopyQHA over volumes.

What phonopy is, how it works and what it is used for, from the papers listed as sources. Every number links to its paper.Poster pageDownload the poster (PNG, 1920 x 1080)

What phonopy is

phonopy computes harmonic phonon properties from second-order force constants obtained by finite displacements: band structures, densities of states, thermal properties and group velocities. It reads forces from many DFT codes and potentials. On the map it serves the harmonic quantities and the quantities built from them.

In more detail

The supercell approach

Second-order force constants are the negative derivative of the force on one atom with respect to the displacement of another. phonopy displaces atoms in a supercell by a small distance, reads the forces computed by an external first-principles code, and uses crystal symmetry both to reduce the number of displaced supercells and to improve the numerical accuracy of the fit (Togo 2015). The force constants are exact only at wave vectors commensurate with the supercell and are Fourier interpolated elsewhere, so a supercell of a few hundred atoms is usual. For polar crystals the non-analytical term correction from Born charges and the dielectric tensor restores the LO-TO splitting (Togo 2023).

Phonon and thermal properties

From the dynamical matrix phonopy returns frequencies and eigenvectors on paths and meshes, total and projected densities of states, irreducible representations, group velocities and mean square displacements. The frequencies give the constant-volume thermal properties Cv, Helmholtz free energy and entropy. In the quasi-harmonic approximation a fit of the free energy at several volumes gives the Gibbs energy, the equilibrium volume, the volumetric thermal expansion and Cp. For Al the computed Cp agrees with experiment, and the gap between Cp and Cv is not negligible at high temperature (Togo 2015). Mode Gruneisen parameters come from the volume derivative of the dynamical matrix.

Instabilities and finite temperature

Imaginary modes mark dynamical instabilities. Following their eigenvectors maps phase transition pathways. For simple cubic Cu the M and X point modes lead to P4/nmm, Pmma and Cmcm structures and on to BCT, SH, FCC, BCC and HCP (Togo 2015). For strongly anharmonic crystals phonopy generates supercells with random displacements sampled from harmonic oscillators at a given temperature, valid only when all modes at commensurate q points are stable. For NaCl, 50,000 randomly displaced 512-atom supercells built from renormalized force constants give displacement distributions similar to those of an MD run on the same supercell (Togo 2023).

Force codes and automation

Forces come from the user's first-principles code. The 2023 review lists Quantum ESPRESSO, Abinit and ELK for DFPT and VASP for both approaches. It also lists the AiiDA plugins for phonopy and phono3py, which run the six-step workflow (standardize the cell, relax, displace, compute forces, fit and analyse) as an acyclic directed graph (Togo 2023). ALM and hiPhive are separate codes built for force-constant fitting (Togo 2023). Cai 2019 uses phonopy for computed thermal expansion, and Brivio 2015 for the dynamical matrix of DFT force constants.

What it computes on the map

22 quantities, drawn by tier with the data flow between them. Dashed boxes are intermediate quantities. Select one for its formula and the other codes that compute it.

Open the full mapShare this submap
Embed this submap
<iframe src="https://openmaterials.ai/m/c56731602651/efec70600000000040000780?embed=1" title="phonopy on the OpenMaterials map" width="100%" height="480" loading="lazy" style="border:1px solid #EBEBEB;border-radius:6px"></iframe>

Each quantity with the interface the representation records.

References

The code

The papers that describe the code; cite them when you use it.

  1. A. Togo, I. Tanaka, First principles phonon calculations in materials science, Scripta Materialia, 2015. doi.org/10.1016/j.scriptamat.2015.07.021
  2. A. Togo, First-principles Phonon Calculations with Phonopy and Phono3py, Journal of the Physical Society of Japan, 2023. doi.org/10.7566/JPSJ.92.012001

Applications

Highly cited studies that cite the code, with a few picked by hand.

  1. F. Brivio, J. M. Frost, J. M. Skelton et al., Lattice dynamics and vibrational spectra of the orthorhombic, tetragonal, and cubic phases of methylammonium lead iodide, Physical Review B, 2015. doi.org/10.1103/PhysRevB.92.144308
  2. A. M. A. Leguy, A. R. Goñi, J. M. Frost et al., Dynamic disorder, phonon lifetimes, and the assignment of modes to the vibrational spectra of methylammonium lead halide perovskites, Physical Chemistry Chemical Physics, 2016. doi.org/10.1039/c6cp03474h
  3. S. Lee, K. Hippalgaonkar, F. Yang et al., Anomalously low electronic thermal conductivity in metallic vanadium dioxide, Science, 2017. doi.org/10.1126/science.aag0410
  4. T. Zhang, Z. Song, A. Alexandradinata et al., Double-Weyl Phonons in Transition-Metal Monosilicides, Physical Review Letters, 2018. doi.org/10.1103/PhysRevLett.120.016401
  5. Q. Cai, D. Scullion, W. Gan et al., High thermal conductivity of high-quality monolayer boron nitride and its thermal expansion, Science Advances, 2019. doi.org/10.1126/sciadv.aav0129
  6. B. Mortazavi, B. Javvaji, F. Shojaei et al., Exceptional piezoelectricity, high thermal conductivity and stiffness and promising photocatalysis in two-dimensional MoSi2N4 family confirmed by first-principles, Nano Energy, 2021. doi.org/10.1016/j.nanoen.2020.105716

How to cite

A. Togo, L. Chaput, T. Tadano, I. Tanaka, Implementation strategies in phonopy and phono3py, J. Phys. Condens. Matter 35, 353001 (2023)

doi.org/10.1088/1361-648X/acd831