Collision simulation for demonstrating thermodynamic properties