What it does
HPR Sim flies a rocket from the launch rail to the ground, in six degrees of freedom until the parachute opens. It reads OpenRocket designs and flies in measured weather. It also runs repeatable Monte Carlo dispersions. Packages are on crates.io, PyPI, Homebrew and Scoop.
I decide what goes into it and how it’s organized. Every model in it cites its source and has tests, and all 363 design decisions are written down with the reasons for them.
How it’s put together
Outside the core
hpr-clithe command linehpr-pyPythonhpr-ffia C interface, plannedhpr-netonline weather, terrain and motor datahpr-validatethe validation harness
The core
Library
hprone place to set up rockets, motors and flights, using everything below
Analysis
hpr-analysisMonte Carlo dispersion, sensitivity, optimizationhpr-forensicscompares a flight with its simulationhpr-flightdataflight logs: import, filtering, alignment
Formats
hpr-ioOpenRocket, RockSim and RASAero designs and weather files, read from memoryhpr-formatHPR Sim’s own open design format
Flight engine
hpr-simsix degrees of freedom: rail, integrators, events, recovery, staging
Models
hpr-aeroaerodynamics: normal force, center of pressure, draghpr-designthe rocket: parts, materials, mass properties, stageshpr-motorsolid motors: thrust, mass and inertia over timehpr-atmosatmosphere and wind
Foundation
hpr-coremath, units, frames, the Earth and its gravity
How I check it
HPR Sim matches RocketPy, another open-source simulator, on all 172 values held to a tolerance. It misses its 5% target on real flights. Verification asks whether HPR Sim computes what its models say it should. For that, it flies the same cases as RocketPy from the same inputs. Validation asks whether the models match the real world, and only flight logs can answer that.
Every change to the code flies the RocketPy comparisons again. If any of their numbers moves, better or worse, the build fails until the change is accepted with a written reason. The OpenRocket and real-flight comparisons need files the build machines don’t have. Their numbers stay as last committed until they’re flown again on a machine that has the files.
-
Verification
the build fails if any is out of toleranceRocketPy 1.13 plus two of its later fixes, on the same inputsWhole flights of 6 rockets (3 of them again in calm air) and 5 parachute descents
172 of 172 values within tolerance
-
Code to code
a target that doesn’t fail the buildRocketPy again, each simulator with its own dragWhole flights of 6 rockets
75 of 102 values within target
-
Code to code
each miss over 5% has a written reasonOpenRocket 24.12, in calm air53 of its example designs and 35 private ones
79 of 88 apogees within 5%
-
Validation
the target is a 5% average missPublic altimeter logs from real flightsAverage miss 8.9%, so the target isn’t met
3 of 12 apogees within 5%
-
Validation
the same targetA private collection of real flight logsAverage miss 12.1%, OpenRocket 11.3%
12 of 60 apogees within 5%, OpenRocket 13
-
Diagnosis
what the misses point to7 of the public flights, with the drag from RocketPy’s examplesAverage miss 3.5%. With HPR Sim’s own drag, 2 of 7 were within 5%. The examples’ drag may have been tuned to these flights.
5 of 7 apogees within 5%
| Requirement | How it’s checked | Status |
|---|---|---|
| Match RocketPy within each value’s tolerance, given the same inputs | Code to code, flown again on every change. The build fails if a value is out of tolerance. | Met 172 of 172 values |
| Change no tracked number without a written reason | The build tracks the numbers from every comparison except the private collection | Met The last change moved 52 numbers, 38 for the worse, and each was accepted in writing |
| Miss real flights’ apogees by 5% or less on average | Validation against public altimeter logs | Not met 8.9% on 12 flights |
| Be at least as accurate as OpenRocket on the same real flights | Validation against a private collection’s logs | Not met 12.1%, OpenRocket 11.3% |
A change that made 38 numbers worse
In November HPR Sim got a new model for the drag behind a boattail below Mach 0.8. It’s checked against NACA’s measurements of base drag on the Hermes A-3A. The change moved 52 of the numbers the build tracks, 38 of them for the worse. On the public flights, Erebus 11 and Juno III came closer to their logs, while Bella Lui and Lince got farther off. The private collection’s average miss went from 12.04% to 12.09%. The change was kept anyway, because the new model follows a measurement and isn’t tuned to the flights it’s judged on (decision record 362).
Predictions made before a change stay on record next to today’s numbers. Erebus 11’s committed prediction came in 9.6% low, and today HPR Sim comes in 8.0% low.
Where it misses
Across 12 public flights, HPR Sim misses the logged apogee by 8.9% on average. The target is 5% (Fig. 1). On 60 more flights from a private collection it misses by 12.1%, and OpenRocket by 11.3%. For the 23 of those kept out of any calibration, HPR Sim misses by 16.3% and OpenRocket by 15.0%. All 60 were seen before they were split, so neither group is a blind test.
HPR Sim works out drag from the rocket’s shape. For 7 of the public flights, RocketPy’s examples come with drag data: a team’s table, a constant or a curve from RASAero II or CFD. With the examples’ drag, HPR Sim misses those flights by 3.5% on average. Juno III and Lince still miss by more than 5% with that drag. So drag is the first place to look (Fig. 2). I don’t claim a cause yet for the other 5 public flights or the private collection.
Compared directly: 7 flights, 6.1% average miss
-
Prometheus, Western Engineering, Spaceport America Cup 2022 −8.9%
-
Juno III, Projeto Jupiter, Spaceport America Cup 2023 −6.4%
-
Genesis, EuRoC 2023 −5.9%
-
Bella Lui, EPFL Rocket Team, 2020 +1.1%
-
Lince, EuRoC 2023 +4.0%
-
Cavour, Politecnico di Torino, EuRoC 2023 +5.8%
-
NDRT 2020, Notre Dame Rocketry Team +10.4%
Predicted first: 5 flights, 12.8% average miss
-
Macie XL, flight 2 −29.2%
-
Macie XL, flight 1 −16.2%
-
Erebus 11, BME Suborbitals, EuRoC 2022 −8.0%
-
Astra, Faraday Rocketry UPV, EuRoC 2022 −6.5%
-
Andromeda, Aristotle Space and Aeronautics Team, EuRoC 2022 +4.1%
From HPR Sim’s real-flight, private-collection and validation reports, commit 201814d, November 20, 2026. Its accuracy page lists every check and every known gap.
Flown by HPR Sim’s real-flight comparison at commit 201814d. The logs and the examples’ drag are from RocketPy. The curves are lined up where each first passes 30 m.
What’s next
The milestone I’m working on is done when HPR Sim meets the 5% target on real flights. It also has to be at least as accurate as OpenRocket on the same flights. Drag comes first. After that, the real-flight comparisons will cover more than apogee: descent rate, landing point, speed off the rail and drag while coasting.
Release 0.2 will add a flight analyzer. It will read an altimeter log, even without a design file, and put it next to a simulation of the same flight. The rest is on the roadmap, where each milestone names the test that says it’s done.