본문으로 건너뛰기
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 / 1,000자

이 양식은 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의 스킬 모두 보기

이 스킬의 문제 신고