rayleigh_transient_parfor()
Description: Calculates pressure field generated by a transducer array in homogeneous media using the Rayleigh-Sommerfeld Integral.
Usage
pressure = rayleigh_transient_parfor(transducer_array, coordinate_grid, medium,time_struct, ndiv,\
input_function, disp_flag);
Arguments
- transducer_array A transducer_array.
- coordinate_grid A coordinate grid struct like the ones created by set_coordinate_grid.
- medium A medium struct like the ones created by set_medium.
- time_struct A time struct generated by set_time_samples.
- ndiv The number of integral points to use.
- input_function The excitation function. Create using set_excitation_function.
- disp_flag Display flag, 1 = display, 0 = suppress.
Output Parameters
- pressure A 3-d array representing the pressure at each point in space.
Notes
This function only calculates pressures in lossless media, so any attenuation parameter set by the user will be ignored.
This function uses the MATLAB Parallel Computing Toolkit to
perform the pressure calculation using multiple threads. The speed increase realized by this function is entirely dependent on the number of processor cores present in the computer executing the code. If the Parallel Computing Toolkit is not installed, the function will fail to run.

