Inside a parallelepipedic tridimensional domain there are 1815 particles.
1738 of them are light (ML=1) and small (RL=0.5)
with random initial velocities -the color of each particle depends on its initial coordinates {X0,Y0,Z0}-
and 77 are heavier (MH=4, MH=16 and MH=64)
and bigger (RH=1.0, RH=1.5 and RH=2.0)
with null initial velocities -white-.
Over time, the particles collide and the impacts are perfectly elastic, meaning that momentum is conserved.
The trajectory of each particle is a brownian motion when its velocity is a decreasing function of its mass.
These simulations have a duration of 512 time steps.
Please note that a few white particles don't move: that means that they don't undergo any collisions during the 512 time steps.
This is understandable for it is a tridimensional simulation and then the collisions are rarest than in a bidimensional one.