Hi All, with version 2008 of lammps we could use following command:
fix 1 group1 ave/spatial 100 50 5000 y center 0.1 vx vy vz y units reduced norm all file output.dat
which would print the corresponding y coordinate of a reduced-unit-generated bin in box units. But in the recent version it gives a error, how can I print the corresponding coordinate of a reduced-unit-generated bin in the same output file of the fix ave/spatial.
In 2008 version I could use the same syntax to have the coordinate of the bins in box units while I was binning up the domain using reduced units. But in recent version it doesn’t let me do that so how I can have the bins coordinates in box units while I use reduced units for binning up?
You can use a per-atom compute as an argument to
fix ave/spatial. If you use compute property/atom you
can specify any atom property (e.g. y) as an arg
to fix ave/spatial.