Wanna Simulate the Universe?
Alright, a bit grand. This is not even anything like the real universe. A little while ago I came across a post discussing negative mass and decided to write a simulator that does the same thing. My 8 core Mac Pro could surely do a more intensive simulation in combination with grand central dispatch.
A few hours later I was generating tiny universes and creating mov files of their evolution. This little proggy creates some masses of various sizes, and then crunches the (modified) Newtonian gravitation between all particles. I fix all the constants of this universe to 1. It outputs a raw mov. You need a mac with devtools to build right now, although the core mathematics could be done anywhere with minimal effort.
Check out these two sample runs:
The next step for this project is to output a list of points and times, and an OpenGL renderer that presents the data.
Also, I'd like to simulate mass aggregation to see if I can get black holes and the like.
