Back to browse
GitHub Repository

JIT-accelerated relativistic N-body engine with Planet 9 hypothesis testing

2 starsPython

Astroworld – A universal N-body gravity engine in Python

by salinas00·Feb 19, 2026·3 points·0 comments

AI Analysis

●●●BangerWizardryBig BrainRabbit Hole

171x Numba speedup reveals Moon in Earth residuals—Planet 9 validation engine.

Strengths
  • Symplectic Velocity Verlet integrator with 10^-8 energy conservation over million-year integrations is numerically rigorous
  • Residual signal analysis (RTN decomposition + FFT) reveals hidden gravitational signatures; demonstrated on Moon discovery from 1.1km error
  • Validated against NASA JPL Horizons with 2.7km Earth precision; Mercury GR precession 42.98″/cy matches theory within 0.05%
Weaknesses
  • Niche audience (computational astrophysics PhD level); 2 commits and minimal docs make adoption friction high
  • 90+ tests are excellent but no public benchmarks against established N-body codes (Gadget, AMUSE, IAS15)
Category
Target Audience

Computational astrophysicists, orbital mechanics researchers, physics educators

Similar To

REBOUND · Gadget · AMUSE

Post Description

I’ve been working on a modular N-body simulator in Python called Astroworld. It started as a Solar System visualizer, but I recently refactored it into a general-purpose engine that decouples physical laws from planetary data.Technical Highlights:Symplectic Integration: Uses a Velocity Verlet integrator to maintain long-term energy conservation ($\Delta E/E \approx 10^{-8}$ in stable systems).Agnostic Architecture: It can ingest any system via orbital elements (Keplerian) or state vectors. I've used it to validate the stability of ultra-compact systems like TRAPPIST-1 and long-period perturbations like the Planet 9 hypothesis.Validation: Includes 90+ physical tests, including Mercury’s relativistic precession using Schwarzschild metric corrections.The Planet 9 Experiment:I ran a 10k-year simulation to track the differential signal in the argument of perihelion ($\omega$) for TNOs like Sedna. The result ($\approx 0.002^{\circ}$) was a great sanity check for the engine’s precision, as this effect is secular and requires millions of years to fully manifest.The Stack:NumPy for vectorization, Matplotlib for 2D analysis, and Plotly for interactive 3D trajectories.I'm currently working on a real-time 3D rendering layer. I’d love to get feedback on the integrator’s stability for high-eccentricity orbits or suggestions on implementing more complex gravitational potentials.

Similar Projects

Developer Tools●●Solid

ARB – A Differentiable Rigid Body Simulation Library Using C++23

C++ rigid body simulation with end-to-end automatic differentiation for ML.

WizardryNiche Gem
wbyates777
212d ago