Why a bottle has a note
A Helmholtz resonator has two coupled parts: the air in the neck behaves approximately like a moving mass, while the air in the bottle behaves like a compressible spring.
f₀ = c / (2π) · √[ A / (V Lₑff) ]
c is sound speed, A is neck area, V is cavity volume and Lₑff is the effective neck length. The model uses Lₑff = L + 1.7r, a conventional end-correction approximation for a neck of physical length L and radius r.
m = ρA Lₑff · k = ρc²A² / V
These give the same natural angular frequency through ω₀ = √(k/m). The numerical check calculates the mass and stiffness separately, then compares their frequency with the Helmholtz expression.
ẍ + 2ζω₀ẋ + ω₀²x = a cos(ωt)
The driven experiment integrates this damped oscillator with fourth-order Runge–Kutta (RK4). Its steady amplitude is compared with the closed-form response. The ring-down check uses the damped frequency f₀√(1 − ζ²); the energy check switches damping off and checks conservation over ten cycles.
What stays fixed
The illustrative bottle geometry, cavity volume, neck radius, neck length, ambient reference conditions and damping ratio stay fixed while the sound-speed multiplier changes. The source tone and source strength are experiment settings; the motion scale, animation speed and trace window are display settings.
What the what-if means
At 1.00×, the model uses the approximate speed of sound in dry air at 20°C. Other settings are hypothetical changes to sound speed alone, not claims that ordinary air can be adjusted this way while every other material property remains unchanged. The model treats density as fixed and changes the effective bulk modulus consistently with c².
The bottle does not shatter or cease to be a resonator at the slider extremes. What fails is the match to a fixed external pitch. The resonance frequency moves in direct proportion to sound speed; the response falls when the source no longer drives near that frequency. Retuning the source can restore a strong response.
Model limits
This is a lumped, small-amplitude model. It assumes uniform pressure in the cavity, plug-like neck motion, linear damping and a single dominant resonance. It omits detailed viscous and thermal boundary layers, bottle-wall flexibility, radiation losses beyond the chosen damping ratio, turbulent blowing, higher acoustic modes and frequency-dependent end corrections. The drawing exaggerates the air-plug movement for clarity; it is not a scale drawing.
An independent educational simulation; not affiliated with a university, laboratory or musical-instrument manufacturer.