Flight Vibration Survey (flight-test-operations/flutter/flight-vibration-survey)
Use when the task is reducing an in-flight mechanical vibration survey,
rotorcraft main-rotor track-and-balance and airframe vibration limits
and fixed-wing vibration or buzz surveys, from measured accelerometer
time histories. This leaf implements the order-domain reduction in pure
Python, stdlib only: per-rev (N/rev) order amplitudes from a
synchronous DFT over integer-revolution windows, windowed total RMS
survey levels, root-sum-square combination of the orders, and gating of
each survey point against the declared vibration limit and the 1P trim
limit.
Domain quick reference
- Integer-revolution window: N = round(m_revs * rate / rotor_hz),
rounded to the nearest integer sample count; the window holds exactly
m_revs rotor revolutions. The worked example uses N = 12 * 1000 / 5 =
2400 samples.
- Synchronous order DFT at order p: A_p = (2/N) |sum_{k=0}^{N-1} x_k
exp(-j 2 pi (p m) k / N)| with m = m_revs. The p-per-rev component
falls exactly on DFT bin p * m_revs of the m-rev window, so
integer-revolution windows are exact, with no leakage.
- Total RMS over a segment: RMS = sqrt(mean(x^2)); this is the survey
level of the window. windowed_rms slides with hop equal to the window
and drops a trailing partial window.
- Root-sum-square of the orders: RMS_tot = sqrt(sum_p A_p^2 / 2), which
equals the full-record RMS over integer revolutions for a pure
multi-order signal.
- Vibration verdict: margin = (limit - level) / limit, pass when the
margin is >= 0.
- 1P trim verdict: the same margin applied to the 1P amplitude against
the trim limit; needs_trim when the amplitude exceeds the limit.
- Units: the accelerometer record is in g and the limits are declared
in g; all reductions are unit-consistent.
Workflow
- Fix the survey point: the accelerometer time history samples (g),
the sample rate rate (Hz), the rotor frequency rotor_hz (Hz), the
window length m_revs (integer revolutions, 12 in the worked
example) and the declared vibration limit and 1P trim limit (g).
- Extract each order of interest with order_amplitude(samples,
sample_rate_hz, rotor_hz, order, m_revs). The synchronous DFT runs
over the first N samples of the integer-rev window; a record
shorter than one full window raises ValueError.
- Get the survey level with total_rms over the window, or
windowed_rms(samples, sample_rate_hz, window_s) when the record
spans several windows and the per-window levels matter.
- Combine the orders with rss_of_orders over the amplitude dict.
- Gate the point with vibration_verdict(level_g, limit_g) and the 1P
component with trim_verdict(amp_1p_g, limit_1p_g).
- Reduce the whole point in one call with
vibration_survey_summary(samples, sample_rate_hz, rotor_hz, orders,
m_revs, vibration_limit_g, trim_limit_g); the returned dict carries
the order amplitudes, the windowed total RMS, the RSS check and
both verdicts. orders must include order 1 for the trim verdict.
- Confirm the deterministic checks with the contract test.
Worked example
Rotor 5.0 Hz, 1000 Hz sampling, signal 0.15 g at 1P + 0.06 g at 2P +
0.08 g at 4P (deterministic sines with a phase offset per order),
12-rev window N = 2400 samples. Running the module gives these real
outputs:
- Recovered order amplitudes: 0.150000 g at 1P, 0.060000 g at 2P and
0.080000 g at 4P, exact to 1e-6.
- total_rms = 0.127475 g and rss_of_orders = 0.127475 g (rounds to
0.12748 g); the RSS identity holds to floating-point round-off
(difference about 5.6e-17).
- vibration_verdict(0.127475, 0.15): margin +0.150163, pass. The
margin rounds to +0.150, the survey point clears the 0.15 g limit
by 15 percent of the limit.
- trim_verdict(0.150000, 0.10): margin -0.500000, needs_trim. The 1P
component sits 50 percent above the 0.10 g trim limit.
- vibration_survey_summary returns exactly the keys
order_amplitudes_g, total_rms_g, rss_of_orders_g, vibration_verdict
and trim_verdict.
Pitfalls
- Choosing a window that is not an integer number of rotor revolutions:
the 12-rev window (N = 2400 at 1000 Hz) centers the order bins, and a
non-bin-centered tone (2.3P) leaks up to the 0.05 g sidelobe envelope
while a bin-centered off-order tone (2.5P) stays below 1e-6 g.
- Judging the survey by total RMS alone: total_rms equals the RSS of
the orders (0.127475 g), but the 1P trim check runs against its own
0.10 g limit - 0.150000 g at 1P is needs_trim even though the total
passes the 0.15 g vibration limit.
- Misreading the margin signs: +0.150 against the 0.15 g limit is a
pass with 15 percent clearance, -0.500 against the 0.10 g trim limit
means the 1P component sits 50 percent above, and zero margin at the
boundary counts as pass or no-trim.
- Reading order amplitudes off the phase of the signal: the recovery
is phase invariant (the fixture carries a phase offset per order),
so amplitude estimates do not depend on when the window starts.
- Feeding non-physical inputs: empty samples, non-positive sample
rate, rotor frequency, or window length, order below 1, m_revs
below 1, non-positive vibration or trim limits, negative levels,
and a record shorter than one full window all raise ValueError.
- Underestimating the record length needed: the reduction needs at
least one full window of samples, so a survey point recorded shorter
than the window is rejected rather than partially analyzed.
Verification
- Confirm order_amplitude recovers 0.150000 / 0.060000 / 0.080000 g to
1e-6 on the worked signal, and that recovery is phase invariant.
- Confirm rss_of_orders equals total_rms to 1e-6 (the identity holds
over the 12-rev window).
- Confirm the verdict margins: +0.150 pass against the 0.15 g limit
and -0.500 needs-trim against the 0.10 g trim limit, with zero
margin at the boundary counting as pass or no-trim.
- Leakage: a 2.5P off-order tone stays below 1e-6 g in every
integer-order bin (bin-centered orthogonality), and a non-bin-
centered 2.3P tone stays below 0.05 g, the sidelobe envelope, in
every order bin.
- Confirm every non-physical input raises ValueError: empty samples,
non-positive sample rate, rotor frequency or window length, order
below 1, m_revs below 1, non-positive vibration or trim limits,
negative levels, and a record shorter than one full window.
- Run the contract test offline: python3
scripts/test_flight_vibration_survey.py (35 tests, deterministic,
under 20 s).
Related leaves
- flight-test-operations/flutter/ground-vibration-testing: the
ground-based sibling; this leaf covers the in-flight survey.
- flight-test-operations/performance/rotorcraft-performance-flight-test:
rotorcraft performance testing that sits alongside the rotor balance
survey flight work.
- flight-test-operations/envelope/buffet-boundary-testing: the
high-Mach envelope sibling; this leaf reduces the steady in-flight
survey points.
Behavior contract (gate 3)
Run the deterministic contract test (stdlib unittest, offline):
python3 scripts/test_flight_vibration_survey.py
The test covers exact 1P/2P/4P amplitude recovery to 1e-6 (single
tone, multi-order and phase-shifted), the total-RMS equals
RSS-of-orders identity at 0.12748 g, windowed RMS over one, two and
partial windows, the verdict margins of the worked example, the
documented survey summary key set, leakage rejection of 2.5P and
non-bin-centered off-order tones, the integer-rev window rounding
convention, run-to-run determinism, and ValueError rejection of
non-physical inputs.
Compliance
- Standards referenced, not reproduced: FAR 29 for the rotorcraft
track-and-balance and vibration survey airworthiness context, and
the FAR 25 / CS 25 vibration and buffeting context of 25.251 for
fixed-wing survey work; name-and-paraphrase references only per
standards-map.yaml.
- compliance: STANDARDS-REF, gated: false.
1---2name: flight-vibration-survey3description: Use when you must reduce an in-flight vibration survey: extract the per-rev order amplitudes from measured accelerometer time histories with a synchronous DFT over integer-revolution windows, compute the windowed total RMS survey level, combine the order components by root-sum-square, and gate each survey point against the declared vibration limit and the 1P trim limit. Produces the per-order amplitudes, the total level, the RSS check, and the pass or needs-trim verdicts for rotorcraft main-rotor track-and-balance and airframe vibration limits, and for fixed-wing vibration or buzz surveys. Trigger: vibration survey, track and balance, per-rev order, order analysis, synchronous DFT, rotor balance survey, 1P trim.4license: Apache-2.05---67# Flight Vibration Survey (flight-test-operations/flutter/flight-vibration-survey)89Use when the task is reducing an in-flight mechanical vibration survey,10rotorcraft main-rotor track-and-balance and airframe vibration limits11and fixed-wing vibration or buzz surveys, from measured accelerometer12time histories. This leaf implements the order-domain reduction in pure13Python, stdlib only: per-rev (N/rev) order amplitudes from a14synchronous DFT over integer-revolution windows, windowed total RMS15survey levels, root-sum-square combination of the orders, and gating of16each survey point against the declared vibration limit and the 1P trim17limit.1819## Domain quick reference2021- Integer-revolution window: N = round(m_revs * rate / rotor_hz),22 rounded to the nearest integer sample count; the window holds exactly23 m_revs rotor revolutions. The worked example uses N = 12 * 1000 / 5 =24 2400 samples.25- Synchronous order DFT at order p: A_p = (2/N) |sum_{k=0}^{N-1} x_k26 exp(-j 2 pi (p m) k / N)| with m = m_revs. The p-per-rev component27 falls exactly on DFT bin p * m_revs of the m-rev window, so28 integer-revolution windows are exact, with no leakage.29- Total RMS over a segment: RMS = sqrt(mean(x^2)); this is the survey30 level of the window. windowed_rms slides with hop equal to the window31 and drops a trailing partial window.32- Root-sum-square of the orders: RMS_tot = sqrt(sum_p A_p^2 / 2), which33 equals the full-record RMS over integer revolutions for a pure34 multi-order signal.35- Vibration verdict: margin = (limit - level) / limit, pass when the36 margin is >= 0.37- 1P trim verdict: the same margin applied to the 1P amplitude against38 the trim limit; needs_trim when the amplitude exceeds the limit.39- Units: the accelerometer record is in g and the limits are declared40 in g; all reductions are unit-consistent.4142## Workflow43441. Fix the survey point: the accelerometer time history samples (g),45 the sample rate rate (Hz), the rotor frequency rotor_hz (Hz), the46 window length m_revs (integer revolutions, 12 in the worked47 example) and the declared vibration limit and 1P trim limit (g).482. Extract each order of interest with order_amplitude(samples,49 sample_rate_hz, rotor_hz, order, m_revs). The synchronous DFT runs50 over the first N samples of the integer-rev window; a record51 shorter than one full window raises ValueError.523. Get the survey level with total_rms over the window, or53 windowed_rms(samples, sample_rate_hz, window_s) when the record54 spans several windows and the per-window levels matter.554. Combine the orders with rss_of_orders over the amplitude dict.565. Gate the point with vibration_verdict(level_g, limit_g) and the 1P57 component with trim_verdict(amp_1p_g, limit_1p_g).586. Reduce the whole point in one call with59 vibration_survey_summary(samples, sample_rate_hz, rotor_hz, orders,60 m_revs, vibration_limit_g, trim_limit_g); the returned dict carries61 the order amplitudes, the windowed total RMS, the RSS check and62 both verdicts. orders must include order 1 for the trim verdict.637. Confirm the deterministic checks with the contract test.6465## Worked example6667Rotor 5.0 Hz, 1000 Hz sampling, signal 0.15 g at 1P + 0.06 g at 2P +680.08 g at 4P (deterministic sines with a phase offset per order),6912-rev window N = 2400 samples. Running the module gives these real70outputs:7172- Recovered order amplitudes: 0.150000 g at 1P, 0.060000 g at 2P and73 0.080000 g at 4P, exact to 1e-6.74- total_rms = 0.127475 g and rss_of_orders = 0.127475 g (rounds to75 0.12748 g); the RSS identity holds to floating-point round-off76 (difference about 5.6e-17).77- vibration_verdict(0.127475, 0.15): margin +0.150163, pass. The78 margin rounds to +0.150, the survey point clears the 0.15 g limit79 by 15 percent of the limit.80- trim_verdict(0.150000, 0.10): margin -0.500000, needs_trim. The 1P81 component sits 50 percent above the 0.10 g trim limit.82- vibration_survey_summary returns exactly the keys83 order_amplitudes_g, total_rms_g, rss_of_orders_g, vibration_verdict84 and trim_verdict.8586## Pitfalls8788- Choosing a window that is not an integer number of rotor revolutions:89 the 12-rev window (N = 2400 at 1000 Hz) centers the order bins, and a90 non-bin-centered tone (2.3P) leaks up to the 0.05 g sidelobe envelope91 while a bin-centered off-order tone (2.5P) stays below 1e-6 g.92- Judging the survey by total RMS alone: total_rms equals the RSS of93 the orders (0.127475 g), but the 1P trim check runs against its own94 0.10 g limit - 0.150000 g at 1P is needs_trim even though the total95 passes the 0.15 g vibration limit.96- Misreading the margin signs: +0.150 against the 0.15 g limit is a97 pass with 15 percent clearance, -0.500 against the 0.10 g trim limit98 means the 1P component sits 50 percent above, and zero margin at the99 boundary counts as pass or no-trim.100- Reading order amplitudes off the phase of the signal: the recovery101 is phase invariant (the fixture carries a phase offset per order),102 so amplitude estimates do not depend on when the window starts.103- Feeding non-physical inputs: empty samples, non-positive sample104 rate, rotor frequency, or window length, order below 1, m_revs105 below 1, non-positive vibration or trim limits, negative levels,106 and a record shorter than one full window all raise ValueError.107- Underestimating the record length needed: the reduction needs at108 least one full window of samples, so a survey point recorded shorter109 than the window is rejected rather than partially analyzed.110111## Verification112113- Confirm order_amplitude recovers 0.150000 / 0.060000 / 0.080000 g to114 1e-6 on the worked signal, and that recovery is phase invariant.115- Confirm rss_of_orders equals total_rms to 1e-6 (the identity holds116 over the 12-rev window).117- Confirm the verdict margins: +0.150 pass against the 0.15 g limit118 and -0.500 needs-trim against the 0.10 g trim limit, with zero119 margin at the boundary counting as pass or no-trim.120- Leakage: a 2.5P off-order tone stays below 1e-6 g in every121 integer-order bin (bin-centered orthogonality), and a non-bin-122 centered 2.3P tone stays below 0.05 g, the sidelobe envelope, in123 every order bin.124- Confirm every non-physical input raises ValueError: empty samples,125 non-positive sample rate, rotor frequency or window length, order126 below 1, m_revs below 1, non-positive vibration or trim limits,127 negative levels, and a record shorter than one full window.128- Run the contract test offline: python3129 scripts/test_flight_vibration_survey.py (35 tests, deterministic,130 under 20 s).131132## Related leaves133134- flight-test-operations/flutter/ground-vibration-testing: the135 ground-based sibling; this leaf covers the in-flight survey.136- flight-test-operations/performance/rotorcraft-performance-flight-test:137 rotorcraft performance testing that sits alongside the rotor balance138 survey flight work.139- flight-test-operations/envelope/buffet-boundary-testing: the140 high-Mach envelope sibling; this leaf reduces the steady in-flight141 survey points.142143## Behavior contract (gate 3)144145Run the deterministic contract test (stdlib unittest, offline):146147 python3 scripts/test_flight_vibration_survey.py148149The test covers exact 1P/2P/4P amplitude recovery to 1e-6 (single150tone, multi-order and phase-shifted), the total-RMS equals151RSS-of-orders identity at 0.12748 g, windowed RMS over one, two and152partial windows, the verdict margins of the worked example, the153documented survey summary key set, leakage rejection of 2.5P and154non-bin-centered off-order tones, the integer-rev window rounding155convention, run-to-run determinism, and ValueError rejection of156non-physical inputs.157158## Compliance159160- Standards referenced, not reproduced: FAR 29 for the rotorcraft161 track-and-balance and vibration survey airworthiness context, and162 the FAR 25 / CS 25 vibration and buffeting context of 25.251 for163 fixed-wing survey work; name-and-paraphrase references only per164 standards-map.yaml.165- compliance: STANDARDS-REF, gated: false.