14.5 Vibrating Beams & Structures ended on a wave with an unusual dispersion, . Sound is the plainest wave there is, at every audible frequency. 9.4 The Wave Equation & Vibrating Strings said in a callout that sound obeys the string’s equation, and 11.12 Compressible Flow & Shocks got it in 1D from the Euler equations. Here we derive it in 3D and use it: pipes and rooms, spherical waves, interfaces, the Doppler shift, and a 2D finite-difference room checked against its exact modes.
Transcript
- Sound is a small perturbation of still air. Linearize the mass and momentum equations about rest and close them with p prime equals c squared rho prime. Eliminating the velocity gives p prime t t equals c squared times the Laplacian of p prime, the wave equation in three dimensions. The speed is the square root of gamma p zero over rho zero, 343.2 metres per second at 20 degrees Celsius. Newton took the compressions as isothermal and got 290.1, which is 15.5 percent low.
- A plane wave has pressure equal to Z times velocity, where the impedance Z is rho zero c, 413 in air. Intensity is the rms pressure squared over Z. Levels are 20 log of pressure over 20 micropascals, about the threshold of hearing, from memory, so 1 pascal rms is 93.98 decibels, and doubling the pressure adds 6.02. For a spherical wave put U equal to r p. The equation for U is the one-dimensional wave equation, so the outgoing wave is F of r minus c t over r. A source of 1 watt gives 5.73 pascals, 109.1 decibels at 1 metre, and every doubling of distance costs 6.02 decibels.
- A tube guides the wave along its axis. At a closed end the air cannot move, so the pressure slope is zero. At an open end the atmosphere holds the pressure, so it is zero. Separating variables gives the Sturm-Liouville problem. Alike ends resonate at n c over 2 L, and a closed-open pipe has only odd harmonics, c over 4 L times 2 n minus 1, so it sounds an octave below an open pipe of equal length. For a pipe of length 0.5 metres, the closed-open pipe resonates at 171.5, 514.5 and 857.5 hertz, and the open-open pipe at 343, 686 and 1029.
- At an interface between impedances Z 1 and Z 2, pressure and particle velocity must be continuous. That gives R equals Z 2 minus Z 1 over Z 2 plus Z 1. A rigid wall has R equal to plus 1, the closed end, and a pressure-release surface has R equal to minus 1, the open end. Water at 20 degrees, from memory, has an impedance 3581 times that of air. So R is 0.99944, and 99.89 percent of the intensity is reflected. Only minus 29.5 decibels is transmitted. The pressure on the water side is 1.9994 times the incident pressure, doubled as at a wall, yet with so much impedance almost no power crosses.
- A source emitting crests every T zero while it moves toward you at speed v s delivers them closer together, so f prime equals f zero over 1 minus v s over c. Behind the source it is f zero over 1 plus v s over c. A 440 hertz siren on a car at 30 metres per second sounds 482.2 hertz approaching and 404.6 receding. At Mach 0.5 the lab finds 2.000 and 0.667 times f zero. As the Mach number reaches 1 the fronts pile up. Above 1 the source outruns its waves, which are tangent to a cone with sine theta equal to 1 over M, 30 degrees at Mach 2. A shock is the Doppler effect run past its limit.
- Take a 6 metre by 4 metre room with rigid walls. Its modes are Neumann eigenfunctions, with frequencies c over 2 times the square root of m over L x squared plus n over L y squared. The first are 28.583, 42.875, 51.529 and 57.167 hertz, and there are 46 below 250. The leapfrog scheme of the earlier lessons steps the pressure on a grid. The Courant number is 0.7 against a limit of 1 over root 2, so with 0.1 metre cells the step is 204.1 microseconds. Here a pulse leaves the corner and the walls throw it back.
- Fire a zero-mean pulse in one corner, record the far corner, apply a Hann window and take the spectrum. At 0.1 metre cells the peaks sit within 0.01 hertz of the grid formula, and well within a fraction of a hertz of the exact modes: 28.580 against 28.583, 57.155 against 57.167. Higher modes drift more. For the 4,0 mode, exact 114.333, the peaks at 0.2, 0.1 and 0.05 metre cells are 113.895, 114.227 and 114.304 hertz, errors of minus 0.438, minus 0.106 and minus 0.029, a factor of roughly 4 per halving. Put a 1 by 1 metre block in the middle and the lowest peak moves from 28.58 to 26.32 hertz.
- We took sound from Euler to a numerical room whose leapfrog grid gets the eigenmodes right to a fraction of a percent. Each cell talks only to its neighbours, so the work per step grows with the number of cells. The next lesson, n-body, is about bodies that all act on all. The syllabus lists the N-body equations, softening, leapfrog for N-body, energy and momentum checks, the cost of all pairs, Barnes-Hut trees and the fast multipole idea. The leapfrog is the same scheme, with a sum over all pairs on the right-hand side.
From Euler to the wave equation
Perturb air at rest: , , with small and , constant. Mass and momentum from 11.3 Momentum: Pressure & the Euler Equations (gravity only adds a hydrostatic profile) are
Keep first-order terms: products like and are second order, constants have no derivative.
Three unknown fields, two equations. The closure is thermodynamic: for smooth flow without viscosity or conduction, entropy rides with the fluid (from memory, as in the compressible-flow lesson), so linearized about uniform air with . Differentiate the mass equation in time, take the divergence of the momentum equation, and eliminate :
This is the wave equation of 9.8 Higher Dimensions: Membranes & Drums in three dimensions. The curl of the momentum equation gives : sound has no vorticity, so .
Why adiabatic. Newton (1687, from memory) took the compressions as isothermal and got . Laplace (1816, from memory) saw that heat cannot cross a wavelength in a fraction of a period. With and J/(kg K) for dry air (from memory), Pa and K, we get kg/m and
Newton’s value is times too small, low. We use m/s below; since , sound is faster on a day K warmer.
Is linearizing legitimate? It needs and . A dB sound (defined next) has pressure amplitude Pa, so ; at kHz the air moves m at mm/s, . The dropped terms are smaller by that factor. A jet engine is not small, and shocks appear (11.12 Compressible Flow & Shocks).
Plane waves, impedance and decibels
In 1D, (9.5 d'Alembert's Solution & Characteristics). For the right-going part the momentum equation gives :
The characteristic impedance is the pressure needed to move the air at a given speed; for air Pa s/m (rayl). A left-going wave has . The power per area is , and its average is the intensity .
Hearing spans a huge range, so levels use logarithms: dB with Pa, about the threshold of hearing at kHz (from memory). One pascal rms is dB, about , and carries W/m. Doubling the pressure adds dB; a second equal uncorrelated source doubles and adds dB. A sinusoid peaking at one atmosphere is dB, the ceiling for a small perturbation.
Pipes: standing waves and eigenvalues
A tube guides the wave along : on . At a closed end , so : Neumann. At an open end the atmosphere holds the pressure, : Dirichlet, an idealization we correct below. Separating gives , , the Sturm-Liouville problem of 8.2 Eigenvalue Problems & Sturm–Liouville Theory:
| Ends | |||
|---|---|---|---|
| closed-closed | |||
| open-open | |||
| closed-open |
The closed-open pipe has only odd harmonics, , and sounds an octave below an open pipe of equal length. The string of 9.4 The Wave Equation & Vibrating Strings has the same two ladders (fixed-fixed, fixed-free), the beam’s (14.5 Vibrating Beams & Structures) comes from the same kind of eigenproblem with a different operator, and the chain of 14.1 Coupled Oscillators & Normal Modes is a pipe made of beads. Another view: a standing wave needs , where is the phase change from the two reflections. A closed end reflects pressure unchanged, an open end flips its sign (shown below), so closed-open has and .
Worked example. For m and m/s the closed-open pipe resonates at , and Hz; the open-open pipe at , and Hz. For Hz an open pipe needs m, a closed one m.
End correction. Air just outside an open end moves with the wave, so the pipe acts longer: about per unflanged open end of radius (Levine and Schwinger, 1948, from memory). For cm the closed-open pipe has m and its fundamental drops from to Hz, Hz flat.
Discrete pipe. On cells of size the second difference, with mirror ghosts at a closed end and sign-flipped ghosts at an open end, gives a symmetric matrix. For np.linalg.eigvalsh gives , and Hz against exact , , : the error grows like , for the first mode and for the third. The exercise builds this matrix.
Spherical waves
A small pulsating sphere gives . The Laplacian of such a function is , from the divergence on a thin shell (2.7 Divergence: Sources & Sinks). Put : then , so
The 3D radial problem is the 1D wave equation, , and the outgoing wave is . The shape travels at while the amplitude falls as , so and the power is constant. Each doubling of distance costs dB: dB at m is dB at m and dB at m. One acoustic watt (power level dB re W) from a point source gives W/m at m, Pa, dB, falling to dB at m in a lossless free field. In 3D a pulse passes without a tail, while in 2D (our simulation) it leaves one (Huygens’ principle, from memory).
Reflection and transmission
Media of impedance () and () meet at . An incident gives a reflected and a transmitted . Pressure and particle velocity are continuous at the interface. With :
The reflected intensity fraction is and the transmitted ; they add to (Problem 2). A rigid wall () gives , a Neumann condition; a pressure-release surface () gives , Dirichlet: the pipe’s two ends.
Air to water. For water at C, kg/m and m/s (from memory), Pa s/m, times the air’s . Then and : of the intensity is reflected, ( dB) transmitted. The water-side pressure is times the incident one, doubled as at a wall, yet with times the impedance almost no power crosses. From below . A swimmer hears little of the shouting on the pool deck.
The Doppler effect
A source emits crests every while moving toward a still observer at . Crest leaves closer and arrives earlier, so arrivals are spaced by
Behind the source it is . For a moving observer and still source the crests are apart and met at relative speed : . The cases differ because sound has a medium. In general , speeds positive toward each other (Problem 3).
A siren. A Hz siren on a car at m/s ( km/h) sounds Hz approaching and Hz receding: ratio , semitones. A listener driving at m/s past a still siren would hear and Hz.
The limit . As , and wavefronts pile up ahead. For the source outruns its waves, which are tangent to a cone of half-angle , at , the cone quoted in 11.12 Compressible Flow & Shocks. A shock is the Doppler effect run past its limit.
At the lab counts arrival times at observers ahead and behind and finds and times , matching . In the pipe view, closed-open, mode ( Hz at m, the third harmonic) has one interior pressure node where the fundamental has none.
Absorption, and the sound of flight
Add viscosity to the momentum balance, , with Pa s for air (from memory). Eliminating as before, , and a plane wave decays as with
High frequencies die first. At kHz Np/m, only dB per kilometre, and times more at kHz. Real air absorbs far more at kHz, a few dB/km (from memory), because heat conduction and molecular relaxation add to viscosity; I do not derive them. The room simulation below uses a crude friction term , a decay independent of frequency: s is a dB energy decay in s.
A 2D room by finite differences
Take a m by m room with rigid walls, . This is a 2D slice, fields independent of height (a true 3D room adds a third index). The modes are Neumann eigenfunctions, like the membrane of 9.8 Higher Dimensions: Membranes & Drums with Neumann in place of Dirichlet ends, so or may be zero:
At m/s the first are Hz , Hz , Hz , Hz ; and coincide at Hz. There are below Hz. Drive one and, without damping, the source pumps that pattern up without bound.
The scheme is the leapfrog of 10.5 Wave Equation Numerics & the CFL Condition on a cell-centred grid, :
Walls lie on cell faces and a wall neighbour contributes nothing: a mirror ghost. The lab’s rigid block works the same way. The limit is : for m, s; the lab uses , s. This is the time stepping of 4.7 Energy & Symplectic Integrators on a grid of coupled oscillators. The plane-wave test gives the grid’s own modes exactly, since a cosine fits mirror walls: .
A real room is 3D, with limit . For m up to kHz at cells per wavelength, cm gives million cells and, at of the limit, steps per simulated second: cell updates per second of sound.
The lab
- Defaults ( m, , ): drive at , and Hz. The field locks into , then , then their product.
- Press measure spectrum: peaks sit on the dashed mode lines, and the readout lists exact, grid and measured values.
- Set m/s (about C): the lowest mode falls to Hz, as .
- Cell size m: the peak slides down; m brings it back.
- Tick rigid block and measure again: peaks move and the dashed lines no longer apply.
The exercise: pipe and room modes
The playgrounds compute levels and a Doppler shift, then run the 2D leapfrog room in numpy on a coarse grid. The exercise builds the pipe eigenproblem and the room-mode list.
Concept checks
Problems
Helium has and J/(kg K) (from memory). Find at C and the factor by which vocal-tract resonances, which scale like , rise.
Show worked solution
m/s, times air’s m/s. The resonances rise by , about one and a half octaves, so the voice sounds thin while the pitch of the vocal folds is unchanged.
Show that the reflected and transmitted intensity fractions add to .
Show worked solution
For incident pressure amplitude the intensity is . The reflected wave has , a fraction ; the transmitted has , a fraction . Then
may exceed ( into water): that is pressure, not energy.
Two cars drive toward each other at m/s each, and one sounds a Hz horn ( m/s). What does the other driver hear?
Show worked solution
Hz. The effects multiply: , from Hz (source moving) and Hz (listener moving).
What comes next
We took sound from Euler to a numerical room whose leapfrog grid gets the eigenmodes right to a fraction of a percent at ten points per wavelength. Each cell talks only to its neighbours, so the work per step grows with the number of cells. The next lesson, 14.7 N-Body Simulation, is about bodies that all act on all. The syllabus lists the N-body equations, softening, leapfrog for N-body, energy and momentum checks, the cost, Barnes-Hut trees and the fast multipole idea; the leapfrog is the scheme of 4.7 Energy & Symplectic Integrators, with a sum over all pairs on the right-hand side.
Key Takeaways
- Linearizing about still air with gives , m/s at C; Newton’s isothermal m/s is low.
- A plane wave has , Pa s/m, and ; Pa rms is dB.
- Closed ends are Neumann and open ends Dirichlet: for like ends, odd harmonics for closed-open, plus an end correction near .
- With the radial equation is 1D: , , dB per doubling.
- : air-water reflects ; a wall gives , a free surface .
- Doppler: for a moving source, for a moving observer; for a cone with .
- Viscous loss grows as ; Lighthill puts turbulence on the right of the same wave equation.
- A 2D leapfrog room at gets the modes to Hz at m; the error falls per grid halving.