controlling the elapsed time

Dear Lammps user,

I am wondering if there is a way to set the elapsed time during simulation instead of setting the number of time steps? I want to use “fix dt/reset command” to change time step according to max atom distance in my simulation but because the time step is changing dynamically in every timestep i have not any control on the elapsed time.

Thank you,

Sara

no, there isn't. But fix dt/reset stores the cummulative simulation
time. So you can access that value in your input script and test
on it (e.g. in a loop) and exit when it exceeds some thresshold.

Steve