A tour of HPR Sim
Fly a design file from HPR Sim’s command line and Python, read the output, scatter the inputs, and see how it did on real flights.
This tour is for a flier who has HPR Sim installed, or is deciding whether to install it. They want to see in a few minutes what HPR Sim does with a design file. The tour shows what it prints, how to read it, how to fly it from Python, and how far it has been from real flights. It flies the small rocket the how-to guides use, then turns to a public flight that left a log. Each step links to the page that covers it in full.
HPR Sim says what the simulator is and how to install it.
Fly a design file
hpr sim flies a design file from the launch rail to the ground and prints what happened.
The tour’s rocket is
validation/fixtures/ork/guides/level-1.ork,
a small rocket saved by OpenRocket with two motors to choose from.
Run the commands from a copy of the repository
(git clone https://github.com/nrdptel/fusionspace-eridanus). Or download the file from its page,
and put its path in place of the one shown. Its motors are in the catalog built into HPR Sim, so
it flies with no network. The picture shows the run as a terminal shows it, with four parts
marked:
- A, the configuration. A design file can hold several motor configurations. With none
named,
hpr simflies the file’s default and says how to fly the others with--config. - B, the summary. It gives the static margin in calibers, the balance point (CG) and the center of pressure, and the apogee. Then come the speed off the rail, the motor’s delay against the time to apogee, and the descent rate. The line under the configuration says what the summary’s numbers are: a simulated flight, not a measurement.
- C, the warnings. Each names a known gap in HPR Sim’s models that bears on this flight. It also names the issue that tracks the gap, and which way the gap pushes the numbers. Here the drag may read high. If it does, the apogee reads low, the side that flatters a field’s ceiling (Trusting a simulation).
- D, the events. Liftoff, rail exit, burnout, apogee, the charge, the parachute’s deployment and the ground hit, each with its time, height and speed.
The lines between B and C say what was flown: the motor, the recovery, and the launch. With no site given, as here, that’s a default: sea level on the equator, a vertical rail and calm air.
The same run as text, to copy or search:
$ hpr sim validation/fixtures/ork/guides/level-1.ork
Level 1 guide rocket (level-1.ork)
configuration 1 of 2: [H170M-10]
help: --config flies the others, by number or name: 2 [I175WS-9]
a simulated flight, not a measurement
static margin 1.70 calibers off the rail; least 1.70 calibers, at 0.12 s, before apogee
CG and CP 0.811 m (31.9 in) and 0.923 m (36.3 in) aft of the nose tip, off the rail
apogee 1065.1 m (3494 ft) above the site at 11.62 s
rail exit speed 26.3 m/s (86 ft/s)
delay apogee 9.48 s after burnout, with the charges held; the motor's set delay: 10 s; its charge fires 0.52 s after apogee; the delay may fire 2.0 s short or long (NFPA 1125): climbing at 14.7 m/s (48 ft/s) to 2.52 s after apogee (no speed: falling with nothing open, a fall HPR Sim doesn't predict)
vertical descent 4.4 m/s (15 ft/s) at landing under `Parachute`
motor: 1 × H170M (from the bundled catalog, as of 2026-10-28) in `Motor mount tube`, lit at launch
recovery: `Parachute` at the ejection charge, 0.520 m² of drag area, opened at 12.14 s
launched at 0.00000° N, 0.00000° E, 0 m (0 ft) above sea level, from 1.5 m (4.9 ft) of vertical rail above its aft end, in calm air
note: the file's 1 recovery device flies as OpenRocket flies it. Each opens fully at its event, with the file's drag coefficient or OpenRocket's own. Once one opens, the rocket descends as a point under the open devices' drag alone
warning: drag: issue #67: a cone-like nose's or shoulder's pressure drag reads high from Mach 0.8 (about twice a measured cone's at Mach 0.85, still +15% at 1.5). So the apogee, top speed and drift read low, and the flutter margin and largest dynamic pressure look better than they are. This flight reaches Mach 0.84 at 1.7 s
warning: drag: issue #68: base drag reads high from Mach 0.8 to 1.2 (0.225 against a measured 0.156 at Mach 0.9). So the apogee, top speed and drift read low, and the flutter margin and largest dynamic pressure look better than they are. This flight reaches Mach 0.84 at 1.7 s
warning: drag: issue #18: skin friction is taken as fully turbulent; on a smooth surface a laminar run near the nose lowers it, by 3.6% on RocketPy's Calisto at Mach 0.3. If this surface is that smooth, the apogee, top speed and drift read low, and the flutter margin and largest dynamic pressure look better than they are
warning: stability: issue #172: the static margin read up to 0.1108 calibers above OpenRocket's on four private designs, cause unknown; this flight's may read high by as much
warning: stability: issue #1290: on one of two wind-tunnel models, the center of pressure sat 0.11 to 0.92 calibers aft of the tunnel's at Mach 0.6 and 0.8, as the report's curve reads; fitted over −3° to 4°, about 0.08 at 0.8. So from Mach 0.6 the flight margin may read high. This flight reaches Mach 0.84 at 1.7 s
warning: stability: issue #1198: the center of pressure sat 0.67 to 1.35 calibers aft of a wind tunnel's on two models at Mach 0.9, so past Mach 0.8 the flight margin may read high. This flight reaches Mach 0.84 at 1.7 s
help: issues: https://github.com/nrdptel/fusionspace-eridanus/issues/<number>
event time height speed
liftoff 0.00 s 0.4 m (1 ft) 0.0 m/s (0 ft/s)
rail exit 0.12 s 1.9 m (6 ft) 26.3 m/s (86 ft/s)
burnout 2.14 s 406.4 m (1333 ft) 240.4 m/s (789 ft/s)
apogee 11.62 s 1065.1 m (3494 ft) 0.1 m/s (0 ft/s)
charge 12.14 s 1063.7 m (3490 ft) 5.1 m/s (17 ft/s)
deployment 12.14 s 1063.7 m (3490 ft) 5.1 m/s (17 ft/s), airspeed 5.1 m/s (17 ft/s)
ground hit 245.78 s 0.0 m (0 ft) 4.4 m/s (15 ft/s)
(heights are the center of gravity's above the site; speeds are over the ground, and a deployment's
airspeed through the air)
top speed 285.6 m/s (937 ft/s) at 1.73 s
top Mach number 0.842
landing 0.7 m (2 ft) from the pad at 245.78 s, at 4.4 m/s (15 ft/s)
How far to trust it. Simulated from the design file, not measured. Against 60 logged flights of
fliers' own designs, the simulated apogee averaged 8.0% above the logged one. HPR Sim flew each in
its day's air from ERA5, a weather reanalysis, and each logged apogee is the height climbed in it.
The simulated apogee was within 10% on 31 and read low on 15, by at most 20%. This flight was flown
in the standard atmosphere. On a day warmer than it at the site, the rocket can climb higher than
this apogee; --weather flies the day's air. Plan a waiver or a field's ceiling with room above this
apogee; the altimeter's reading is the one to log, and the RSO decides.
More: https://hpr.fusionspace.co/accuracy.html
Fly your .ork covers choosing the configuration, the site, the rail and the wind. It also covers saving the flight to plot or to open in a spreadsheet.
Scatter its inputs
hpr mc flies the same file many times (Monte Carlo), each flight’s inputs drawn afresh, and prints how far
the apogee and the landing spread. A design file’s masses, its drag and its motor are each a
little off from the real rocket’s. The command takes each scatter as one standard deviation, as a
share of the value. Here they’re --mass-sd 0.02 for the mass, --drag-sd 0.05 for the drag
and --impulse-sd 0.03 for the motor’s impulse. --seed 2026 makes the draws the same on every
run.
-
A, the apogee’s spread. The nominal flight, then the runs’ mean, their standard deviation, and their percentiles. Most runs fell between the
5%and95%columns. -
B, the landing ellipses. Each is drawn to hold its share of the landings if they scattered as a normal spread. The
flights insidecolumn counts how many did. The next-flight ellipse is the one to set against a field’s edges (landing ellipse).In calm air, as here, the landings bunch within about a meter of the pad, not as a normal spread. So the counts and the shares differ. A wind (
--wind) spreads them out. -
C, how far to trust it. The spread comes from the scatter the command was told to apply, not from errors in the models, which move every run together. This note gives the miss on real flights, which the spread leaves out.
The same run as text:
$ hpr mc validation/fixtures/ork/guides/level-1.ork --runs 200 --seed 2026 --mass-sd 0.02 --drag-sd 0.05 --impulse-sd 0.03
Level 1 guide rocket (level-1.ork)
configuration 1 of 2: [H170M-10]
help: --config flies the others, by number or name: 2 [I175WS-9]
200 simulated flights, seed 2026: 0 failed, up to 1.5% of flights at 95%
nominal mean std dev 5% median 95%
apogee (m AGL) 1065.1 1072.4 41.5 1006.2 1072.8 1137.3
apogee (ft AGL) 3494 3519 136 3301 3520 3731
landing distance (m) 0.7 0.7 0.0 0.7 0.7 0.8
landing distance (ft) 2 2 0 2 2 3
opening shock (m/s²) 11.6 15.2 8.7 9.8 9.8 34.7
opening shock (g) 1.2 1.5 0.9 1.0 1.0 3.5
opening airspeed (m/s) 5.1 4.7 2.4 0.8 4.6 8.8
opening airspeed (ft/s) 17 15 8 3 15 29
95/95 upper bounds (at least 95% of flights below, at 95% confidence; a failed flight counted
above): apogee 1155.2 m (3790 ft); landing distance 0.9 m (3 ft)
200 of 200 flights landed, centered 0.7 m (2 ft) west and 0.0 m (0 ft) north of the pad
0 didn't land, up to 1.5% of flights at 95%
landing ellipse semi-major semi-minor heading flights inside
50% 0.0 m (0 ft) 0.0 m (0 ft) 090° T 74.5% (≥ 68.9%)
95% 0.1 m (0 ft) 0.0 m (0 ft) 090° T 98.0% (≥ 95.4%)
95%, the next flight 0.1 m (0 ft) 0.0 m (0 ft) 090° T 98.5% (≥ 96.1%)
(≥ …) is a lower bound on the share of all the flights this scatter could give, at about 95% as
the ellipses are fitted to these same flights, a failed flight counted outside
motor: 1 × H170M (from the bundled catalog, as of 2026-10-28) in `Motor mount tube`, lit at launch
launched at 0.00000° N, 0.00000° E, 0 m (0 ft) above sea level, from 1.5 m (4.9 ft) of vertical rail above its aft end, in calm air
scattered, one standard deviation each: --mass-sd 0.02, --drag-sd 0.05, --impulse-sd 0.03
note: the file's 1 recovery device flies as OpenRocket flies it. Each opens fully at its event, with the file's drag coefficient or OpenRocket's own. Once one opens, the rocket descends as a point under the open devices' drag alone
no flight raised these flags; each could still be up to 1.5% of flights at 95%: a static margin
below zero under power; a pitching moment that turns it away under power, with no margin; faster
than any public flight HPR Sim has been checked against; above 15° angle of attack after the
rail; past Mach 2.5, the core band's top; past Mach 3.5, the envelope's top
warning: drag, the nominal flight: issue #67: a cone-like nose's or shoulder's pressure drag reads high from Mach 0.8 (about twice a measured cone's at Mach 0.85, still +15% at 1.5). So the apogee, top speed and drift read low, and the flutter margin and largest dynamic pressure look better than they are. This flight reaches Mach 0.84 at 1.7 s
warning: drag, the nominal flight: issue #68: base drag reads high from Mach 0.8 to 1.2 (0.225 against a measured 0.156 at Mach 0.9). So the apogee, top speed and drift read low, and the flutter margin and largest dynamic pressure look better than they are. This flight reaches Mach 0.84 at 1.7 s
warning: drag, the nominal flight: issue #18: skin friction is taken as fully turbulent; on a smooth surface a laminar run near the nose lowers it, by 3.6% on RocketPy's Calisto at Mach 0.3. If this surface is that smooth, the apogee, top speed and drift read low, and the flutter margin and largest dynamic pressure look better than they are
warning: stability, the nominal flight: issue #172: the static margin read up to 0.1108 calibers above OpenRocket's on four private designs, cause unknown; this flight's may read high by as much
warning: stability, the nominal flight: issue #1290: on one of two wind-tunnel models, the center of pressure sat 0.11 to 0.92 calibers aft of the tunnel's at Mach 0.6 and 0.8, as the report's curve reads; fitted over −3° to 4°, about 0.08 at 0.8. So from Mach 0.6 the flight margin may read high. This flight reaches Mach 0.84 at 1.7 s
warning: stability, the nominal flight: issue #1198: the center of pressure sat 0.67 to 1.35 calibers aft of a wind tunnel's on two models at Mach 0.9, so past Mach 0.8 the flight margin may read high. This flight reaches Mach 0.84 at 1.7 s
help: issues: https://github.com/nrdptel/fusionspace-eridanus/issues/<number>
How far to trust it. Simulated from the design file, not measured; the spread above comes from the
inputs' scatter alone, not from the model's error. Against 60 logged flights of fliers' own designs,
the simulated apogee averaged 8.0% above the logged one. HPR Sim flew each in its day's air from
ERA5, a weather reanalysis, and each logged apogee is the height climbed in it. The simulated apogee
was within 10% on 31 and read low on 15, by at most 20%. These flights were flown in the standard
atmosphere. On a day warmer than it at the site, the rocket can climb higher than this apogee;
--weather flies the day's air. Plan a waiver or a field's ceiling with room above this apogee; the
altimeter's reading is the one to log, and the RSO decides.
More: https://hpr.fusionspace.co/accuracy.html
Monte Carlo dispersion covers the other scatters, the wind among them, and what each column means.
The same flight from Python
The fusionspace-hpr package flies the same file from Python and hands the flight back as
numbers and NumPy arrays. Use them in a notebook, a plot or a script of
your own. pip install fusionspace-hpr installs it (Python covers the
rest).
This flies the guide rocket with its parachute, from the launch hpr sim used above. That’s sea
level on the equator, a vertical rail of the same length, and calm air. Save it as tour.py and
run python tour.py from the root of a copy of the repository. Or put the downloaded file’s path
in place of the one shown:
from fusionspace import hpr
rocket = hpr.Rocket.from_file("validation/fixtures/ork/guides/level-1.ork", recovery=True)
site = hpr.Environment(0.0, 0.0, 0.0)
flight = hpr.Flight(rocket, site, 1.5)
print(rocket.name)
print(f"apogee {flight.apogee_m:.1f} m at {flight.apogee_time_s:.2f} s")
print(f"rail exit speed {flight.rail_exit_speed_m_s:.1f} m/s")
print(f"top speed {flight.max_speed_m_s:.1f} m/s, Mach {flight.max_mach:.3f}")
landing = flight.landing
print(f"landing {landing['distance_m']:.1f} m from the pad at {landing['time_s']:.2f} s")
for warning in flight.issue_warnings:
print(f"warning: issue #{warning['issue']}, {warning['kind']}")
time = flight["time_s"]
fast = time[flight["mach"] > 0.8]
print(f"above Mach 0.8 from {fast[0]:.2f} s to {fast[-1]:.2f} s, in the recording")
Level 1 guide rocket
apogee 1065.1 m at 11.62 s
rail exit speed 26.3 m/s
top speed 285.6 m/s, Mach 0.842
landing 0.7 m from the pad at 245.78 s
warning: issue #67, drag
warning: issue #68, drag
warning: issue #18, drag
warning: issue #172, stability
warning: issue #1290, stability
warning: issue #1198, stability
above Mach 0.8 from 1.45 s to 1.89 s, in the recording
Rocket.from_filereads the design and its motor configuration, the file’s default ashpr simflies it with none named.recovery=Trueflies the file’s parachute; without it the rocket falls unslowed. This file reads cleanly, but many.orkconfigurations are refused for now (A design from a file).Environmenttakes the site’s latitude and longitude in degrees and its elevation in meters.Flighttakes the rocket, the site and the rail’s length in meters, vertical unless told otherwise. It flies as soon as it’s made.- The numbers are the ones
hpr simprinted above, from the same code. A test holds the apogee, the speeds, the landing and the warnings to that run. The warnings are its warnings as data: each a GitHub issue number, a kind, a message and a link. flight["mach"]and the rest are the recording: the flight’s values at each recorded time, one NumPy array per column. The last lines find when the rocket flew faster than the Mach number in the code. It’s the Mach number from which the warnings on the nose’s and the base’s drag say the drag reads high.
Python covers building a rocket part by part, Monte Carlo runs, and the recording’s columns.
A real flight
The guide rocket has no log, so its numbers can’t be checked against the sky. The public flights in the real-flights report can. Most are university teams’ rockets. HPR Sim flies each of those in a reanalysis of the weather, its own day’s for all but one, and sets it against the team’s altimeter.
The tour takes the middle one by a rule, not by choice. Of the 7 flights compared along their whole climb, the one whose miss, without its sign, is the median is Cavour, Politecnico di Torino, EuRoC 2023, the report’s case cavour. EuRoC is the European Rocketry Challenge. If a rerun of the report moves the middle, the tour moves to the new one.
Cavour’s altimeter read 2,785.0 m (9,137 ft) at the top, 22.4 s after the rocket passed 30 m (98 ft) on the way up. An altimeter riding HPR Sim’s flight of its design would have read 2,945.5 m (9,664 ft), at 22.7 s. That’s a miss of +5.76%, so HPR Sim read high. For a waiver or a field’s ceiling, a high reading mainly costs height: the rocket tops out below the height that was planned for. A low reading is the side that flatters a ceiling.
The report puts the miss down to HPR Sim’s drag: flown on the drag the team’s example gives, the apogee missed by −2.17% (report). The example records no fin edges, so the design’s are placeholders.
One flight says little alone, so here it is beside the rest. On the 12 public flights HPR Sim’s apogee missed by −29.16% to +10.39% one by one. It missed by 8.83% on average without signs, and by −4.61% with them. The average without signs is outside the project’s own 5% target (Accuracy).
On these flights the misses go both ways and lean low, 7 of the 12 that way. On 60 logged flights of fliers’ own designs they lean high, averaging +8.01% above the logged ones: no side can be assumed. Trusting a simulation sets the two beside each other and says which miss to plan for.
Sources. The public flights are among those RocketPy’s documentation flies against their teams’ logs, but for one rocket’s two flights, which come from a public repository of designs and logs. The reanalysis is ERA5, generated using Copernicus Climate Change Service information 2026, and contains modified Copernicus Climate Change Service information 2026. Neither the European Commission nor ECMWF is responsible for any use made of it. The logged flights’ report gives the full attribution and the ERA5 citations.
Where next
- For your own rocket, start with Fly your .ork. Then read Check stability for a certification flight and Pick a motor.
- Every command and flag is in The command line.
- To work from Python or Rust, read Python and Getting started.
- Before you rely on a number, read Trusting a simulation and Accuracy.
- To see HPR Sim beside the other simulators, read Compared with other simulators.