Hello,
I tried using k-wave to simulate a focused ultrasound array with beamforming. However, as the k-wave only support 1D (linear) array, I applied multiple sources. The code works but the problem is the calculation of time delays. Because the standard formula of k-wave is only related to 1D array (y direction) and it information of this direction:
delay_times_elevation = (transducer.elevation_focus_distance - sqrt( (element_index_elevation*grid_spacing(3)).^2 + transducer.elevation_focus_distance^2 ))./transducer.sound_speed;
Is there any code for calculating these delays in 2D with the information of both y and z together?
Thanks