Vibeflow lammps

From sunrise-hjx/vibeFlow-skills · View interactive version

Vibeflow lammps is an AI agent skill from the GitHub repository sunrise-hjx/vibeFlow-skills. Use when preparing, running, debugging, post-processing, or extending VibeFlow/VibeCAE LAMMPS molecular dynamics and particle simulation workflows from 0-caseDict/caseDict, including LAMMPS input scripts, data files, potentials, fixes, computes, dumps, restarts, Python post-processing, and optional

How to use this skill

Skill file

VibeFlow LAMMPS

This skill is responsible for using LAMMPS as VibeCAE's backend for molecular dynamics, particulate systems, material microscale simulation, and coarse-grained particle simulation.

When to Use

First Decide: Usage Mode or Development Mode

What to Read First

Inputs

Outputs

Recommended Structure

C-run/lammps/
└── case-1/
    ├── in.case
    ├── data.system
    ├── potentials/
    ├── dumps/
    ├── restarts/
    ├── logs/
    ├── Allrun
    └── Allclean
D-post/
└── lammps_postprocess.py

Usage Mode Workflow

  1. Map the unified physical description in caseDict to LAMMPS concepts: units, atom_style, boundary, region, group, pair_style, bond_style, fix, and compute.
  2. Clarify the potential source and applicability; do not use a potential that merely looks similar but does not match the physical system.
  3. Generate in.case and data files; before running, check units, time step, neighbor list, thermostat/barostat method, and output frequency.
  4. Write Allrun, preferably selecting the LAMMPS executable through an environment variable instead of hard-coding a local path.
  5. Run a short-step smoke test, confirming that the input parses, initializes, and produces no ERROR.
  6. During the production run, record logs, dumps, restarts, and key thermo outputs.
  7. Use D-post/lammps_postprocess.py to read logs or dumps and extract the physical quantities that the user actually cares about.
  8. Write artifacts, assumptions, potential sources, and error status back to caseDict.

Development Mode Workflow

  1. Define the development target: template generator, Python analyzer, coupling interface, custom fix/compute/pair style, or batch-processing tool.
  2. Write development notes first, recording the LAMMPS version, package dependencies, input interface, output interface, and validation examples.
  3. For custom styles, prefer an independent development directory and do not directly pollute the system LAMMPS source; modify upstream source only when the user explicitly asks for it.
  4. Provide units, defaults, error messages, and a minimal example for every new input keyword.
  5. Use at least one tiny system for a loading or run smoke test.

Core Rules

Validation

Fallback Rules

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.