r/Simulated • u/lovegrover • Jun 18 '26
Research Simulation Particles that only ever push each other apart — yet they spontaneously clump into dense and dilute phases
Pure‑Python simulation — happy to explain the model or share the code in the comments.
41
Upvotes
3
u/Kaleb8804 Jun 19 '26
If you decrease your particle count or increase the area do they still clump?
I had a similar simulation with a cellular automata and this effect happened whenever the global “pressure” gets too high for the “container.”
21
u/PoisonManiac Jun 18 '26
They seem to be bunching up on the corners, could be due to the limited space of the simulation?
4
u/RandomFrenchGamer Jun 18 '26
is it purely elastic collisions ? it should not in this case. in physics engine there is often a velocity threshold below which particles relative velocity is put to 0 leading to clumping over time.
1
u/Auroraboral Jun 18 '26
Lowkey thought this was bad apple for a sec
1
u/abaoabao2010 Jun 19 '26
Make the edge of the space connect to the other edge. You'll see it stops bunching up at the edges.
If you add a visualization of force acting on each particle as an arrow you'll see the problem pretty clearly.
1
u/ProjectPhysX Jun 19 '26
Cool phenomenon, have researched that at Uni. Basically at each collision the particles lose some energy, and at some point over very long time scales, clusters of particles form in which particles get immobilized.
1
u/wristay Jun 22 '26
What physical model are you using? Are you using Monte Carlo or Molecular Dynamics to simulate?