Counting collision frequency between different types of particles
Hi
I would like to count the collision frequency between different types of particles in each time step.
i have 16 types of particles :
i did manage to count for each type, but what i need is to count for example :
Between Type 1 and Type 1, between Type 1 and Type 2 ...., between Type 16 and Type 16.
here is my code :