[lammps-users] and I need to know the velocity of the center of mass

Dear all,
I have two different groups of atoms and I need to know the velocity of the center of mass for each. Is there any way?

Best regards,
Sedigheh

Thank you, but how can I define the group as a chunk? In the “style section of the chunk command” there is no option for “group”

Yes, using the group function vcm(group,dim) of the variable command : which you can then extract using a fix ave/time.

Simon