fnm_cw_apodized()
Description: Computes the pressure from pistons or arrays under continuous wave excitation in homogeneous media.
Usage
pressure = fnm_cw_apodized(transducer_array, coordinate_grid, medium, ndiv, f0, ap_method, 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.
- ndiv The number of integral points to use.
- f0 The frequency of the array.
- ap_method Apodization method, 0 = no apodization, 1 = derivative cosine, 2 = derivative raised cosine, 3 = derivative quadratic, 4 = derivative quartic.
- disp_flag Display flag, 1 = display, 0 = suppress.
Output Parameters
- pressure A 3-d array representing the complex pressure at each point
Notes
Piston apodization is currently only defined for circular transducers. For details, see the documentation for get_circ().
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.

