I am running a shock simulation and am trying to reproduce some methodology in a paper: Molecular dynamics simulations of shock waves in oriented nitromethane single crystals
I would like to calculate the com and bin them in order to keep track of the velocity of the shocked wave. Now I am running into some trouble converting the ave/spatial command to the chunk/atom fix and compute.
My command is this:
fix com_prof all ave/spatial 10 5 100 z lower ${delta} c_MYcom[3] file com.profle units box
Now I would like to convert this because LAMMPS no longer accepts this format.
My attempt at this is:
compute cc1 all chunk/atom bin/1d z lower ${delta}
fix 1 all ave/chunk 10 5 100 c_MYcom[3] file vel.profile
Can anyone confirm whether I have properly adjusted this?
Jackson