k-Wave Toolbox |

## The Doppler Effect Example

On this page…
Overview Creating a moving source

### Overview

This example demonstrates the doppler effect in which a stationary sensor point records a shift in frequency as a moving source travels past. It builds on the Monopole Point Source In A Homogeneous Propagation Medium Example.

- open the file in the MATLAB Editor
- run the file in MATLAB

Back to Top

### Creating a moving source

The moving source is created by using a line of source elements and then gradually moving the active element along this line. To create a smoother source transition from element to element, the source strength is interpolated between pairs of elements using linear interpolation. The input pressure signal to each source element along with the total input pressure is plotted below.

A snapshot of the moving source is given below. In this example the source is moving to the right. Notice that the wavefronts are slightly closer together on the right hand side than on the left.

As the source approaches the receiver, the amplitude gradually increases and the perceived frequency is shifted upwards according to the relatively velocity between them. The recorded signal reaches a maximum when the source is adjacent to the receiver. The amplitude is then gradually decreased as the source moves away with the perceived frequency similarly shifted downwards. The shift in frequency can clearly be seen by plotting the parts of the time series corresponding to the approach of the source to the receiver and its retreat away again.

Back to Top

© 2009, 2010, 2011 Bradley Treeby and Ben Cox.