跳到正文
cccskills
免费在 GitHub 公开

lammps-deepmd

Run LAMMPS molecular dynamics with DeePMD-kit machine learning potentials. Use when the user wants MD simulations driven by a trained DP model.

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

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

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md4.0 KB

SKILL.md(原文)

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

LAMMPS + DeePMD Potential

When to Use

  • User wants to run MD with a trained DeePMD model
  • User needs large-scale MD (10K-1M atoms) at near-DFT accuracy
  • User wants to study diffusion, phase transitions, or surface reactions with ML potential
  • User has a frozen .pb model file

Prerequisites

  1. LAMMPS compiled with DEEPMD package (lmp -h | grep DEEPMD)
  2. Frozen DeePMD model file (.pb)
  3. Initial structure (LAMMPS data file or from CatGo viewer)
  4. Know the type_map used during model training

Workflow Steps

1. Verify structure

catgo_view(action="get_state")

2. Create workflow

catgo_workflow_engine(action="create", params={"name": "LAMMPS DeePMD NVT 300K"})

3. Add LAMMPS task

catgo_workflow_engine(action="add_task", params={
  "workflow_id": "wf_xxx",
  "task_type": "shell",
  "name": "lmp_dpmd",
  "command": "lmp -in lammps.in > lammps.log 2>&1",
  "input_files": {
    "lammps.in": "<input script>",
    "frozen_model.pb": "{{model_path}}"
  },
  "system_name": "TiO2_md"
})

LAMMPS Input Template — NVT

units           metal
boundary        p p p
atom_style      atomic

read_data       structure.lmp

pair_style      deepmd frozen_model.pb
pair_coeff      * *

neighbor        2.0 bin
neigh_modify    every 1 delay 0 check yes

# Velocities
velocity        all create 300.0 12345 dist gaussian

# NVT thermostat
fix             1 all nvt temp 300.0 300.0 0.1

# Timestep (ps in metal units)
timestep        0.001

# Output
thermo          100
thermo_style    custom step temp pe ke etotal press vol

dump            1 all custom 100 traj.lammpstrj id type x y z fx fy fz
dump_modify     1 sort id

# Restart
restart         10000 restart.*.data

run             100000

LAMMPS Input Template — NPT

Replace the fix line:

fix             1 all npt temp 300.0 300.0 0.1 iso 0.0 0.0 1.0

Model Deviation (Multi-Model)

For active learning or reliability checking, use multiple models:

pair_style      deepmd model_0.pb model_1.pb model_2.pb model_3.pb out_freq 100 out_file model_devi.out
pair_coeff      * *

This writes model_devi.out with per-frame max/min/avg force deviation. Use thresholds:

  • max_devi_f < 0.05 eV/Ang: model is reliable
  • 0.05 < max_devi_f < 0.15: candidate for active learning
  • max_devi_f > 0.15: model is unreliable, do not trust results

Preparing LAMMPS Data File

Convert from CatGo structure to LAMMPS data format:

from ase.io import read, write
# Read pymatgen dict, write LAMMPS data
atoms = read('structure.json')
write('structure.lmp', atoms, format='lammps-data')

Or use dpdata (see data/dpdata/SKILL.md).

Parameter Guidance

ParameterTypical valueNotes
timestep0.001 ps (1 fs)Metal units; can use 2 fs for stiff systems
NVT temp damp0.1 psNose-Hoover damping; 100x timestep
NPT press damp1.0 psPressure damping; 1000x timestep
dump frequency100-1000Every 100 steps = 0.1 ps
neighbor skin2.0 AngRebuild neighbor list threshold
run100K-10MDepends on property of interest

Common Pitfalls

  1. Wrong units — DeePMD pair_style requires units metal (eV, Ang, ps). Never use units real.
  2. type_map mismatch — atom types in LAMMPS data file must match the order in the DP model's type_map.
  3. Unfrozen model — pair_style deepmd needs a frozen .pb file. Run dp freeze first.
  4. Too large timestep — 1 fs is safe; 2 fs may cause energy drift for light elements (H).
  5. No equilibration — always equilibrate for 10-50 ps before production run. Discard equilibration data.
  6. Memory for large models — GPU memory limits apply. For 1M+ atoms, use CPU or multi-GPU.

评价

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

评论

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

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

提交后会立即公开。请勿填写邮箱、电话等个人信息。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 的全部技能

报告此技能的问题