Physics simulation - forming solids, liquids and gases from particles

This is a demonstration of a particle simulator I recently developed. In this simulation, two forces counteract between particles - short range repulsion and slightly longer range attraction. In real physics, attraction is caused for example by dipole forces between particles, while repulsion can be explained with the Pauli exclusion principle. Despite not an accurate model of physics, these made up forces obey natural conservation laws - conservation of energy, momentum and angular momentum. Several physical phenomena arise naturally and are clearly visible: solid, liquid and gaseous states of matter, surface tension, diffusion, buoyancy (with the help of a third force, gravity). Particle types: 1) white particles - small, low attraction force, low repelling force 2) cyan particles - large, high attraction force, high repelling force 3) yellow particles - large, no attraction force, high repelling force Source code available at Music: Ladybug - Quincas Moreira
Back to Top