Skip to main content

Module table

Module table 

Source
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).

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§

DragTable
Drag coefficient against Mach number, power-off and optionally power-on.
NormalForceColumn
One angle of attack’s column of a NormalForceTable: the normal force’s slope and center of pressure against Mach number.
NormalForceLookup
A NormalForceTable’s normal force at one Mach number and angle of attack, on the table’s reference area.
NormalForceTable
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§

TableReference
The area a NormalForceTable’s coefficients are on. crate::AeroModel::normal_force rescales them to the rocket’s reference area.

Functions§

parse_mach_csv
Reads a table of a value against Mach number from CSV text.