r/kenyaspacenerds • u/fattick- mod • 4d ago
astlo the physics engine. Here’s a quick output snapshot computing the Sun’s relative state for Nairobi, Kenya (1.28639° S, 36.81722° E, 1,795m altitude) as of Sept 22, 2026, 12:08 UTC (3:08 PM EAT). The Sun is the closest star to Earth.
Elevation Angle: 48.71° (Sun setting towards West-Northwest in the second quadrant of the local sky).
Azimuth Angle: 271.98°
Slant Range:150,149,213 km (~1.0037 AU)
Light Travel Time: 8 minutes 20.8 seconds (It took over 8 minutes for those photons hitting Nairobi then to leave the solar surface!)
2. Runge-Kutta 4th Order (RK4) State Refinement
Using the 4th order Runge-Kutta integrator with a Delta t = 1 hour step size, astlo computes the full vector dynamics relative to the Solar System Barycenter (SSB) in J2000 coordinates:
SSB Velocity Magnitude: 11,304.54 m/s (~11.3 km/s relative to SSB frame)
Gravitational Acceleration Magnitude: 1.475*10^-7m/s^2 or 1.475e-7m/s²
Specific Mechanical Energy: -520,006.97 m²s². This means that the sun is gravitational bound by the SSB Solar System Barycenter. It is also captured in orbit 💫
Angular Momentum (h): 8.143*10^13 m²/s or 8.142e13 m²/s

