Invntr
Source

All instruments

dynamics

One mass on any spring, shaken at its base, followed over time (SciPy solve_ivp, DOP853, events at every contact and snap).

Spring a stiffness (with a cubic term), or a force-deflection curve from a CSV file (a strip run's curves.csv, with scales) or inline points, extended beyond the data by a stated rule.

Mechanical damping, an ideal transducer, a piezoelectric patch on a resistive load (the lumped pair: force factor, clamped capacitance, load), end stops (push-only spring-dashpot set from a restitution).

Base motion: a sine (RMS acceleration or velocity), a stepped frequency sweep up and down, a stepped amplitude sweep, a half-sine shock, or a free release.

Readings steady swing (max, min, RMS), snaps between wells, peak force on each stop, harvested power, power against load and the best load, the small-signal (linear) answer beside the real one, energy balance error.

Files history.csv, sweep.csv or load.csv, spring.csv (the spring used, data or extension), plot.png.

Field
Dynamics and control
Version
0.1.0
Runs as
Compiled (Rust)
Typical run
20 s

Compiled from source: run sh packs/install.sh once before admitting it.

Known answers it must pass

Admission replaydynamics 0.1.0 · files 3374af07971e…1716
  1. r0001linear resonator from rest, 0.9 f_n, ζ 0.05: steady amplitude m A/|k - m w² + i c w| and phase lag atan2(c w, k - m w²) (closed form; to 10⁻⁶ and 10⁻⁴ deg)passed

    fundamental_mm0.136312 ± 1.4 × 10⁻⁷0.136312locked0.31 % of the tolerance used
    swing_mm0.136312 ± 1.4 × 10⁻⁷0.136312locked0.31 % of the tolerance used
    phase_lag_deg25.3462 ± 0.000125.3462locked0.37 % of the tolerance used
    settled= truetruelockedexact match
  2. r0002free decay, ζ 0.02: logarithmic decrement 2 π ζ / √(1 - ζ²) and damped frequency f_n √(1 - ζ²) (to 10⁻⁶)passed

    log_decrement0.125689 ± 1.3 × 10⁻⁷0.125689locked7.9 % of the tolerance used
    damped_frequency_Hz24.995 ± 2.5 × 10⁻⁵24.995locked0.072 % of the tolerance used
  3. r0003undamped double well, curve points only between the two wells (x³ - x spring): energy conserved to 10⁻⁸ while half the time is spent on the extensionpassed

    energy_balance_error≤ 10⁻⁸1.11573 × 10⁻⁹lockedinside the range
    time_outside_data_fraction≥ 0.10.39716lockedinside the range
    snaps= 00lockedexact match
  4. r0004undamped double well U = k₁(x⁴/(4 x₀²) - x^2/2): kicked at 0.98 √(2 dU/m) stays in its wellpassed

    snaps= 00lockedexact match
    stays_in_well= truetruelockedexact match
    energy_balance_error≤ 10⁻⁸3.23018 × 10⁻¹¹lockedinside the range
  5. r0005the same well kicked at 1.02 √(2 dU/m) snaps acrosspassed

    snaps≥ 17lockedinside the range
    stays_in_well= falsefalselockedexact match
  6. r0006isolated impact on a stop (K 10⁴ N/m, e 0.5, 0.1 m/s): rebound ratio, contact time and peak force of the push-only spring-dashpot (closed form, to 10⁻⁶ / 10⁻⁶ / 10⁻⁵)passed

    stops.upper.restitution_measured= 0.5, within 1.000000 × 10⁻⁶ relativereading not recorded on this page
    stops.upper.contact_time_s= 0.002715, within 1.000000 × 10⁻⁶ relativereading not recorded on this page
    stops.upper.peak_force_N= 0.810367, within 1.000000 × 10⁻⁵ relativereading not recorded on this page
    stops.upper.impacts= 1misseddiffers
  7. r0007half-sine shock (10 m/s², 2 ms) on an undamped linear spring at 25 Hz: residual swing = |(u, u'/w) at the pulse's end| from the exact forced solution (to 10⁻⁶)passed

    swing_max_mm0.0808677 ± 8.1 × 10⁻⁸0.0808677locked1.4 % of the tolerance used
    swing_min_mm-0.0808677 ± 8.1 × 10⁻⁸-0.0808677locked0.39 % of the tolerance used
  8. r0008ideal matched transducer at resonance: P = m A² / (16 ζ w_n) (Williams and Yates 1996; as resonator)passed

    power_uW198.944 ± 0.002198.944locked0.86 % of the tolerance used
  9. r0009linear piezoelectric harvester at resonance, load 1/(w C_p): power |V|²/(2R) from the frequency response of the lumped pair (to 10⁻⁵)passed

    power_load_uW155.877 ± 0.0016155.877locked1 % of the tolerance used
  10. r0010linear piezoelectric harvester, best load found by the time-domain search: R_opt² = (a²+b²)/((b w C_p)² + (a w C_p + w θ²)²) from dP/dR = 0, and its power (to 10⁻³, 10⁻⁵)passed

    best_load_ohm304551 ± 3 × 10²304551locked0.021 % of the tolerance used
    best_power_uW29.8816 ± 0.000329.8816locked0.43 % of the tolerance used
10 of 10 cases passed · sandbox macos-seatbeltrecorded from the kernel in a fresh lab

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

NameUnitDefaultMeaning
mass_kgkg
stiffness_N_per_mN/mA linear spring (or with cubic_N_per_m3 a Duffing spring, F = k x + k₃ x³).
cubic_N_per_m3N/m³0
curveA CSV force-deflection curve, e.g. @rNNNN/curves.csv from strip.
curve_pointsInline [deflection_m, force_N] pairs, used when curve is not given.
curve_xd_over_LThe curve file's deflection column.
curve_forceforceThe curve file's force column.
curve_filterKeep only rows with these column values, e.g. {"precompression_pct": 1}.
x_scale_mm1Multiplies the curve's deflections to metres.
force_scale_NN1Multiplies the curve's forces to newtons.
curve_EI_Nm2N m²With curve_length_m: a dimensionless strip curve (d/L, F L²/EI): x scale L, force scale EI/L².
curve_length_mm
force_signpushpush: the force needed to hold the mass at that deflection (strip's convention); restoring: the spring's force on the mass.
extendquadraticBeyond the data: the end value and slope plus a curvature fitted to the last extend_fit_span of the data, or the end tangent.
extend_fit_span0.1Fraction of the data's range used to fit the extension's curvature.
rest_statelowerWhich stable resting point the mass starts in and deflections are measured from: lower, upper or an index.
rest_near_mmOr: the stable resting point nearest this curve deflection.
tune_to_HzHzScale the curve's force so the small-signal frequency at rest is this (a stand-in for a trim screw).
extra_stiffness_N_per_mN/m0A linear stiffness added about the rest point (e.g. a piezo patch's own stiffness).
gravity_mps2m/s²0Gravity along the direction of motion.
zeta_mech10Mechanical damping ratio, of the small-signal frequency at rest.
damping_Ns_per_mN s/mOr the damping coefficient.
zeta_elec10An ideal (viscous) transducer's damping ratio, or "matched" (= zeta_mech, the most an ideal one takes). Its power is power_ideal_uW.
theta_N_per_VN/VPiezo force factor (lumped): force per volt, also charge per metre.
coupling_k21Or the system coupling θ²/(K C_p), K the short-circuit stiffness at rest.
capacitance_FFPiezo clamped capacitance.
load_ohmohmbestThe resistive load, or "best" (sine only: a load scan and a search for the most power).
load_points13Loads in the scan (log-spaced over 1/(w C_p) x 10^±1.5).
stop_lower_mmA stop below rest (negative).
stop_upper_mmA stop above rest (positive).
stop_stiffness_N_per_mN/m20000Contact stiffness of each stop.
stop_restitution10.5Coefficient of restitution of an isolated impact on a stop.
excitationsine
frequency_HzHzDrive frequency (default: the small-signal natural frequency).
accel_rms_mps2m/s²RMS base acceleration.
velocity_rms_mmpsmm/sOr RMS base velocity (held across a sweep).
f_start_HzHz
f_stop_HzHz
sweep_steps41
sweep_directionbothEach step starts from the state the last one left (jumps and coexisting branches show).
levels_velocity_rms_mmpsmm/samplitude_sweep: RMS velocities in order, at frequency_Hz.
levels_accel_rms_mps2m/s²Or RMS accelerations.
shock_peak_mps2m/s²Half-sine shock: peak base acceleration (signed).
shock_duration_ss
u0_mm0free: starting deflection from rest.
v0_mpsm/s0free: starting velocity.
record_ss1free and shock: how long to follow.
startrestStart at rest, or in the small-signal steady state.
rtol1e-09Integrator relative tolerance (absolute: rtol x each state's scale).
methodDOP853
settle_tol1e-07Steady when amplitude and power change less than this between 10-cycle blocks.
max_settle_cycles3000
measure_cycles50

Readings

NameUnitMeaning
swing_mmmm
swing_max_mmmm
swing_min_mmmm
swing_rms_mmmm
power_uWµW
power_load_uWµW
power_ideal_uWµW
best_load_ohmohm
best_power_uWµW
load_table
coupling_k21
snaps
stays_in_well
final_well
stops
linear_estimate
energy_balance_error1
time_outside_data_fraction1
max_outside_data_mmmm
sweep
snap_level
log_decrement
integrator
history.csv
sweep.csv
load.csv
spring.csv
plot.png
power_vs_linear1
swing_vs_linear1
zeta_mech1
zeta_elec1
capacitance_FF
theta_N_per_VN/V
voltage_rms_VV
voltage_peak_VV

Try the call

Change a value and the command updates. Nothing runs here; paste it into your terminal or give it to your agent.

Terminal
MCP call