Hi all,
I am trying to calculate a variable based on a fix ave/time variable, but I fail to do so. This is for sure because I cannot understand the fix ave/time command well, but after a few weeks of trying several things, I decided to email you for help.
A simplified version of my code is as follows.
variable nGas equal count(vgas,RBox)
:
fix Qiso all ave/time 1 100 100 v_time v_nGas start 0 file Qisofile.txt
:
variable A equal “f_Qiso[2]”
Run 1000
I know that my problem is that I am calling the variable f_Qiso[2] at the wrong time. The manual indicates that “Note that some fixes only generate quantities on certain timesteps. If a variable attempts to access the fix on non−allowed timesteps, an error is generated. For example, the fix ave/time command may only generate averaged quantities every 100 steps. See the doc pages for individual fix commands for details.”
Could you please let me know how to be sure that I call the f_Qiso[2] at the right time?
Thanks a lot for your help
Luis