fnm_tsd()

Description: Calculates the transient pressure field from an arbitrary transducer array using the Fast Nearfield Method and Time-Space Decomposition or Frequency Domain Time-Space Decomposition, depending on the input signal.

Usage

pressure = fnm_tsd(transducer_array, coordinate_grid, medium, time_struct, ndiv,excitation_function);
pressure = fnm_tsd(transducer_array, coordinate_grid, medium, time_struct, ndiv,excitation_function,\
disp_flag);
pressure = fnm_tsd(transducer_array, coordinate_grid, medium, time_struct, ndiv,excitation_function,\
disp_flag, num_threads);
pressure = fnm_tsd(transducer_array, coordinate_grid, medium, time_struct, ndiv,excitation_function,\
disp_flag, num_threads, precision_flag);

Arguments

Output Parameters

Notes

This function only calculates pressures in lossless media, so any attenuation parameter set by the user will be ignored.

Threading in FOCUS is implemented at the transducer level, meaning that single transducers will not benefit from this feature.

Specifying a number of threads larger than the number of CPU cores available will not result in a significant additional speed increase and may in fact result in slower speeds due to additional inter-thread communication overhead.

Single precision calculations use about half as much memory as double precision calculations, so setting the precision flag to 1 can help with simulations that run out of memory.

FDTSD calculations are not as fast as TSD calculations. It is therefore recommended that users use one of the analytical TSD expressions if possible for the greatest speed.