Skip to main content

body_station_issue_warnings

Function body_station_issue_warnings 

Source
pub fn body_station_issue_warnings(
    vehicles: &[(&AeroModel, Option<Peak>)],
    max_mach: Option<Peak>,
) -> Vec<IssueWarning>
Expand description

The body’s damping-station issue a flight meets (#106, ADR-201): when the shock-expansion method flies a vehicle’s body (AeroModel::supersonic_body) and that vehicle’s own top Mach number is past its join’s start (exclusive; NaN counts as past). Each of vehicles is a vehicle the flight flew as a rigid body, in order, with its aerodynamics and its top Mach number while it was the one flying: the launch stack first, then each sustainer a powered separation handed the flight to (crate::Simulation::flown_vehicles, crate::FlightMetrics::max_mach_by_vehicle). A sustainer is a shorter body than the stack, so its join can start lower, and a stack the method doesn’t fly can leave a sustainer it does. The warning lists the body parts the method covers on any vehicle that meets it, each once, in the layout’s order, and keeps each such vehicle’s join (IssueDetail::SupersonicJoins). Inside the join a nose’s or cylinder’s station is joined linearly between the two models’ while its force blends their slopes and moments, so the two agree only at the join’s ends (AeroModel::component_station_m); the station is only where the flight samples the part’s local flow for pitch and yaw damping, and the margins never read it.

The stations rejoin their centers of pressure at the join’s end, hpr_aero::SUPERSONIC_JOIN_WIDTH_MACH past its start, unless the body’s shape takes less than all of the method (hpr_aero::SupersonicBody::shape_weight below 1, or NaN), so the join never ends, or a covered part keeps slender-body theory’s station while its force takes the method’s (a boattail, a cylinder behind it: hpr_aero::SupersonicBody::has_station): then the gap holds at every speed past the start, and the message says so.

A vehicle no faster than SUPERSONIC_SWITCH_MACH, the earliest the join can start, meets none without building the method’s table; nor does one with no top Mach number (it took no step), nor a flight with none (max_mach, the flight’s, which the warning quotes). A NaN top Mach number for the flight counts as past every vehicle’s join. The stations are HPR Sim’s even under a normal-force table of the flight’s own, which keeps HPR Sim’s damping, so the warning holds whatever the drag and the normal force.