nning the simulation</h2>

<p>The simulation is run in a similar way to the previous ultrasound examples. The defined transducer is used to replace both the <code>source</code> and <code>sensor</code> inputs. The scan lines are then simulated sequentially. For each scan line, the values for <code>medium.sound_speed</code> and <code>medium.density</code> within the computational domain are updated based on the larger scattering phantom. The pressure at each active transducer element (in this case 32) is then