Question about counting collisions between different particles types

Submitted by charlie115 on Fri, 06/10/2016 - 15:28

Dear all,

I would like to count the overall number of collisions between different types of particles.
For example, I have particles type 1 and particle type 2, I want to know how many times
during my simulation a 1 particle collides with a 2 particle. Is there a way to do this?

Thank you,
Charlie

ckloss's picture

ckloss | Tue, 06/14/2016 - 23:30

Hi Charlie,

not our of the box - you'd have to implement a fix that loops over the neighbor list to count this
See compute coord/atom / compute coord/gran for examples!

Best wishes
Christoph