print or save last step information


How should I save or print the information for the last step, if I dump every 1000 steps? Thanks. I checked the LAMMPS manual and did not find any relevant options.


You can write a data file at the end of the simulation, or

If you are running a simulation with n + remainder steps, where n is divisible by 1000, and want to dump the final configuration:

d​ump myDump all atom 1000 dump.atoms

run n

dump myDump2 all atom remainder dump2.atoms

run remainder

This is perfectly fine. All your fixes will remain active, and the final configuration (and the nth configuration) will be stored in dump2.atoms, which you can concatenate to dump.atoms.


please check out the “write_dump” command to write a single frame dump file at (nearly) any time.