mysimulator.uk/WHAT-IF UNIVERSE
ACOUSTICS · INTERACTIVE LAB
WHAT-IF UNIVERSE · HELMHOLTZ RESONANCE

The singing bottle

Change the speed of sound. Keep the bottle and the note fixed. See when the air inside stops singing along.

FIXED-STEP RK4 · 48 kHz
HERO OBJECT / GLASS HELMHOLTZ RESONATORNEAR RESONANCE
AIR PLUG MOTION VISUALLY EXAGGERATED
DRIVE 220 Hz
DRAG TO PAN →

At the reference speed, the bottle's natural frequency sits on the fixed tone. The neck air builds a large oscillation.

CHANGE ONE PHYSICAL INPUT

Speed of sound in the surrounding air

343.0 m/s1.00× textbook reference
0.50× 171.5 m/sREFERENCE 343.0 m/s3.00× 1029.0 m/s
PRESETS
The four controls above are display-only. Bottle physics stays fixed.
NUMERICAL AUDIT

Does the model agree with itself?

4 checks within tolerance
01 / TEXTBOOK ANCHOR
343.0 vs 343.0 m/s

Dry-air reference at 20 °C · 0.00% difference

02 / GEOMETRY VS SCALE LAW
220.0 vs 220.0 Hz

Two independent frequency calculations · 0.00% difference

03 / RK4 AMPLITUDE
0.250 vs 0.250 mm

Time-domain experiment vs closed form · 0.00% difference

04 / RK4 PHASE
90.0 vs 90.0°

Measured phase lag vs closed form · 0.00% difference

MEASURED EXPERIMENT VS THEORYBRUTE-FORCE RK4 · FIXED Δt = 1/48,000 s
RK4 experiment0.250 mm
Closed-form theory0.250 mm
Difference0.00%

The experiment starts from rest, integrates the driven oscillator, then measures its final eight cycles. Theory predicts the steady-state amplitude directly.

THE SCIENCEEquations · assumptions · limits +

Why a bottle has a note

A Helmholtz resonator is a cavity connected to the outside by a neck. The air in the neck behaves approximately like a moving mass; the compressible air in the cavity behaves like a spring. Their exchange of kinetic and compression energy creates a resonant frequency.

The real equations

fH = c / (2π) √(A / (V Leff))

c is the speed of sound, A is the neck cross-sectional area, V is the cavity volume, and Leff is the effective neck length including end correction. Only c changes in this experiment.

x¨ + 2ζωHx˙ + ωH2x = (ωref2xstatic,ref) cos(ωdt)

The neck displacement is integrated with fixed-step fourth-order Runge–Kutta (RK4). The steady-state comparison uses the closed-form driven-oscillator amplitude and phase.

What is held fixed

  • Cavity volume: 0.68 L (illustrative geometry)
  • Neck radius: 12 mm (illustrative geometry)
  • Effective neck length: 41 mm (illustrative geometry)
  • Driving tone: 220 Hz (illustrative test tone)
  • Damping ratio: 0.040 (illustrative model value)

What the model leaves out

The bottle is treated as a compact, rigid-walled cavity with a lumped air plug. Real bottles have frequency-dependent losses, wall vibration, non-uniform neck flow, temperature gradients and a frequency-dependent end correction. The model is most trustworthy when the neck and cavity dimensions are small compared with the sound wavelength and the air motion is small.

The reference 343 m/s is the usual approximate speed of sound in dry air near 20 °C. It is a textbook reference, not a universal constant. The bottle dimensions, damping and 220 Hz drive are illustrative, not a claim about a measured bottle.

An independent educational simulation; not affiliated with any instrument manufacturer or scientific institution.

Made with 🤖 ChatGPT