DEV Community

pongtse822-rgb
pongtse822-rgb

Posted on

I Built a Black Hole Universe Simulator (Open Source, Seeking Collaborators)#python #opensource #physics #showdev

TL;DR

I built a 2D N-body physics simulator to test if a universe could exist
inside a black hole. It works, but needs GPU power. MIT-licensed, seeking
collaborators.

πŸ”— GitHub


The Idea

What if our observable universe is actually inside a black hole's event
horizon? It sounds crazy, but some physicists have seriously proposed this
("Black Hole Cosmology").

I decided to simulate it.

What It Does

  • Simulates N-body gravity within a spherical "membrane" (event horizon)
  • Models tidal forces near the boundary
  • Tracks atmospheric evolution on planets (Oβ‚‚/Nβ‚‚ generation)
  • Uses mass injection as a dark energy analog

Results So Far

After 2000 epochs with 1000 bodies:

  • 2.7% became "Gaia worlds" (breathable atmospheres)
  • System shows Hubble-like expansion
  • Mass conservation: 99.94% βœ“

The Problem

I've hit my resource limits. The code is pure Python with O(NΒ²) gravity
calculations. To go further needs:

  • GPU acceleration
  • 3D implementation
  • Access to HPC cluster

Why I'm Sharing This

The code is MIT-licensed. I'm not looking for authorship or citations -
just hoping someone with better resources might find this useful as a
starting point.

If you have:

  • Access to GPU/HPC resources
  • Interest in computational astrophysics
  • Ideas for extending this

Feel free to fork and run with it! I'm happy to answer questions about the
implementation.

Tech Stack

  • Pure Python (no NumPy/SciPy)
  • ~500 lines of physics code
  • Runs on Google Colab (free tier)
  • Well-documented with verification suite

Links

Questions I'd Love Feedback On

  1. Are the physics assumptions reasonable?
  2. How would you optimize the gravity calculation?
  3. Is this worth pursuing in 3D?

Thanks for reading! 🌌


Cross-posted to seek collaborators. Not spam, genuinely looking for
continuation of this research.

Top comments (0)