u/pavlokandyba
Newtonian superfluid simulation code
This is the self-gravitating superfluid medium that balancing Newtonian gravity with elastic repulsion to prevent singularities.
I wanted to model a vortex as a self-organizing Brownian motion as a follow-up to my vibrating boat experiment I posted some time ago. The boat also became a prototype of the particle because it was repelled by everything it came into contact with. But in the end, this is the simulation that came out.
Physics:
Attraction: Standard Newtonian 1r^2 force (with softening) provides global connectivity.
Repulsion: A short-range 1/r^4 elastic force creates a "lattice" core, providing structural stability and preventing particles from overlapping.
Python Code (NumPy/Matplotlib): https://github.com/MasterOgon/Newtonian-Superfluid-Simulation
Changing the balance of power different results can be obtained.
Gemini AI can run this directly in the chat with interactive power adjustments, which is very convenient if you don't have the software or want to play on your phone.