Skip to content
cccskills
FreePublished on GitHub

phonopy

Run phonon calculations using Phonopy. Computes phonon band structures, density of states, thermal properties, and checks dynamical stability. Works with VASP, QE, ABINIT, and other DFT codes as the force calculator.

The English summary is being prepared. Showing the original description.

Hello-QM/catgo-LRG208 stars(GitHub 208 + cccskills 0)

Run score Not tested

See how to install

Files included (1)

  • SKILL.md5.5 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Phonopy — Phonon Calculations

When to Use

  • User needs phonon band structure or phonon DOS
  • User wants to check dynamical stability (imaginary phonon modes)
  • User needs thermodynamic properties (heat capacity, entropy, free energy) from phonons
  • User wants to compute thermal expansion or Gruneisen parameters
  • User has a relaxed structure and wants vibrational properties beyond the Gamma point

Prerequisites

  1. phonopy installed (phonopy --version)
  2. A DFT code (VASP, QE, ABINIT) for computing forces on displaced structures
  3. A fully relaxed structure (forces < 0.001 eV/Ang on all atoms)
  4. Tight SCF convergence in force calculations (EDIFF=1e-8 for VASP)

Workflow Overview

Phonopy uses the finite-displacement method:

  1. Generate supercells with displaced atoms
  2. Run DFT force calculations on each displaced supercell
  3. Collect forces and compute force constants
  4. Post-process: band structure, DOS, thermal properties

Workflow Steps

1. Create supercells with displacements

catgo_workflow_engine(action="add_task", params={
  "workflow_id": "wf_xxx",
  "task_type": "shell",
  "name": "phonopy_displace",
  "command": "phonopy -d --dim 2 2 2 -c POSCAR",
  "input_files": {
    "POSCAR": "<relaxed structure>"
  },
  "system_name": "phonon_setup"
})

This generates POSCAR-001, POSCAR-002, ..., phonopy_disp.yaml.

2. Run DFT on each displaced structure

For each displaced POSCAR, run a VASP single-point calculation:

catgo_workflow_engine(action="add_task", params={
  "workflow_id": "wf_xxx",
  "task_type": "shell",
  "name": "phonon_forces_001",
  "command": "cd disp-001 && vasp_std > vasp.out 2>&1",
  "depends_on": ["phonopy_displace"],
  "system_name": "phonon_disp_001"
})

VASP INCAR for force calculations:

PREC    = Accurate
ENCUT   = 520
EDIFF   = 1e-8      # Must be tight for phonons
IBRION  = -1
NSW     = 0
ISMEAR  = 0
SIGMA   = 0.05
LREAL   = .FALSE.    # Must be FALSE for phonons
LWAVE   = .FALSE.
LCHARG  = .FALSE.

3. Collect forces and compute force constants

catgo_workflow_engine(action="add_task", params={
  "workflow_id": "wf_xxx",
  "task_type": "shell",
  "name": "phonopy_forces",
  "command": "phonopy -f disp-001/vasprun.xml disp-002/vasprun.xml ...",
  "depends_on": ["phonon_forces_001", "phonon_forces_002"],
  "system_name": "phonon_fc"
})

4. Compute phonon band structure

catgo_workflow_engine(action="add_task", params={
  "workflow_id": "wf_xxx",
  "task_type": "shell",
  "name": "phonopy_band",
  "command": "phonopy -p band.conf",
  "input_files": {
    "band.conf": "DIM = 2 2 2\nBAND = AUTO\nBAND_POINTS = 101\nBAND_LABELS = AUTO"
  },
  "depends_on": ["phonopy_forces"],
  "system_name": "phonon_band"
})

Configuration Files

band.conf — Band structure

DIM = 2 2 2
BAND = AUTO
BAND_POINTS = 101

mesh.conf — DOS and thermal properties

DIM = 2 2 2
MP = 20 20 20
TPROP = .TRUE.
TMIN = 0
TMAX = 1000
TSTEP = 10

pdos.conf — Projected DOS

DIM = 2 2 2
MP = 20 20 20
PDOS = 1 2, 3 4 5 6

Atom indices are 1-based. Groups separated by commas.

Python API

import phonopy
from phonopy import Phonopy

ph = phonopy.load("phonopy_disp.yaml")
# Forces already set via phonopy -f

# Band structure
ph.auto_band_structure(plot=True)
ph.save("phonopy_results.yaml")

# Thermal properties
ph.run_mesh([20, 20, 20])
ph.run_thermal_properties(t_min=0, t_max=1000, t_step=10)
tp = ph.get_thermal_properties_dict()
# tp['temperatures'], tp['free_energy'], tp['entropy'], tp['heat_capacity']

Parameter Guidance

ParameterTypical valueNotes
DIM2 2 2 or 3 3 3Supercell size; larger = more accurate but more DFT calcs
MP20 20 20q-point mesh for DOS; denser = smoother DOS
BANDAUTOAuto high-symmetry path; or specify manually
displacement0.01 AngDefault; increase for very stiff materials
TPROP.TRUE.Enable thermal property calculation

Interpreting Results

  • No imaginary modes — structure is dynamically stable
  • Imaginary modes at Gamma — structure is unstable; re-optimize or try different cell
  • Imaginary modes at zone boundary — possible CDW or structural phase transition
  • Flat acoustic modes — check supercell size; may need larger DIM

Common Pitfalls

  1. Structure not fully relaxed — residual forces cause spurious imaginary modes. Relax to < 0.001 eV/Ang.
  2. LREAL=Auto in VASP — must use LREAL = .FALSE. for phonon force calculations. Real-space projection introduces noise.
  3. Supercell too small — DIM = 1 1 1 gives only Gamma phonons. Use at least 2 2 2 for bulk.
  4. SCF not converged — use EDIFF=1e-8 (not 1e-5). Loose SCF causes noisy force constants.
  5. Symmetry mismatch — phonopy uses symmetry to reduce displacements. Ensure the input structure has correct symmetry.
  6. Many displacements — low-symmetry structures can generate 100+ displaced supercells. Budget DFT time accordingly.
  7. Acoustic sum rule — slight violations are normal. Phonopy applies corrections automatically.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

abinit

Free

Generate and manage ABINIT DFT calculations. Use when the user requests ABINIT, or needs DFPT phonons, GW calculations, or BSE optical spectra.

The English summary is being prepared. Showing the original description.

Hello-QM/catgo-LRG208Updated Oct 23, 2026

Use when the user asks to place an adsorbate molecule on a surface, find adsorption sites, or set up a surface+adsorbate model for DFT.

The English summary is being prepared. Showing the original description.

Hello-QM/catgo-LRG208Updated Oct 23, 2026

Use when the user asks for adsorption energy, binding energy, or wants to compare how strongly a molecule binds to a surface.

The English summary is being prepared. Showing the original description.

Hello-QM/catgo-LRG208Updated Oct 23, 2026

Use when the user asks to analyze computational results: Gibbs free energy, OER/HER/CO2RR overpotentials, adsorption energy, convergence tests, DOS/d-band analysis, or Bader charge analysis.

The English summary is being prepared. Showing the original description.

Hello-QM/catgo-LRG208Updated Oct 23, 2026

Use AmberTools antechamber for molecular force field parameterization. Generates GAFF/GAFF2 parameters and AM1-BCC or RESP charges for use in AMBER or LAMMPS classical MD simulations.

The English summary is being prepared. Showing the original description.

Hello-QM/catgo-LRG208Updated Oct 23, 2026

One-shot recipes for adding, deleting, moving, and replacing individual atoms in the active CatGo viewer structure. Use whenever the user asks to "add an atom", "delete atoms", "remove this atom", "move atom N", "replace H with Li", or any single-atom edit — including "add a hydrogen on top of atom 12" / "delete atoms 5–9" / "swap the oxygen at site 3 for fluorine". Skips the discovery loop (no need to list structure tools or check adsorption sites first); goes straight to the matching `catgo_structure` action. Triggers in Chinese on 加原子, 删原子, 减原子, 移动原子, 替换原子, 增加氢, 删除氧, 把 ... 换成 ....

The English summary is being prepared. Showing the original description.

Hello-QM/catgo-LRG208Updated Oct 23, 2026

See all skills by Hello-QM

Report a problem with this skill