Getting Started
C Compiler
The author uses Code::Blocks. Any C/C++ compiler works. C is recommended for computationally intensive runs.
Python
Spyder IDE is used for Python, but any environment works. Python versions are easier to modify and plot.
Animations
gnuplot for animations, Python (matplotlib) for static plots.
Licence
All code is available under CC BY-NC-SA 4.0 — free to modify with attribution.
Simulation Categories
Each section contains source code files and, where available, sample output images.
Atomic Orbitals
2-photon gravitational orbital atom simulations for H-atom electron transitions. Includes C and Python code, transition animations, and momentum plots.
View →Elliptical Orbits
Gravitational elliptical orbit simulations with extrapolation. Demonstrates that the model reproduces Kepler's laws without a force term.
View →N-Body Simulations
Multi-point gravitational orbital simulations. The central mass is discretised into Planck-mass points, each forming independent orbital pairs.
View →Newton vs Orbital
Side-by-side trajectory comparison between the classical Newtonian approach and this geometric orbital model.
View →Kepler Derivation (Maple)
Step-by-step Kepler's formula derivation in Maple computer algebra system. The derivation shows $G$ emerges from $\alpha$ and $\pi$ alone.
View →Common Simulation Variables
-
ipoints Number of Planck-mass points in the central mass (the Schwarzschild radius)
-
jpoints Total number of points — in a 2-body orbit, the orbiting point is 1 mass unit; jpoints = ipoints + 1
-
kr Sets orbital radius as multiples of ipoints (quantises radius as a function of the Schwarzschild radius)
-
x[0], y[0] Start coordinates for the orbiting point
-
x[1], y[1] Start coordinates for the orbited mass centre point
Note: points may also be assigned random co-ordinates for complex orbits. The simulation itself doesn't distinguish between points — they all rotate around each other.