HPC LAMMPS
Treat LAMMPS input generation as a strict staged workflow.
Start
- Read
references/script-structure.mdbefore editing anyin.*file. - Read
references/units-neighbor-and-timestep.mdwhen choosing units, timestep scale, and neighbor settings. - Read
references/data-forcefield-and-groups.mdwhen usingread_data, multiple atom types, or complex assembly workflows. - Read
references/forcefield-cookbook.mdwhen choosing between Lennard-Jones, EAM/MEAM, Tersoff, ReaxFF, or hybrid styles. - Read
references/thermostat-and-barostat-matrix.mdwhen selectingnve,nvt,npt, Langevin, or deforming-box workflows. - Read
references/input-deck-templates.mdwhen assembling a fresh LJ, EAM, or molecule-style input script. - Read
references/potentials-and-ensembles.mdwhen choosing force fields, thermostatting, or barostatting. - Read
references/output-and-restarts.mdwhen designing machine-readable logs, dumps, averaging, or restart behavior. - Read
references/cluster-execution-playbook.mdwhen staging a LAMMPS deck for scheduler-backed cluster execution. - Read
references/error-recovery.mdwhen the log shows instability, missing potentials, or neighbor-list failures.
Work sequence
- Fix the unit system first. Everything downstream depends on it.
- Keep command ordering strict:
- initialization
- system definition
- force fields and neighbor settings
- minimization, velocity setup, fixes, output, run
- Decide whether the structure comes from procedural generation or
read_data. Do not mix both box-building paths. - Match
pair_styleandpair_coeffsyntax to the actual potential family and atom-type mapping. - Minimize before aggressive dynamics unless the user explicitly provides a relaxed starting structure.
- Keep one time-integration fix per atom group unless the combination is explicitly non-overlapping and intended.
Guardrails
- Do not write
read_databeforeunitsandatom_style. - Do not use a timestep copied from another unit system.
- Do not launch NPT on a fragile fresh structure without an equilibration stage.
- Do not ignore neighbor-list settings on hot or highly deforming runs.
Additional References
Load these on demand:
references/minimization-and-box-relax.mdfor energy minimization, pressure relaxation, and pre-production setupreferences/computes-chunks-and-analysis.mdfor RDF, MSD, chunk workflows, and averaging outputsreferences/variables-loops-and-control-flow.mdfor script automation, loops, branching, and multi-run controlreferences/units-fix-compute-matrix.mdfor unit-system, ensemble-fix, and analysis-command matricesreferences/cluster-execution-playbook.mdfor launch style, output-volume control, and restart handoff on clusters
Reusable Templates
Use assets/templates/ when a concrete input-deck scaffold is needed, especially:
lj_fluid_minimal.ineam_metal_minimal.inlammps-mpi-slurm.sh
Outputs
Summarize:
- unit system
- structure source
- force field and atom-type mapping
- ensemble and damping choices
- log-derived failure mode if the script is under repair
微信扫一扫