Pwscf & phono3py calculation

Quantum espresso package itself has a set of the force constants calculation environment based on DFPT. But the document here explains how to calculate phonon-phonon interaction and related properties using phono3py, i.e., using the finite displacement and supercell approach.

An example for pwscf is found in the example-phono3py/Si-pwscf directory.

To invoke the Pwscf interface, --pwscf option has to be always specified:

% phono3py --pwscf [options] [arguments]

When the file name of the unit cell is different from the default one (see Default unit cell file name), -c option is used to specify the file name. Pwscf unit cell file parser used in phono3py is the same as that in phonopy. It can read only limited number of keywords that are shown in the phonopy web site (


  1. Create supercells with displacements

    % phono3py --pwscf -d --dim="2 2 2" -c

    In this example, probably 111 different supercells with displacements are created. Supercell files ( are created but they contain only the crystal structures. Calculation setting has to be added before running the calculation.

  2. Run Pwscf for supercell force calculations

    Let’s assume that the calculations have been made in disp-xxx directories with the file names of Then after finishing those calculations, Si-supercell.out may be created in each directory.

  3. Collect forces

    FORCES_FC3 is obtained with --cf3 options collecting the forces on atoms in Pwscf calculation results:

    % phono3py --pwscf --cf3 disp-00001/Si-supercell.out disp-00002/Si-supercell.out ...

    or in recent bash or zsh:

    % phono3py --pwscf --cf3 disp-{00001..00111}/Si-supercell.out

    disp_fc3.yaml is used to create FORCES_FC3, therefore it must exist in current directory.

  1. Calculate 3rd and 2nd order force constants

    fc3.hdf5 and fc2.hdf5 files are created by:

    % phono3py --pwscf --dim="2 2 2" -c --sym-fc
  2. Calculate lattice thermal conductivity, e.g., by:

    % phono3py --pwscf --dim="2 2 2" -c --pa="0 1/2 1/2 1/2 0 1/2 1/2 1/2 0" \
       --mesh="11 11 11" --fc3 --fc2 --br