[lammps-users] annealing - dump

Hi,

I received a suggestion from Zhun-Yong Ong to use a reset_timestep command. This solves my problem, thanks to him; however, the numbering of steps in my log file will now look like:
0
… Relaxation
alpha

0
1000 MD
2000

I would like a continuous listing of the steps. Even if it will be easy to fix that with bash commands, I wonder if there is a way to do this directly with LAMMPS: get the positions of all atoms at the end of a MD run, when a relaxation was performed before. Any suggestion other than the reset_timestep?

Thank you

Hi Romain,

If I understand you correctly, you could attempt a single-step NVE
run, with a timestep of 0.0 and a new dump command of frequency 1,
after your MD run.

Zhun-Yong

A slightly more elegant solution is to leave the timestep alone, and just do

dump_modify 1 every 1
run 0

Aidan

p.s. I suspect it would not be hard to modify the code to give the desired behavior.

Yes, I used this way before, except I had a run 1 instead of run 0. Indeed, this seems to be the most elegant way to go. Thanks a lot.

But something unexpected (to me) happened when I ran with the reset_timestep. My final energy was slightly different than before (with a continuous run). The difference is really small (much less than one percent), so this is just about curiosity. What could lead to this difference?
First maybe, a more general question: if you run the same input file, with exactly the same options, number of cpus, machine, binary, random seed number, etc, are you always guaranteed to get the same result? Or is there some “ghost” out there, or random process, involved?

In addition to this, I ran some time ago two relaxation processes. In that case I know I used different binaries - one compiled with Intel, the other one with PGI. At the end of the process, the difference in total energy was almost 2%, which is noticable. I should say I am still running with an older version of the code and maybe this has been addressed before, or even this may be something I should know already; but could the compiler (or the optimization options) yield that kind of difference? If so, what should we trust? Probably this is not related to LAMMPS only, but more generally to any code used by the community. I’d be glad to get your opinion on this.

Thank you

2008/8/29 Aidan Thompson <[email protected]>

You can always use the log command to change to
a new log file between your minimize and dynamics runs.

Steve