Helmholtz resonance
A bottle's neck contains a moving plug of air. The cavity compresses like a spring while the neck air supplies inertia. The natural frequency is
f₀ = c / (2π) √[A / (V Leff)]
A is the neck area, V is cavity volume, and Leff is neck length plus an approximate end correction of 1.7 times the neck radius.
Forced motion
The moving air plug is represented by a damped, driven oscillator:
m ẍ + b ẋ + kx = pA sin(ωt)
Here m = ρALeff, k = ρc²A²/V, and b = mω₀/Q. The animation integrates this equation with a fixed-step fourth-order Runge–Kutta method.
What the what-if changes
The slider scales the sound speed c from 0.5 to 3 times 343 m/s. Since f₀ is proportional to c, the natural pitch moves in direct proportion. If the source frequency is not retuned, the bottle can become strongly detuned even though its resonance still exists.
Simplifications
- Air density is held at 1.204 kg/m³; only sound speed is changed.
- The gas is treated as uniform, ideal and nondispersive.
- The neck is a rigid cylinder; wall vibration and viscous boundary layers are omitted.
- The end correction is approximate, and Q is an illustrative damping control.
- Air-plug movement is exaggerated visually; readouts use modelled physical displacement.
An independent educational simulation for mysimulator.uk; not affiliated with instrument, glassware or audio-equipment manufacturers.