一键导入
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.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run LAMMPS molecular dynamics with DeePMD-kit machine learning potentials. Use when the user wants MD simulations driven by a trained DP model.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Create and manage computational chemistry workflows with CatGo. Supports VASP, CP2K, ORCA, MLP, LAMMPS. Build OER/HER/CO2RR workflows, geometry optimization, frequency analysis, Gibbs energy calculations.
Run and resume the CatGo md-orchestration poll loop — delegate each poll to a subagent (keep main context lean), verify convergence by force, auto-advance each converged species per-species (pipeline, not barrier), and resume a campaign from disk after context compaction / new session. Use when driving or resuming a campaign's job-watch loop. Pairs with catgo-campaign.
Run a CatGo file-first md-orchestration "campaign" — a multi-step / high-throughput computational-materials study (e.g. SAA HER screening) driven from a human-readable folder + markdown tree, not the DB workflow engine. Use when the user says "跑一个 campaign", "md 模式跑", "high-throughput screening", or wants an agent-in-the-loop study with stages/funnel/analysis/report. Requires `catgo` on PATH.
Route computational chemistry requests to the correct software and task skill. Entry point for all CatGo agent interactions.
Drive a file-first, agent-in-the-loop computational campaign via a folder + markdown tree (no DB). Use when the user opts out of the visual workflow engine.
Authoring conventions for CatGo md-orchestration campaigns — progressive markdown, README+INDEX pairs and keeping them current, logging interventions to LESSONS, human-readable (never-hash) names, and the progressive (top→stage→calc) plan. Use when creating/editing any campaign markdown (plan/README/INDEX/STATUS/LESSONS) so the file tree stays navigable and resumable. Pairs with catgo-campaign.
| name | lammps-deepmd |
| description | Run LAMMPS molecular dynamics with DeePMD-kit machine learning potentials. Use when the user wants MD simulations driven by a trained DP model. |
| compatibility | Requires LAMMPS compiled with the DEEPMD package. A frozen DeePMD model (.pb) is required. |
| catalog-hidden | true |
.pb model filelmp -h | grep DEEPMD).pb)type_map used during model trainingcatgo_view(action="get_state")
catgo_workflow_engine(action="create", params={"name": "LAMMPS DeePMD NVT 300K"})
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"
})
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
Replace the fix line:
fix 1 all npt temp 300.0 300.0 0.1 iso 0.0 0.0 1.0
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 reliable0.05 < max_devi_f < 0.15: candidate for active learningmax_devi_f > 0.15: model is unreliable, do not trust resultsConvert 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 | Typical value | Notes |
|---|---|---|
| timestep | 0.001 ps (1 fs) | Metal units; can use 2 fs for stiff systems |
| NVT temp damp | 0.1 ps | Nose-Hoover damping; 100x timestep |
| NPT press damp | 1.0 ps | Pressure damping; 1000x timestep |
| dump frequency | 100-1000 | Every 100 steps = 0.1 ps |
| neighbor skin | 2.0 Ang | Rebuild neighbor list threshold |
| run | 100K-10M | Depends on property of interest |
units metal (eV, Ang, ps). Never use units real.pair_style deepmd needs a frozen .pb file. Run dp freeze first.