Physics, Science, Programming, Deep Dives, Thoughts And Theory.
to the meat of the simulation, that is, modeling the dynamics of the molecules. Collision physics are defined for a 2D plane, but extension to a 3D box is possible with minor changes. We define a function that goes through a three-item checklist: Check if there are molecule-molecule collisions and