Lammps validate

From Hello-QM/catgo-LRG · View interactive version

Lammps validate is an AI agent skill from the GitHub repository Hello-QM/catgo-LRG. **When to use:** Validate LAMMPS input scripts (.in files) for syntax errors and parameter conflicts before running MD simulations. Generate LAMMPS input scripts from workflow node parameters.

How to use this skill

Skill file

LAMMPS Script Validation & Generation

When to use: Validate LAMMPS input scripts (.in files) for syntax errors and parameter conflicts before running MD simulations. Generate LAMMPS input scripts from workflow node parameters.

Prerequisites:

Workflow Steps

1. Validate Existing LAMMPS Script

If you have a custom in.lammps script:

# Use the validation skill
Input: in.lammps script content
Output: List of errors or "Script is valid"

2. Generate LAMMPS Script from Parameters

If you have workflow node parameters (potential type, temperature, steps, etc.):

# Use the generation skill
Input: Node parameters (potential_type, temperature, steps, etc.)
Output: Complete in.lammps script ready to run

3. Workflow Integration

In CatGo MD nodes:

  1. MD Node — Classical MD simulations with NVT/NPT/NVE ensembles
  2. MD Minimize Node — Energy minimization with conjugate gradient or FIRE
  3. Packmol Option — Build initial box from molecules (MD Minimize only)

Key Parameters

Potential Type

Ensemble

Force Field Settings

Auto-configured based on potential type:

| Potential | Pair Style | Kspace | Bond/Angle |

|-----------|-----------|--------|-------------|

| Force Field | lj/charmm/coul/long | PPPM | Auto |

| CHARMM | lj/charmm/coul/long | PPPM | harmonic |

| OPLS-AA | lj/charmm/coul/long | PPPM | harmonic |

| EAM | eam/alloy | None | N/A |

| Tersoff | tersoff | None | N/A |

Common Issues & Fixes

Issue: "Pair style mismatch with data file"

Cause: Data file has bonds but script uses atom_style=atomic

Fix: Change atom_style to "full" or "molecular"

Issue: "PPPM setup error"

Cause: Using PPPM without charged atoms or with non-periodic boundary

Fix: Remove kspace_style or set boundary to periodic (ppp)

Issue: "Minimize never converges"

Cause: Energy tolerance (etol) too small or maxiter too low

Fix: Increase etol to 1e-4 or maxiter to 50000

Issue: "Temperature oscillates wildly in NVT"

Cause: Thermostat damping too large or timestep too large

Fix: Reduce timestep or adjust thermostat Tdamp parameter

Example Workflows

Minimize LJ fluid

Structure (PDB) → MD Minimize Node
  - Potential: Lennard-Jones
  - Min Style: CG
  - Max Iter: 10000
  - Etol: 1e-6
→ Output: trajectory.dump, system_minimized.data

Pack and relax water

Water molecule (PDB) → MD Minimize Node
  - Packmol: enabled (100 molecules, 1.0 g/cm³)
  - Force Field: GAFF2
  - Charge: Gasteiger
  - Min Style: FIRE
  - Etol: 1e-4
→ Output: packed structure, minimized trajectory

NVT MD for protein

Protein structure (PDB) → MD Node
  - Force Field: OPLS-AA
  - Ensemble: NVT
  - Temperature: 300 K
  - Steps: 100000
  - Timestep: 1.0 fs
→ Output: trajectory.dump, thermodynamic data

Validation Checklist

Before running MD:

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.