# Welcome to phonopy

```{important}
**Upgrading from phonopy v3?** Version 4 introduces several breaking
changes, including a CLI split (`phonopy` and `phonopy-init`) and a new
default `primitive_matrix="auto"`. See {ref}`migration_v4` before running
existing scripts.
```

**Phonopy** is an open source package for phonon calculations at harmonic and
quasi-harmonic levels.

[Phono3py](http://phonopy.github.io/phono3py/) is another open source package
for phonon-phonon interaction and lattice thermal conductivity calculations.

**PhononDB**: URL links of first principles phonon calculation data at
[nims.4197](https://doi.org/10.48505/nims.4197) are found at
<https://github.com/atztogo/phonondb/blob/main/mdr/phonondb/README.md>.
See {ref}`phonopy_yaml_phonondb`.


Phonopy calculates the following quantities from the force constants of a
crystal structure:

- {ref}`Phonon band structure <band_structure_related_tags>`,
  {ref}`phonon DOS and partial-DOS <dos_related_tags>`
- {ref}`Phonon thermal properties <thermal_properties_tag>`: Free energy, heat
  capacity (Cv), and entropy
- {ref}`Phonon group velocity <group_velocity>`
- {ref}`Thermal ellipsoids <thermal_displacement_matrices_tag>` /
  {ref}`Mean square displacements <thermal_displacements_tag>`
- {ref}`Irreducible representations of normal modes <irreducible_representation_related_tags>`
- {ref}`Non-analytical-term correction <nac_tag>`: LO-TO splitting
  ({ref}`Born effective charges and dielectric constant are required. <born_file>`)

The Topics pages of this documentation describe the following calculations:

- {ref}`Quasi-harmonic approximation <phonopy_qha>`: Thermal expansion, heat
  capacity at constant pressure (Cp)
- {ref}`Anisotropic thermal expansion <aniso-thermal-expansion>`
  (experimental): Lattice parameters and axial thermal expansions from the
  free energy minimized over the lattice parameters
- {ref}`Electronic thermal properties <electronic_thermal_properties>`: Free
  energy, entropy and heat capacity of the electrons in metals
- {ref}`Mode Grüneisen parameters <phonopy_gruneisen>`
- {ref}`Dynamic structure factor for INS and IXS <dynamic_structure_factor>`
- {ref}`Random displacements <random_displacements>`: Supercells with atoms
  displaced in random directions, or by displacements drawn from the harmonic
  oscillator distributions of the phonon modes
- {ref}`Temperature dependent force constants <polymlp-sscha>` (experimental):
  Force constants in the stochastic self-consistent harmonic approximation
  (SSCHA) with pypolymlp and symfc
- {ref}`Symmetry-adapted phonon modes <symmetry_adapted_modes>`: Degenerate
  sets of phonon modes decided by the symmetry of the q-point, used by the
  irreducible representations

Phonopy also provides:

- {ref}`Interfaces to calculators <calculator_interfaces>`: {ref}`VASP
<vasp_interface>`, {ref}`VASP DFPT <vasp_dfpt_interface>`, {ref}`ABINIT
<abinit_interface>`, {ref}`Quantum ESPRESSO <qe_interface>`, {ref}`SIESTA
<siesta_interface>`, {ref}`Elk <elk_interface>`,{ref}`exciting <exciting_interface>`,{ref}`WIEN2k
<wien2k_interface>`, {ref}`CRYSTAL <crystal_interface>`, {ref}`DFTB+
<dftbp_interface>`, {ref}`TURBOMOLE <turbomole_interface>`, {ref}`CP2K
<cp2k_interface>`, {ref}`FHI-aims <FHI_aims_interface>`, {ref}`CASTEP
<castep_interface>`, {ref}`Fleur <Fleur_interface>`, {ref}`ABACUS
<abacus_interface>`, {ref}`LAMMPS <lammps_interface>`, {ref}`LAMMPS (external)
<external_tools_phonolammps>`, {ref}`Questaal/LMTO (QLM) <qlm_interface>`,
{ref}`Octopus <octopus_interface>`
- {ref}`Phonopy API for Python <phonopy_module>`

```{toctree}
:hidden:
:caption: Getting started
install
rust-backend
workflow
examples
```

```{toctree}
:hidden:
:caption: Using phonopy
phonopy-init
phonopy
input-files
output-files
setting-tags
command-options
phonopy-yaml
symmetry
```

```{toctree}
:hidden:
:caption: Calculator interfaces
interfaces
auxiliary-tools
external-tools
```

```{toctree}
:hidden:
:caption: Topics
qha
aniso-thermal-expansion
electronic-thermal-properties
Mode Grüneisen parameters <gruneisen>
dynamic-structure-factor
random-displacements
polymlp-sscha
symmetry-adapted-modes
```

```{toctree}
:hidden:
:caption: Python API
phonopy-module
api-reference
```

```{toctree}
:hidden:
:caption: Theory
formulation
```

```{toctree}
:hidden:
:caption: About phonopy
citation
reference
migration-v4
migration-v5
development
changelog
```

(mailinglist)=

## Mailing list

For questions, bug reports, and comments, please visit
<https://lists.sourceforge.net/lists/listinfo/phonopy-users> to subscribe the
phonopy mailing list and send them to <phonopy-users@lists.sourceforge.net>.
Message body including attached files has to be smaller than 300 KB.

## License

New BSD from version 1.3.

(LGPL from ver. 0.9.3 to version 1.2.1., GPL to version 0.9.2.)

## Contributors

- Atsushi Togo, National Institute for Materials Science

## Acknowledgements

Phonopy development is supported by:

- National Institute for Materials Science
