跳到正文
cccskills
免费在 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.

中文简介正在准备中。当前显示原文说明。

Hello-QM/catgo-LRG星标 208(GitHub 208 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md5.5 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

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.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

abinit

免费

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

中文简介正在准备中。当前显示原文说明。

Hello-QM/catgo-LRG2082026年10月23日 更新

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.

中文简介正在准备中。当前显示原文说明。

Hello-QM/catgo-LRG2082026年10月23日 更新

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

中文简介正在准备中。当前显示原文说明。

Hello-QM/catgo-LRG2082026年10月23日 更新

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.

中文简介正在准备中。当前显示原文说明。

Hello-QM/catgo-LRG2082026年10月23日 更新

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.

中文简介正在准备中。当前显示原文说明。

Hello-QM/catgo-LRG2082026年10月23日 更新

atom-ops

免费

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 加原子, 删原子, 减原子, 移动原子, 替换原子, 增加氢, 删除氧, 把 ... 换成 ....

中文简介正在准备中。当前显示原文说明。

Hello-QM/catgo-LRG2082026年10月23日 更新

查看 Hello-QM 的全部技能

报告此技能的问题