Can I print timestep in “fix print” command? I tried something like below
fix curve all print 100 “{step} {etot}” file timehisto.dat screen no
where etot is obtained from “variable equal” command. It does not work unless I remove ${step}.
If the usage of “fix print” is limited, is there other command that I can use to print time history of a global variable, and save in a file?
Thanks,
Can I print timestep in "fix print" command? I tried something like below
*fix curve all print 100 "\{step\} {etot}" file timehisto.dat
screen no*
where etot is obtained from "variable equal" command. It does not work
unless I remove ${step}.
unless you define "step" as an equal style variable as well, trying to
expand \{step\} \*has\* to fail\.
however, you \*can\* use an immediate variable (step) (note the small
difference in syntax).
in fact, you could do the same for "etot" by using $(etotal).
axel.