Skip to content
cccskills
FreePublished on 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.

The English summary is being prepared. Showing the original description.

Hello-QM/catgo-LRG208 stars(GitHub 208 + cccskills 0)

Run score Not tested

See how to install

Files included (1)

  • SKILL.md4.0 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

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.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

abinit

Free

Generate and manage ABINIT DFT calculations. Use when the user requests ABINIT, or needs DFPT phonons, GW calculations, or BSE optical spectra.

The English summary is being prepared. Showing the original description.

Hello-QM/catgo-LRG208Updated Oct 23, 2026

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.

The English summary is being prepared. Showing the original description.

Hello-QM/catgo-LRG208Updated Oct 23, 2026

Use when the user asks for adsorption energy, binding energy, or wants to compare how strongly a molecule binds to a surface.

The English summary is being prepared. Showing the original description.

Hello-QM/catgo-LRG208Updated Oct 23, 2026

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.

The English summary is being prepared. Showing the original description.

Hello-QM/catgo-LRG208Updated Oct 23, 2026

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.

The English summary is being prepared. Showing the original description.

Hello-QM/catgo-LRG208Updated Oct 23, 2026

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 加原子, 删原子, 减原子, 移动原子, 替换原子, 增加氢, 删除氧, 把 ... 换成 ....

The English summary is being prepared. Showing the original description.

Hello-QM/catgo-LRG208Updated Oct 23, 2026

See all skills by Hello-QM

Report a problem with this skill