Hello,
I’d like to output some quantities with fix print, at timesteps that will not be defined through an equal-style variable, but through a file. Below, I’ve written as an indication what I’ve tried to do, but for some reason I don’t get the results that I’d expect. I believe that if I want to use a file, I’ll have to loop over each line of the file in the following way, right?
label loop
variable tss file timesteps.txt
if “${tss} == 100” then “jump in.shear_flow break”
fix thermo_print all print {tss} "{varstep} ${vartemp}" append output.thermo title “step temp” screen no
next tss
jump in.shear_flow loop
label break
run 100
You can imagine that the timesteps.txt contains numbers on each row, like 1,7,10,100, which are the desired timesteps at which I want to output.
Thanks a lot,
Nikos.