I am currently working on measuring heat flux using LAMMPS, and I encountered an issue with the fix ave/spatial command in my input script. After researching, I discovered that the “fix ave/spatial” command has been deprecated and replaced by the “fix ave/chunk” command in recent versions of LAMMPS. Here is the error it shows when I ran the script with “fix ave/spatial” command -
ERROR: This fix style is no longer available (src/fix_deprecated.cpp:55)
Last command: fix 4a all ave/spatial 1 1000000 1000000 x lower 10.0 v_atemp file 10Temperature.txt units box
My question is:
*(i) Can I simply replace the “fix ave/spatial” command with “fix ave/chunk” in my input script, or are there additional changes I need to make to ensure smooth execution? *
(ii) I would also like to know if using “fix ave/chunk” will produce the same output as “fix ave/spatial”, as I want to ensure the accuracy and consistency of my results.
(iii) Is there any way to still run input script with this “fix ave/spatial” command without error in LAMMPS?
I would greatly appreciate any expert opinions or insights on this matter. Thank you in advance for your help.