GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - wtfchristina/astro-php: High-fidelity Cowell orbital propagator and Walker-Delta LEO constellation simulator in PHP 8. Integrates RK4 numerical physics ($J_2$, atmospheric drag, SRP), optical inter-satellite link (ISL) Doppler profiling, Dijkstra multi-hop mesh routing, and real-time CesiumJS 3D CZML/SSE visualization.

BranchesTags
Open more actions menu

Latest commit

 

History

45 Commits
45 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
assets
assets
 
 
bin
bin
 
 
public
public
 
 
src
src
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.phpunit.result.cache
.phpunit.result.cache
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
composer.json
composer.json
 
 
composer.lock
composer.lock
 
 
constellation.czml
constellation.czml
 
 
orbit.czml
orbit.czml
 
 
phpunit.xml
phpunit.xml
 
 
viewer.html
viewer.html
 
 

Repository files navigation

AstroPHP

AstroPHP LEO Constellation & Optical ISL Mesh Simulation

CI Status PHP 8.3+ RK4 Integrator Cowell Multi-Force CesiumJS License: MIT


AstroPHP is a numerical astrodynamics engine and LEO constellation propagation framework written in strictly-typed PHP 8.3+. It combines high-precision Cowell-method numerical integration with real-time 3D CesiumJS visualization, optical inter-satellite link (ISL) Doppler profiling, and multi-hop dynamic mesh routing.


Core Capabilities

  • Cowell Numerical Propagator: 4th-order Runge-Kutta (RK4) integration with sub-millisecond execution times.
  • Multi-Force Perturbation Models:
    • Two-Body Central Gravity: WGS84 standard gravitational parameter ($\mu = 398600.4418\text{ km}^3/\text{s}^2$, $R_{\text{Earth}} = 6378.137\text{ km}$).
    • Oblate Geopotential ($J_2$): Earth oblateness driving secular nodal precession ($\dot{\Omega}$) and argument of perigee rotation ($\dot{\omega}$).
    • Atmospheric Drag: Dynamic scale-height atmospheric density coupling ($\mathbf{a}{\text{drag}} = -\frac{1}{2}\rho v{\text{rel}}^2 \frac{C_D A}{m} \hat{\mathbf{v}}_{\text{rel}}$) with rotating Earth reference frames.
    • Solar Radiation Pressure (SRP): Direct solar photon flux with dual cylindrical Earth eclipse shadow boundary detection.
  • Walker-Delta Constellation Engine: Parametric generation of Walker-Delta ($T/P/F$) orbital shells with automated phase offsets and equatorial node spacing.
  • Optical Laser Inter-Satellite Links (ISL): Geometric line-of-sight ray tracing with Earth limb atmospheric buffers ($h_{\text{min}} \ge 100\text{ km}$) and acquisition distance thresholds.
  • Optical Doppler Analysis: Line-of-sight relative velocity ($v_{\text{LOS}}$) derivation and carrier frequency shift ($\Delta f = -v_{\text{LOS}}/\lambda$) profiling for coherent laser terminals (1550 nm C-band and 1064 nm Nd:YAG).
  • Dijkstra Multi-Hop ISL Routing: Real-time shortest path graph routing between ground stations (e.g., Phoenix PHX to Svalbard SGS) across dynamic cross-plane and intra-plane laser topologies.
  • 3D CesiumJS & CZML Streaming:
    • Continuous antimeridian-partitioned ground track geodesics.
    • Non-projected Euclidean 3D vectors (arcType: NONE) for dynamic RF ground downlinks and optical cross-links.
    • Live Server-Sent Events (SSE) telemetry feed (public/stream.php) delivering 10 Hz real-time state vectors.

Architecture Layout

astro-php/
├── bin/
│   ├── propagate.php             # Single-satellite Cowell propagator & CZML generator
│   ├── export_constellation.php  # 12-satellite Walker-Delta ISL mesh exporter
│   └── analyze_doppler.php       # Optical ISL Doppler shift & tracking loop analyzer
├── public/
│   └── stream.php                # High-frequency Server-Sent Events (SSE) telemetry endpoint
├── src/
│   ├── Constellation/
│   │   ├── DopplerAnalyzer.php          # LOS range-rate & Doppler frequency calculation
│   │   ├── InterSatelliteLink.php       # Line-of-sight occlusion & link distance validation
│   │   ├── RoutingEngine.php            # Dijkstra multi-hop shortest path graph solver
│   │   └── WalkerDeltaConstellation.php # Parametric T/P/F constellation generator
│   ├── Coordinate/
│   │   ├── KeplerianElements.php        # Classical orbital elements <-> Cartesian state vector
│   │   ├── StateVector.php              # 3D position & velocity vectors (km, km/s)
│   │   ├── Vector3.php                  # Euclidean vector operations (dot, cross, norm)
│   │   └── Wgs84Transformer.php         # ECI (inertial) <-> ECEF <-> Geodetic coordinates
│   ├── Force/
│   │   ├── AtmosphericDrag.php          # Exponential upper atmosphere drag deceleration
│   │   ├── CompositeForceModel.php      # Acceleration superposition vector accumulator
│   │   ├── EarthGravityModel.php        # Central two-body gravity + J2 perturbation
│   │   └── SolarRadiationPressure.php   # Solar flux acceleration + Earth shadow casting
│   ├── GroundStation/
│   │   ├── GroundStation.php            # Topocentric site location (lat, lon, alt)
│   │   └── PassPredictor.php            # Elevation mask threshold & AOS/LOS window solver
│   ├── Integrator/
│   │   └── RungeKutta4.php              # Fixed-step 4th-order Runge-Kutta numerical solver
│   └── Serializer/
│       └── CzmlWriter.php               # Cesium-compliant CZML packet serializer
├── tests/                               # PHPUnit test suites (100% passing)
├── viewer.html                          # Mission Control HUD & 3D WebGL Cesium viewer
└── composer.json

About

High-fidelity Cowell orbital propagator and Walker-Delta LEO constellation simulator in PHP 8. Integrates RK4 numerical physics ($J_2$, atmospheric drag, SRP), optical inter-satellite link (ISL) Doppler profiling, Dijkstra multi-hop mesh routing, and real-time CesiumJS 3D CZML/SSE visualization.

Topics

astrodynamicscesiumjscowell-methoddijkstra-algorithmdoppler-shiftgnssinter-satellite-linksoptical-islorbital-mechanicsphp8runge-kuttasatellite-constellationserver-sent-eventsspace-mission-designspace-situational-awarenesswalker-delta

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.