Doppler effect simulation: a moving wave source
Watch a wave source travel along a rope and see its waves bunch up in front and spread out behind, the pattern behind a passing siren's drop in pitch.
λ ahead = (v − vs)/f, λ behind = (v + vs)/f
- λ ahead
- wavelength in front of the moving source (m)
- v
- wave speed along the rope (m/s)
- vs
- speed of the source (m/s)
- f
- frequency of the source (Hz)
- λ behind
- wavelength behind the moving source (m)
What you are watching
A 13 m rope is stretched taut between two fixed ends, with gravity off, and both ends are padded with drag so waves reaching them are soaked up rather than reflected. The source, the amber ring, shakes the rope up and down at 2.6 Hz while it travels right at 0.3 of the wave speed, about 1.8 m/s. It is not tied to any piece of the rope: wherever it is, it sets the rope's height there, so it pushes the rope sideways without dragging it along, the way a siren moves through air without carrying the air with it.
Ahead of the source the crests crowd together; behind it they spread out. The rope's tension, and so its wave speed, stays the same everywhere, so the pattern stays clean for the whole run. When the source reaches the padding on the right it stops travelling and keeps shaking in place; press R to run it again.
Why it happens
A source at rest shaking at frequency f in a medium where waves travel at speed v spaces its crests λ = v/f apart. If the source moves forward at vs, then in each period it follows its last crest a distance vs/f before emitting the next. The gap ahead shrinks to (v − vs)/f and the gap behind grows to (v + vs)/f. The waves themselves still travel at v in both directions: only their spacing changes.
On this rope v is about 5.9 m/s, so with f = 2.6 Hz a source at rest would space its crests about 2.3 m apart. Moving at 0.3 v, the formula gives about 1.6 m ahead and 2.9 m behind, and that is what the rope shows: measured crest gaps run about 1.5 to 1.6 m in front and 2.8 to 3.1 m behind.
A listener at rest hears crests at the rate they arrive, f′ = v/λ: higher ahead of the source, lower behind it. That is why a siren drops in pitch as it passes, and the same kind of shift in light tells astronomers whether a star is moving toward or away from us.
Try this
- Press R, then Space after about two seconds to freeze the pattern. Turn on the grid (2 m squares) and compare the crest gaps on either side of the amber source: about 1.6 m ahead, about 2.9 m behind.
- Set Speed to 0.2x and press R. Follow one crest ahead of the source and one behind: both move away from it at the same wave speed, but the source is gaining on the one in front.
- Let the run continue for about five seconds, until the source reaches the right-hand padding and stops travelling. The waves it now sends back to the left are evenly spaced about 2.3 m apart, the spacing of a source at rest: no motion, no Doppler shift.
- Use Step one frame with the sim paused to watch the source advance a little each frame while the rope under it only moves up and down.
Questions
Why does a siren's pitch drop as it passes you?
While it approaches, each crest is emitted a little closer to you than the last, so crests arrive more often and the pitch is higher. Once it has passed, each crest starts farther away, they arrive less often, and the pitch is lower.