This example uses the function find_single_focus_phase to focus the array. The example begins by defining the transducer being used in the simulation. A data structure is then created which specifies the attenuation value. The computation grid is then defined. Once this is complete, the example goes on to calculate the phase being used for the focus. Finally, the pressure field is generated and plotted which is what is seen in the figure below.