Problem
Simulation project
THAAD Simulation
A simulation project, not a real defense system, built to understand noisy sensing, estimation, guidance, and collision assessment in one closed loop.
A defensive-intercept simulation studying noisy radar, six-state Kalman filtering, fire-control gates, proportional navigation, and miss-distance assessment.
What I built
Proof & verification
architecture
System design
The pipeline runs measurement → estimation → fire-control decision → guidance command → physics integration → assessment.
hover or tab through any stage to trace the GNC loop
deep-dive
System deep-dive & failure modes
Failure mode
The interesting failures are false confidence from noisy estimates, bad launch timing, and guidance choices that look stable until geometry changes.
WHAT THE SIMULATION TEACHES
A simulation project - not a real defense system. It exists to study a closed loop: noisy sensors → state estimation → decision → control → assessment. The systems lesson is the same one that shows up in any real-time pipeline: integration timing, lost detections, and continuous-time events that vanish if you only check the state once per frame.
A 3D kinematic simulation of a THAAD-style terminal missile defense concept, written from scratch to close a complete Guidance, Navigation, and Control (GNC) loop in software: noisy radar → state estimator → launch decision → guided interception → engagement assessment. A sandbox for the maths of hitting a bullet with another bullet, run entirely in code.
The estimator is a 6-state Kalman filter tracking position and velocity from Gaussian-noise position measurements. Fire-control launches only when the predicted impact point (PIP) is plausible, the track is mature, and the threat is clearly descending. The interceptor is a two-stage rocket with mass depletion, drag, and G-limits, steered by Augmented Proportional Navigation with a gravity bias.
DESIGN NOTE — WHY CPA MATTERS
At closing speeds of a few km/s, objects move tens of metres per timestep. A naive distance check between frames misses collisions - the interceptor and threat can "jump over" each other entirely. Continuous collision detection via Closest Point of Approach over each step (tmin = -(Δp·Δv)/|Δv|²) gives you the actual minimum miss distance, not a sampling artifact.
Every run ends with a Battle Damage Assessment table in the terminal alongside an interactive 3D Matplotlib replay with a time slider. A typical kill looks like this:
┏━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ BATTLE DAMAGE ASSESSMENT ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ outcome │ KILL │
│ kill alt │ 42.5 km │
│ miss dist │ 0.12 m │
│ closing vel │ 3 100 m/s │
│ max g-load │ 12.4 G │
└──────────────────────────┘
possible outcomes: KILL · GROUND · TIMEOUT
takeaways
Engineering takeaways
Simulation work is most useful when it makes uncertainty visible instead of hiding it behind perfect inputs.