Hi Hussain,
Just to be clear, in k-Wave, the shape and size of the detector has no effect on the acoustic waves, it just defines the grid points in the medium where the time history of the pressure field should be stored. To model a large detector, the sensor is defined as a number of contiguous grid points (in this case using a section of a sphere). As Ben has mentioned, to model a single element focused detector, you need to sum up the time signals stored at each of these grid points so you are left with a single time series. The sensor_data
output from the simulation functions is indexed as sensor_data(position, time)
so you can sum the signals using something like
signal = sum(sensor_data, 1);
After you have summed the signals, you should see that when the object is in focus, the individual signals will coherently sum to yield a large signal amplitude. When the object is not in focus, the signals will largely cancel each other out, and the overall magnitude will be much smaller. In k-Wave, you will likely always see some signal unless the medium is very large, the absorption values very high, or you add noise to your signals. In practice, the sensitivity of your detector will limit when you are able to still see a signal.
To answer your other questions:
1. You can find the number of grid points in the sensor using sum(sensor.mask(:))
2. I am not sure what you mean by the inner surface of the detector? As the time series are recorded at particular grid points, there is no 'inner' or 'outer' surface.
3. You could either rotate the sensor using permute
or alternatively create the detector by masking out part of the sphere in the other directions.
Good luck with your simulations,
Brad.