output velocity of a group of particles

Deas Lammps users,

I am trying to simulate a liquid flow between two parallel solid walls. I have created 20 different groups for the flow region in the y direction (normal to the flow direction). How can I output the time-averaged velocity of each group?

Many thanks in advance for any help,
Santiago

I think using compute/chunk and fix ave/chunk will be much more handy than 20 groups for this purpose…

Thank you for your reply!

I think using compute/chunk and fix ave/chunk will be much more handy than 20 groups for this purpose…

If I use “compute chunk/atom” + “compute vcm/chunk” + “fix ave/time”, is that right?

I think using compute/chunk and fix ave/chunk will be much more handy than 20 groups for this purpose…

That depends on whether you want the time-averaged velocity of the center of mass or not.

Thanks again!

That depends on whether you want the time-averaged velocity of the center of mass or not.