I'm trying to output thermo info every 8 steps, but from the 5th step. That is, I want to output at steps: 5, 13, 21, 29, 37 ...
However, I can only specify thermo 8, which gives me the output at : 0, 8 , 16, 24 ...
I tried to use:
variable s equal logfreq(8,1000,1000)-1
thermo_modify every v_s
but lammps complained error:
ERROR: Invalid math function in variable formula (variable.cpp:2355)
Is there a way through thermo_modify to do that? Thanks a lot!
Thanks for the suggestions! However, the actual computation I'm trying to do is the numerical time derivative between current and previous timestep, which is based on the use of "fix store/state". This command will be flushed if I issued a new "run" command
reset_timestep 0
fix NVE all nve
compute 1 all ke/atom
variable rt atom c_1[1]
fix s1 all store/state 1 v_rt
fix s2 all store/state 2 v_rt
variable df atom (f_s1[1]-f_s2[1])/(v_tstep)
variable t equal v_df[13]
thermo_style custom step v_t
thermo 2
run 40
Thanks for the suggestions! However, the actual computation I'm trying
to do is the numerical time derivative between current and previous
timestep, which is based on the use of "fix store/state". This command
will be flushed if I issued a new "run" command
hmmm... even if you use "run 5 post no" in the first chunk
and "run 35 pre no" in the second?