DEV Community

Patryk
Patryk

Posted on • Edited on

Building a Ballistic Fire Control Simulator with Python, C# and Redis

 # BALISTIC V5.4 — From Artillery to Global Nuclear Simulator

Since my last article,
the project grew from a simple artillery simulator into something much bigger.

👉 GitHub: https://github.com/InsaneInfinity/Balistic

What's new in V5.4

🌍 CesiumJS 3D Globe

Missiles >500km automatically switch to a 3D globe view.
ICBM trajectories follow a geodesic great circle path over Earth's surface,
with animated flight, glowing trail and apogee marker.

☢️ Nuclear Physics — Glasstone & Dolan (1977)

Every nuclear warhead now has realistic blast zones calculated from the
publicly available US government publication:

  • Fireball: r = 100 × W^0.41 [m]
  • Heavy damage (20psi): r = 290 × W^0.33 [m]
  • Light damage (5psi): r = 690 × W^0.33 [m]
  • Burns (1st degree): r = 2200 × W^0.41 [m]

Example — Sarmat (750kt): fireball 2.7km, hazard zone 145km.

🌬️ Radioactive Fallout

Wind-direction elliptical plume with 3 intensity zones.
Avangard HGV gets air-burst correction (3-4× reduced fallout).

💣 Cluster Munitions

Realistic elliptical dispersion pattern aligned with flight azimuth.
Iskander-M: 54 submunitions in 200m ellipse.
ATACMS: 950 submunitions in 500m ellipse.

🛩️ Cruise Missiles

Flat ~100m trajectory for Kalibr, Tomahawk, Storm Shadow, SCALP...
Realistic subsonic flight time (Kalibr 2500km = ~2.7h).

🌀 Coriolis Fix

Corrected formula: d = Ω·sin(φ)·v_avg·t²/2
With realistic caps: SRBM ~300m, MRBM ~1000m, ICBM ~3000m.

94 Systems from 18+ Countries

Russia, China, USA, UK, France, Turkey, South Korea, Japan,
Taiwan, Ukraine, Iran, Israel, India, Pakistan, Brazil, Sweden, Egypt, Syria...

Screenshots

Tech Stack

  • Python/Flask — frontend, REST API, PDF
  • C#/.NET 10 — ballistic processor (Euler, Coriolis, ISA)
  • Redis 7.x Streams — microservices queue
  • Leaflet.js — 2D satellite map
  • CesiumJS 1.114 — 3D globe

Educational and simulation purposes only.
All data from public sources (Glasstone & Dolan 1977, CSIS, Jane's).

Full source: https://github.com/InsaneInfinity/Balistic

Top comments (0)