本文へ移動
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(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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 のスキルをすべて見る

このスキルの問題を報告する