[lammps-users] if command

I was trying to dump a file after certain time step using a if command. For some unknown reason, it is starting at the very beginning for the run. Is it possible to dump like this?

variable nstep equal step
print “v_nstep”

if v_nstep > 300000 then “dump 302 all custom 100 ts111_variable.csp c_400 x y z”

Thanks

Tawhid

I was trying to dump a file after certain time step using a if command. For
some unknown reason, it is starting at the very beginning for the run. Is it
possible to dump like this?

no.

the typical way of doing this is to use multiple run commands.
where you define the dump _after_ the first run. if you want just
this one frame, you can use a "run 0" and undump right afterwards.

cheers,
    axel.

Axel is correct. The dump command in your if
statement does not perform a dump. It just defines
a dump command and file, which gets invoked
when a run is performed.

Steve