cw_pressure()

Description: This function is used to calculate continuous-wave pressures with the Fast Nearfield Method in FOCUS.

Usage

pressure = cw_pressure(transducer, cg, medium, ndiv, f0);
pressure = cw_pressure(transducer, cg, medium, ndiv, f0, method); 

Arguments

Output Parameters

Notes

Advanced users may wish to use fnm_cw for access to more features and options.

The value of the ndiv parameter should be chosen based on the spatial location of the simulation relative to the transducer and the desired calculation accuracy. The only way to determine the optimal value for this parameter is to perform the calculation with a very large ndiv (e.g. 200) and then compare calculations performed with progressively larger ndiv values to the reference pressure until the desired accuracy is achieved. See the FNMcirc example (in /Examples/Papers) for an example of this type of calculation.

A good approximation for the ndiv value for single transducers can be calculated by the formula n = 2 × dλ, where d is the transducer width and λ is the wavelength.

SSE calculations are about four times as fast as standard calculations, but because they use single precision values rather than double precision, the maximum accuracy is on the order of 10 - 4.