measure
A measured time series (base and response accelerations, e.g. a shaker test) turned into quantities a model can be compared with. random: H1 transmissibility with coherence (Welch, Hann), the relative-motion FRF R = (T - 1)/(-w^2) in mm per m/s^2, its peak, the half-power damping and a single-mode fit of the complex R (f_n, zeta, gain), and the relative displacement in time (RMS, peak, share of time beyond a gap). sweep: the frequency measured from the base signal itself (analytic phase), split up and down at its turning point, in bins a lock-in on the base's phase gives the base, tip and relative fundamentals; the relative displacement amplitude against frequency, each direction's peak and jumps. stepped: levels found from the base's RMS, transients dropped, per level the base RMS and the relative displacement amplitude. Files: frf.csv, sweep.csv or steps.csv, plot.png (Python: NumPy, SciPy, matplotlib).
- Field
- Measurement and data
- Version
- 0.1.0
- Runs as
- Compiled (Rust)
- Typical run
- 10 s
Compiled from source: run sh packs/install.sh once before admitting it.
Known answers it must pass
r0001random, a linear oscillator f_n 13.3 Hz, zeta 0.014, gain 0.93 (exact lsim response to band-limited noise, 100 s at 1024 Hz), 32 s Hann segments: the single-mode fit gives f_n to 1e-3, zeta to 3 % (the Hann main lobe, 0.047 Hz, smooths a 0.37 Hz-wide peak: about +1 % bias, 0.3 % scatter over seeds), gain to 1 %; the peak of |R| is at f_n sqrt(1 - 2 zeta^2) = 13.2974 Hz to 0.01 Hz (a third of a bin), the half-power damping to 5 %passed
fit.f_n_Hz{"value": 13.3, "rel_tol": 0.001}fit.zeta{"value": 0.014, "rel_tol": 0.03}fit.gain{"value": 0.93, "rel_tol": 0.01}peak_frequency_Hz13.2974 ± 0.0113.2938locked36 % of the tolerance usedhalf_power_zeta0.014 ± 0.00070.0143611locked52 % of the tolerance usedcoherence_at_peak≥ 0.980.989867lockedinside the rangebase_rms_mps20.3 ± 3e-100.3lockedunder 0.01 % of the tolerance usedr0002random, f_n 18 Hz, zeta 0.03, gain 1.2, with sensor noise 0.2 m/s^2 RMS on the response: fit f_n to 1e-3, zeta to 3 %, gain to 1 %; half-power damping to 5 %passed
fit.f_n_Hz{"value": 18.0, "rel_tol": 0.001}fit.zeta{"value": 0.03, "rel_tol": 0.03}fit.gain{"value": 1.2, "rel_tol": 0.01}half_power_zeta0.03 ± 0.00150.0301199locked8 % of the tolerance usedr0003chirp 10 -> 16 -> 10 Hz at 1.17 Hz/min, 0.17 m/s^2 amplitude, on the same oscillator (exact lsim response): the frequency measured from the base turns at 16 Hz (to 0.01 Hz) and sweeps at 1.17 Hz/min (to 0.2 %); the base RMS is 0.17/sqrt(2) (to 1e-3); at 10.475 Hz, away from resonance, the relative displacement is the steady-state |R| A = 0.059525 mm (to 0.3 %); the mean of the up and down peaks is at 13.2974 Hz (to 0.02 Hz) and the peaks are the steady-state 0.80864 mm to 2 % (a finite sweep rate lowers and shifts them: about 1 % here); no jumppassed
f_max_Hz16 ± 0.0115.9963locked37 % of the tolerance usedsweep_rate_Hz_per_min1.17 ± 0.00231.17locked0.08 % of the tolerance usedbase_rms_mps20.120208 ± 0.000120.120208lockedunder 0.01 % of the tolerance usedprobe.up_10p5.rel_disp_amp_mm{"value": 0.05952534, "rel_tol": 0.003}peak_mean_Hz13.2974 ± 0.0213.3locked13 % of the tolerance usedup.peak_mm{"value": 0.808637, "rel_tol": 0.02}down.peak_mm{"value": 0.808637, "rel_tol": 0.02}jump_up_Hz= lockedexact matchjump_down_Hz= lockedexact matchr0004a prescribed envelope with jumps (relative displacement 1.0 mm below 14.2 Hz on the way up, 0.3 mm above; on the way down 0.3 mm above 13.6 Hz, 1.0 mm below): the jumps located to one bin (0.05 Hz), the amplitudes either side to 1e-3passed
jump_up_Hz14.2 ± 0.0514.2lockedunder 0.01 % of the tolerance usedjump_down_Hz13.6 ± 0.0513.6lockedunder 0.01 % of the tolerance usedup.peak_mm{"value": 1.0, "rel_tol": 0.001}up.jump_to_mm{"value": 0.3, "rel_tol": 0.001}down.jump_to_mm{"value": 1.0, "rel_tol": 0.001}down.jump_from_mm{"value": 0.3, "rel_tol": 0.001}r0005stepped sine at 13 Hz, four levels of 10 s (0.05, 0.1, 0.2, 0.4 m/s^2 RMS, 0.2 s ramps) on the same oscillator (exact lsim response, transients included): four levels found, the frequency to 0.002 Hz, level 3's base RMS to 1e-3 and its relative displacement the steady-state |R(13 Hz)| A = 0.71979 mm to 0.5 % (the transient left after dropping 40 % of the level decays to under 1 %)passed
levels= 44lockedexact matchfrequency_Hz13 ± 0.00213locked0.16 % of the tolerance usedsteps.l03.base_accel_rms_mps2{"value": 0.2, "rel_tol": 0.001}steps.l03.rel_disp_amp_mm{"value": 0.71978843, "rel_tol": 0.005}
Each line is one reading the kernel checked. The bright band is the tolerance; the needle is the value the instrument actually returned when it was admitted. A needle near the centre line used little of its tolerance.
Inputs
| Name | Unit | Default | Meaning |
|---|---|---|---|
kind | random: broadband (H1 and coherence); sweep: a slow sine sweep up and down; stepped: a fixed sine at increasing levels. | ||
data | A CSV time series, e.g. @rNNNN/01_random.csv from bench import: a time column and two accelerations. | ||
synthetic | Instead of data, a test signal generated here with a known answer: {signal: random|chirp|envelope|steps, f_n_Hz, zeta, gain, ...} (see run.py). | ||
time_column | time_s | ||
base_column | acc_base_ms2 | The base acceleration, m/s^2. | |
response_column | acc_tip_ms2 | The response (absolute) acceleration, m/s^2. | |
nperseg | 32768 | random: samples per Welch segment. The Hann main lobe (1.5/T) must be well under the resonance's half-power bandwidth or the peak is smoothed and the damping read high. | |
overlap | 1 | 0.75 | |
f_lo_Hz | Hz | 2 | random: the band written to frf.csv. |
f_hi_Hz | Hz | 40 | |
peak_search_Hz | Hz | random: [low, high] where the peak is looked for (default the written band). | |
fit_halfwidth_Hz | Hz | random: the single-mode fit uses the peak +- this (default 4 half-power bandwidths, at least 8 bins). | |
highpass_Hz | Hz | 3 | random: the relative acceleration is integrated twice above this frequency. |
gap_check_mm | mm | 0.5 | random: the share of time the relative displacement spends beyond this is reported. |
bandpass_Hz | Hz | [3, 40] | sweep, stepped: the band the base is filtered to before its phase is taken. |
freq_window_s | s | 1.0 | sweep, stepped: the instantaneous frequency is the slope of a least-squares line through the phase over this window. |
edge_s | s | 2.0 | sweep: dropped at each end of the record (filter and phase edge effects). |
bin_Hz | Hz | 0.05 | sweep: the width of each frequency bin. |
jump_ratio | 1 | 1.25 | sweep: adjacent bins whose relative displacement differs by more than this factor are a jump. |
label_range_Hz | Hz | sweep: the range a label claims; a warning says when the measured frequency disagrees. | |
probe_Hz | Hz | sweep: frequencies whose bins are reported as readings (probe.up_10p5 ...). | |
window_s | s | 0.5 | stepped: the base's RMS is taken in windows of this length. |
level_change | 1 | 0.1 | stepped: a change of the base's log RMS by more than this, confirmed by the next window, starts a new level. |
min_level_s | s | 3 | |
settle_fraction | 1 | 0.4 | stepped: the first part of each level dropped as transient. |
Readings
| Name | Unit | Meaning |
|---|---|---|
kind | ||
samples | 1 | |
sample_rate_Hz | Hz | |
duration_s | s | |
base_rms_mps2 | m/s^2 | |
response_rms_mps2 | m/s^2 | |
nperseg | 1 | |
overlap | 1 | |
averages | 1 | |
resolution_Hz | Hz | |
peak_frequency_Hz | Hz | |
peak_rel_mm_per_mps2 | mm/(m/s^2) | |
peak_transmissibility | 1 | |
coherence_at_peak | 1 | |
coherence_min_in_fit_band | 1 | |
half_power_zeta | 1 | |
half_power_Hz | Hz | |
fit | ||
window_bandwidth_ratio | 1 | |
rel_disp_rms_mm | mm | |
rel_disp_peak_mm | mm | |
gap_check_mm | mm | |
time_beyond_gap_fraction | 1 | |
truth_peak_Hz | Hz | |
order | ||
turnaround_s | s | |
f_min_Hz | Hz | |
f_max_Hz | Hz | |
sweep_rate_Hz_per_min | Hz/min | |
up | ||
down | ||
jump_up_Hz | Hz | |
jump_down_Hz | Hz | |
peak_mean_Hz | Hz | |
bins | 1 | |
bin_Hz | Hz | |
probe | ||
frequency_Hz | Hz | |
levels | 1 | |
max_rel_disp_mm | mm | |
steps | ||
synthetic | ||
warnings | ||
ok | ||
frf.csv | ||
sweep.csv | ||
steps.csv | ||
plot.png |
Try the call
Change a value and the command updates. Nothing runs here; paste it into your terminal or give it to your agent.