Expand description
Override tables: coefficients from another tool or a measurement in place of hpr’s own.
An override lets the flight engine fly with an oracle’s aerodynamics, so that a comparison
isolates the dynamics, the environment and the motor from the aerodynamic prediction
(docs/VALIDATION.md, the same-drag mode of M2.1, the comparisons with RocketPy).
- A
DragTablegives the zero-lift drag coefficientC_D0(M)on the rocket’s reference area;crate::AeroModel::dragapplies the same angle-of-attack scaling to it as to the buildup. - A
NormalForceTablegives the normal force and its center of pressure against Mach number and angle of attack, read from RASAero II’s aerodynamic export (NormalForceTable::from_rasaero_csv);crate::AeroModel::normal_forcereturns it in place of the Barrowman sum. The export carries no damping, so a flight keeps hpr’s own (docs/physics/flight.md).
parse_mach_csv reads CSV text for a drag table (no I/O: the caller supplies the text):
- Two columns: Mach number and
C_D, optionally under one header row, as in the drag curves of RocketPy’s Calisto, Juno III and Valetudo examples. - A header row: the Mach column is the first whose name contains
mach, and the value column is the one named by the caller (compared without case or surrounding space). Rows with an angle-of-attack column (alpha) other than zero are skipped, which reads RASAero II’s aerodynamic exports.
Tables interpolate linearly and hold their end values outside their range; every lookup says
whether it extrapolated. See docs/physics/aero.md.
Structs§
- Drag
Table - Drag coefficient against Mach number, power-off and optionally power-on.
- Normal
Force Column - One angle of attack’s column of a
NormalForceTable: the normal force’s slope and center of pressure against Mach number. - Normal
Force Lookup - A
NormalForceTable’s normal force at one Mach number and angle of attack, on the table’s reference area. - Normal
Force Table - The normal force and its center of pressure against Mach number and angle of attack, from
another tool, in place of hpr’s own (
crate::AeroModel::with_normal_force_table).
Enums§
- Table
Reference - The area a
NormalForceTable’s coefficients are on.crate::AeroModel::normal_forcerescales them to the rocket’s reference area.
Functions§
- parse_
mach_ csv - Reads a table of a value against Mach number from CSV text.