Why a bottle has a note
A Helmholtz resonator is a cavity connected to the outside by a neck. Air in the neck acts like a moving mass; the compressible air in the cavity acts like a spring. The bottle's natural frequency is
fH = c / (2π) · √[ A / (V Leff) ]
Here c is sound speed, A is neck area, V is cavity volume and Leff is neck length plus an end correction. The model uses Leff = L + 1.7r (illustrative end-correction coefficient).
What the slider changes
Only sound speed changes in the what-if universe. Air density, bottle geometry, damping and the selected laboratory tone remain fixed. In this controlled counterfactual, the air's effective bulk modulus changes with B = ρc². The natural frequency therefore scales directly with c.
m x¨ + b x˙ + kx = A pdrive cos(2π fdrive t)
The neck displacement x is integrated with a fixed-step fourth-order Runge–Kutta method. The measured amplitude is taken from recent simulated cycles and compared with the steady-state oscillator solution.
Fixed assumptions
- Illustrative bottle: 750 mL cavity, 18 mm neck diameter and 35 mm physical neck length.
- Textbook air reference: 343.0 m/s and 1.204 kg/m³ at approximately 20 °C.
- Illustrative damping ratio: 0.035. The drive pressure is a controlled model input, not a calibrated loudspeaker specification.
- The air plug and wavefronts are visually exaggerated. The readout remains a model displacement in micrometres.
This is a linear, lumped-parameter acoustics model. It omits nonlinear flow, turbulence, detailed bottle modes, temperature gradients, frequency-dependent losses and the full radiation pattern. It is an educational model, not a measurement instrument. Independent educational project; not affiliated with a bottle manufacturer or standards body.