Doppler Effect Simulator Back
Wave & Acoustics

Doppler Effect Simulator

Visualize sound wave compression and stretching as the source moves. Real-time Mach number and observed frequency calculation. Experience shock waves at supersonic speeds.

Parameters
Source speed vs 80 m/s
Speed of sound vc 343 m/s
Source frequency fs 440 Hz
Presets
Controls
Front f (Hz)
Rear f (Hz)
Mach No.
Shock wave! Mach ≥ 1. Wavefronts pile up forming a Mach cone (conical shock wave).

Observed Frequency Formula

$$f_\text{obs}= f_s \cdot \frac{v_c \pm v_o}{v_c \mp v_s}$$

Front (source approaching): $(v_c - v_s)$ in denominator
Rear (source receding): $(v_c + v_s)$ in denominator
Mach number: $Ma = v_s / v_c$

Compressed (high pitch) Rarefied (low pitch) Source Subsonic

The source bounces left and right. Blue wavefronts = compressed (higher pitch), red = rarefied (lower pitch)

What is the Doppler Effect?

🧑‍🎓
What exactly is the Doppler Effect? I've heard it's why a siren sounds different as it passes by.
🎓
Basically, it's the change in frequency (and therefore pitch) of a wave when the source and observer are moving relative to each other. As a source moves toward you, the sound waves get compressed, raising the pitch. As it moves away, they stretch out, lowering the pitch. Try moving the "Source Speed" slider in the simulator above to see the wavefronts bunch up in front of the moving source.
🧑‍🎓
Wait, really? So the formula in the simulator, $f_\text{obs}= f_s \cdot \frac{v_c \pm v_o}{v_c \mp v_s}$, looks complicated. What do all the plus/minus signs mean?
🎓
In practice, you choose the sign based on whether the motion causes the wave to be compressed or stretched. The top sign is for when the source and observer are moving *toward* each other. The bottom sign is for when they're moving *apart*. For instance, if a police car ($v_s$) is moving toward a stationary observer ($v_o=0$), the formula simplifies to $f_\text{obs}= f_s \cdot \frac{v_c}{v_c - v_s}$. Notice the denominator gets smaller, so the observed frequency $f_\text{obs}$ increases!
🧑‍🎓
What happens if you crank the source speed up really high in the simulator? The waves look like they're piling up into a straight line.
🎓
Great observation! That's a shock wave, or Mach cone. When the source speed ($v_s$) equals or exceeds the speed of sound ($v_c$), it outruns its own sound waves. The overlapping wavefronts create that sharp, V-shaped cone you see. The ratio $v_s / v_c$ is called the Mach number. Try setting the source speed to be *greater than* the speed of sound parameter in the simulator to see the shockwave form clearly.

Physical Model & Key Equations

The core equation governing the Doppler Effect for sound relates the frequency heard by an observer ($f_\text{obs}$) to the source's original frequency ($f_s$), the speed of sound in the medium ($v_c$), and the speeds of the source ($v_s$) and observer ($v_o$). The signs depend on the direction of motion.

$$f_\text{obs}= f_s \cdot \frac{v_c \pm v_o}{v_c \mp v_s}$$

$f_\text{obs}$: Observed frequency (Hz)
$f_s$: Source frequency (Hz)
$v_c$: Speed of sound in the medium (m/s)
$v_s$: Speed of the source (m/s) — positive if moving toward observer
$v_o$: Speed of the observer (m/s) — positive if moving toward source
Sign Rule: Use the top signs (+ in numerator, - in denominator) if source and observer are moving toward each other. Use the bottom signs if they are moving apart.

When the source moves at or faster than sound, the Mach number ($Ma$) becomes critical. It defines the regime where a shock wave forms. The angle of the resulting Mach cone ($\theta$) is determined by the inverse sine of the Mach number.

$$Ma = \frac{v_s}{v_c}, \quad \sin(\theta) = \frac{v_c}{v_s}= \frac{1}{Ma}$$

$Ma$: Mach number (dimensionless). $Ma < 1$ is subsonic, $Ma = 1$ is sonic, $Ma > 1$ is supersonic.
$\theta$: Half-angle of the Mach cone. As speed increases ($Ma$ increases), this angle gets smaller, making the cone narrower and sharper.

Real-World Applications

Speed Radar Guns: Police radar guns and baseball pitch speed trackers use the Doppler Effect with radio or laser waves. The device sends out a wave that reflects off the moving car or ball. The change in frequency of the reflected wave is used to calculate the object's speed with high precision.

Medical Ultrasound (Doppler Echocardiography): This is a critical diagnostic tool. Sound waves are directed into the body, and their reflection off moving blood cells is analyzed. The frequency shift reveals the speed and direction of blood flow, helping diagnose heart valve problems, blood clots, and blocked arteries.

Astronomy & "Redshift": The Doppler Effect applies to light waves too. By analyzing the spectrum of light from stars and galaxies, astronomers can see if the characteristic lines are shifted toward the red (lower frequency, moving away) or blue (higher frequency, moving toward us) end of the spectrum. This "redshift" is key evidence for the expansion of the universe.

Aviation & Sonic Booms: When an aircraft like a fighter jet breaks the sound barrier ($Ma \ge 1$), it generates a Mach cone. The pressure wave from this cone reaches the ground as a loud sonic boom—a sudden, sharp thunderclap. This is not a one-time event at the moment of crossing Mach 1, but a continuous effect along the supersonic flight path.

Common Misconceptions and Points to Note

Here are some points where beginners often get tripped up when mastering this simulator. First, don't assume that "the speed of sound is always constant". The simulator uses a fixed speed of sound $v_c$, but in the real world, it varies significantly with air temperature, pressure, and medium (e.g., water or metal). For instance, it's about 331 m/s in air at 0°C, but about 343 m/s at 20°C. When working with numbers in practice, your first step should be to confirm the speed of sound for your specific environment.

Next, understand that the point of abrupt change in observed frequency is not necessarily "the instant the source passes directly beside the observer". It may appear that way in the simulator because the observer is fixed, but in reality, it's the relative velocity vector between the source and the observer that matters. For example, if the observer is also moving or if the source is not approaching the observer head-on, the formulas become more complex. Think of this as a tool for learning the basic form.

Finally, a crucial pitfall: when the Mach number exceeds 1, the standard Doppler effect formula no longer applies directly. When a source becomes supersonic, sound waves pile up in front of it, forming a shock wave (a sonic boom). In this region, an observer hears a single "bang" from the shockwave (an N-wave) before the source passes by. The moment the simulator's Mach cone crosses the observer corresponds to this. Remember, the continuous change in pitch of a sound like "wee-oo wee-oo" does not occur in the supersonic regime.

Related Engineering Fields

The physics and calculations behind this tool form the foundation for various fields beyond CAE. First, in aerospace engineering, predicting shock waves from supersonic aircraft, as mentioned, directly connects to CFD (Computational Fluid Dynamics) simulations. The Mach cone angle $\mu$ is given by $\mu = \arcsin(1/Ma)$, and a smaller angle (i.e., a higher Mach number) drives optimization towards more slender airframe shapes. This concept is also essential for aerodynamic heating design during rocket re-entry.

Another field is non-destructive testing and measurement engineering. In techniques like strain measurement and detecting internal material flaws using ultrasound, there are methods that utilize the Doppler shift to measure minute internal displacements or fluid flow velocities, not just the arrival time of reflected waves. An example application is non-contact measurement of fluid velocity inside a high-temperature pipe by directing ultrasound from the outside.

Furthermore, it's important in acoustical engineering and NVH (Noise, Vibration, Harshness). The wind noise from a high-speed vehicle or the rotational sound beat from a spinning fan or turbine is analyzed as a type of Doppler effect caused by the relative motion of multiple sound sources. Understanding these fundamental wave phenomena is indispensable for noise reduction design.

For Further Learning

Once you've grasped the intuition with this simulator, the next step is to deepen your understanding by engaging with the equations. I recommend trying to derive the generalized formula for relative motion yourself. Derive the formula for a moving observer, $f_{obs} = f_s \frac{v_c \pm v_o}{v_c \mp v_s}$, from the relationship between wavelength and relative velocity. Struggling with "how to determine the signs" is where the real learning happens.

Mathematically, understanding the Mach cone as the envelope of wavefronts will broaden your perspective. Consider the family of spherical waves (circles) expanding from each point the source passed through; the problem is finding their common tangent (the envelope). This is also an elementary application of partial differential equations. That triangle you saw in the simulator's animation comes from a precise mathematical calculation.

For your next topics, "shock tubes" and "the Doppler effect for light and relativity theory" are fascinating. Shock tube theory deals with the shock wave itself—a discontinuity in pressure—rather than sound waves. Also, at speeds close to the speed of light, the classical Doppler formula requires correction, providing excellent motivation to study special relativity. First, use this simulator to internalize the core concept: "Why does changing speed alter the crowding of the waves?"