Download k-Wave User Manual

Transcript
2.8. SMOOTHING AND THE BAND-LIMITED INTERPOLANT
23
p̂(x), is called the band-limited interpolant as it interpolates between the discrete set of
grid points xj using a finite set of Fourier components [48]. It is constructed using the
FFT coefficients at the discrete spatial frequencies km , where
Nx /2−1
P (km ) =
X
2πi
p(xj )e Nx mj .
(2.42)
j=−Nx /2
There are two aspects which are key to understanding how this might lead to oscillations
appearing in the solution, unless sufficient care is taken. The first is recognising that while
p̂(x) may match p(xj ) at the points x = xj , there is no guarantee about how p̂(x) behaves
in between these points. If there are large jumps in p(xj ) between adjacent points, i.e., if
p(xj ) − p(xj−1 ) is large, then p̂(x) might have to oscillate in between points xj−1 and xj in
order to reach p(xj ). The second is realising that it is the band-limited interpolant p̂ and
not p(xj ) that is propagated during the simulation. Consequently, when p̂ is resampled
at the discrete grid points xj at a later timestep, oscillations can appear in the solution.
An example of this is shown in Fig. 2.5, where the discrete pressure is shown with a stem
plot, and the underlying band limited interpolant is shown as a solid line [12].
If desired, it is possible to reduce the visible oscillations in the solution by making p(xj )
smoother, i.e., by reducing the size of the jumps between consecutive grid points. This is
equivalent to reducing the amplitudes of the higher spatial frequency components P (km ).
This is done automatically within the simulation functions when an initial pressure distribution is defined using the k-Wave function smooth. This function applies a Blackman
window in the spatial frequency domain to reduce the amplitude of the higher spatial frequencies. (The analogy in the purely continuous case is the link between the smoothness
of a function and the rate of decay of its Fourier transform. A very sharp function, for
example a delta function, has a flat frequency spectrum, whereas the Fourier transform of
an analytic function decays very quickly. In between these extremes, the more continuous
derivatives that a function has, the more quickly its Fourier transform decays.)
Selecting the most appropriate window or function to force the Fourier coefficients to decay
requires a trade off between the level of smoothing and the level of observable oscillations.
From a signal processing perspective, the amount of smoothing is related to the main
lobe width of the window, while the level of oscillations is related to the side lobe levels.
Figure 2.6 illustrates the effect of smoothing a delta function initial pressure distribution
using Hanning and Blackman windows. In both cases, the magnitude of the pressure
distribution has been corrected by the coherent gain of the window. Note, the default
smoothing behaviour used by the simulation functions can be modified using the optional
input parameter ‘smooth’ (see discussion in Sec. 3.6).