Skills

Multiwfn Skill

使用 Multiwfn 波函数分析程序读取 Gaussian 生成的 .fchk 文件,提取 HOMO/LUMO、原子电荷、分子表面分析等信息。

Install

npx skills add cas-bigdatalab/piflow --skill multiwfn_skill -g -a claude-code -y
Category
Engineering
Updated
12d ago
License
See repository
Context cost
Lightabout 568 tokens
Runs scripts
Yes, review before use

What it does

使用 Multiwfn 波函数分析程序读取 Gaussian 生成的 .fchk 文件,提取 HOMO/LUMO、原子电荷、分子表面分析等信息。

Multiwfn Wavefunction Analysis

功能说明

使用 Multiwfn 波函数分析程序读取 Gaussian 生成的 .fchk 文件,提取或计算以下信息:

  • HOMO / LUMO / HOMO-LUMO gap - 轨道能级信息
  • 原子电荷、布居分析 - Mulliken、Hirshfeld、ADCH 等电荷模型
  • 分子表面分析 - 体积、表面积、极值、平均值、方差
  • 表面映射性质 - 静电势、局域电离能、电子附着能等

触发条件

当需要对 Gaussian 生成的波函数文件进行详细分析时触发。

使用方法

python scripts/run_multiwfn_skill.py \
    --input_path molecule.fchk \
    --other_param "0\n7\n11\n1\nn\n0\n12\n2\n1\n0\n11\nn\n-1\n2\n2\n0\n11\nn\n-1\n2\n4\n0\n11\nn\n-1\n2\n-4\n0\n11\nn\n-1\n2\n12\n0\n11\nn\n-1\n2\n11\n0\n11\nn\n-1\n-1\n22\n0\nq" \
    --threads 32 \
    --output_dir outputs \
    --mout_output_path outputs/molecule.mout \
    --compressed_output_path outputs/output.zip

参数说明

参数类型必填说明
input_pathstring是输入文件路径(.fchk, .wfn, .wfx 等)
other_paramstring否Multiwfn 命令序列(多行字符串)
threadsint否计算线程数(默认 32)
multiwfn_pathstring否Multiwfn 安装路径
output_dirstring是输出工作目录
mout_output_pathstring是Multiwfn 主输出日志路径
compressed_output_pathstring是其他输出文件压缩包路径

输出参数

参数类型说明
mout_output_pathstringMultiwfn 主输出日志路径
compressed_output_pathstring其他输出文件压缩包路径

输出结构

输出目录包含:

  • *.mout - Multiwfn 主输出日志
  • summary.json - 提取的结构化摘要
  • stderr.log - 错误日志(如有)
  • output.zip - 包含 summary.json 和 stderr.log 的压缩包

summary.json 结构

Read the whole SKILL.md on GitHub

More in Engineering