Expand description
A synthetic flight’s truth: HPR Sim’s flight of the drawn rocket to the ground, sampled every
TRUTH_STEP_S, with its events.
Structs§
- Reshaped
Drag - Set B’s drag: HPR Sim’s zero-lift drag times
scale · (1 + a·exp(−((M − 1)/0.2)²) + b·M), a transonic rise and a slope shaped differently from HPR Sim’s. - Staged
Truth - A staged flight’s truth, one to a stage.
- Truth
- A flight’s truth.
- Truth
Events - The events of a flight, s since launch.
- Truth
Sample - The truth at one instant.
Constants§
- RAIL_
LENGTH_ M - The rail’s length, m: RocketPy’s Calisto example’s 5.2 m, for every design.
- SHEAR_
REFERENCE_ HEIGHT_ M - The height at which set B’s power-law wind takes the drawn speed, m: NASA/TM-2008-215633’s
reference height, as
hpr_atmos::PowerLawWindcites it. - SITE_
LATITUDE_ DEG - The site’s latitude, degrees north: fixed, as nothing here depends on where the field is but its elevation, which is drawn.
- SITE_
LONGITUDE_ DEG - The site’s longitude, degrees east.
- TRUTH_
STEP_ S - The truth’s sample interval, s: a row every 0.01 s from launch, and one at each event.
Functions§
- fly
- Flies
simulation, built frominputs, and keeps its truth. - fly_
staged - Flies
drawon the two-stage designjson: the booster burns out, the stack parts half a second later and the sustainer lights half a second after that. The sustainer comes down under a canopy, the booster tumbling. - inputs
- The inputs a draw flies from, its design read from
files. - tilted
curvetilted by1 + tilt·(2t/t_b − 1)over its burnt_band rescaled to its own impulse: progressive for a positive tilt, regressive for a negative one.