name: lammps-restart description: Use this skill to continue LAMMPS stages from restart files while preserving prior stage context. allowed-tools: "lammps_forcefield_validate lammps_prepare remote_submission remote_submission_batch get_avail_remote_task lammps_log_summary md_trajectory_summary execute"
lammps-restart
Overview
Use this skill when a LAMMPS stage must continue from an existing restart file.
Quick Start
- Inspect the prior result directory and identify the intended restart file.
- Run
lammps_log_summaryandmd_trajectory_summaryon the prior stage. - Prepare with
lammps_prepare(recipe="restart"). - Submit with
remote_submission(task_name="lammps_execute"). - Keep old and new receipt/context IDs in the report.
Allowed tools
lammps_forcefield_validatelammps_prepareremote_submissionremote_submission_batchget_avail_remote_tasklammps_log_summarymd_trajectory_summaryexecute
Workflow
1. Verify restart source
- Prefer an explicit
settings.restart_filewhen multiple restart files exist. - Keep continuation outputs in a new stage directory.
- Reuse the force-field card deliberately; do not regenerate or alter parameters silently.
2. Prepare continuation
lammps_prepare(recipe="restart")copies the restart file and writesread_restart.- Preserve or intentionally change ensemble, timestep, temperature, pressure, thermo/dump/restart strides.
3. Analyze continuation
- Use
lammps_log_summaryto confirm completion and thermo behavior. - Use
md_trajectory_summaryto confirm frame output and new restart files.
Method-critical defaults
- LAMMPS restart files are binary and tied to compatible LAMMPS builds/settings; use
read_restartintentionally. - Do not use a restart stage as a stateless fresh submission.
Output Contract
Return:
- prior result path inspected
- restart file path
- new stage path
- submitted receipt/context
- log and trajectory summary paths
- warnings/errors and restart ambiguity
References
- Local source note:
references/lammps_restart_reference.md - LAMMPS read_restart: https://docs.lammps.org/read_restart.html
- LAMMPS write_restart: https://docs.lammps.org/write_restart.html
- LAMMPS restart how-to: https://docs.lammps.org/Howto_restart.html