This site uses cookies. By continuing to use this site you agree to our use of cookies. To find out more, see our Privacy and Cookies policy.
Regular Paper The following article is Free article

Three-dimensional finite difference-time domain simulation of moving sound source and receiver

, and

Published 26 May 2022 © 2022 The Japan Society of Applied Physics
, , Citation Takao Tsuchiya et al 2022 Jpn. J. Appl. Phys. 61 SG1036 DOI 10.35848/1347-4065/ac506d

1347-4065/61/SG/SG1036

Abstract

In this paper, moving sound source and receiver with an arbitrary trajectory are implemented in the three-dimensional compact explicit finite-difference time-domain method. To implement a moving sound source, a driving method in which the grid points around the source position are driven by the source distribution function is proposed. It is confirmed that the Gaussian distribution driving is suitable for the analysis of the moving sound sources. For a moving receiver, the sound pressure at the receiver is interpolated from the sound pressures of the adjacent eight grid points. The formulations and the numerical experiments are made for the three-dimensional sound field, and the accuracy of the proposed method is discussed. It is confirmed that the proposed method can be applied accurately to the moving sound source and receiver including the Doppler effect.

Export citation and abstract BibTeX RIS

1. Introduction

Among many numerical analysis methods of the sound field, the finite-difference time-domain (FDTD) method 110) is one of the most commonly used tools. In most sound field analysis including the FDTD method, sound sources and receivers are usually fixed, then the responses between them are mainly calculated. However, in order to analyze the noise of automobiles 11) and trains, 12) it is necessary to represent the moving sound sources in the FDTD method. In addition, the moving receiver must be also implemented for the analysis of the drone audition 13,14) or the bat sonar mechanism. 15) In the electromagnetic field analysis by the FDTD method, several studies have been conducted on the moving source by applying the Lorentz transformation. 16,17) For the numerical analysis of moving sound sources, a method using the linearized Euler equations have been studied. 18) There are some methods by which a fluid flow is analyzed instead of the sound source moving. 19,20) In virtual reality, there are some studies on the moving sound sources for the auralization, 2125) but it is difficult to analyze a physically valid field since these methods cannot calculate the sound wave propagation. There are few studies on the moving receiver other than those related to the walk-through auralization. 26) We have already implemented a moving sound source 27) and a moving receiver 28) in the two-dimensional FDTD method directly.

In this paper, the scheme is extended to the three-dimensional compact-explicit finite-difference time-domain (CE-FDTD). 2935) The CE-FDTD method is a higher accuracy version of the standard FDTD method and is suitable for large scale sound field analysis. There are two methods to implement the moving sound source and receiver in the FDTD method: the direct method and the convolution method. 28) The direct method is only proposed in this paper to implement the moving sound source and receiver in the three-dimensional FDTD method that provides physically valid analysis including the Doppler effect. A driving method in which the grid points around the source position are driven by the source distribution function 27,28) is proposed. While the linear distribution driving was only applied in the USE proceedings, 36) the Gaussian distribution driving is mainly applied in this paper. For the moving receiver, the linear interpolation method is implemented. It is assumed in this paper that the source and receiver have no boundaries. Some numerical experiments on the moving source and receiver with arbitrary trajectories are made for a three-dimensional sound field including the case where the sound source and receiver move at the same time. The accuracy of the proposed method is discussed.

2. Theory

The three-dimensional wave equation in the homogeneous and loss less media is given as

Equation (1)

where p is the sound pressure and c0 is the sound speed. In the CE-FDTD method, the wave equation is directly discretized by the central finite-difference on a collocated grid where the grid intervals in the x, y and z directions is all Δ. Considering not only the axis directions but also the face diagonal and the space diagonal directions, Eq. (1) is discretized as 31,32)

Equation (2)

where ${p}_{i,j,k}^{n}$ represents the sound pressure on the grid point (x, y, z) = (iΔ, jΔ, kΔ) at time t = nΔt, and Δt is the time step, χ = c0Δt/Δ is the Courant number. 37) The coefficients d1d4 are given by

Equation (3)

where a and b are the parameters to control numerical accuracy. In this paper, a = 1/4 and b = 1/16 are used as the interpolated wide-band (IWB) scheme. The sound field analysis tool based on the CE-FDTD method has already been well verified in previous researches. 3235)

2.1. Implementation of moving sound source and receiver

First, a moving sound source is considered. In order to implement a moving sound source in the FDTD method, it is necessary to switch and drive the grid points on the moving path of the source. When the point source is just on the grid point, it is sufficient to drive the grid point. However, when the sound source is located between the grid points, it is necessary to distribute and drive the sound source to the adjacent grid points. In the previous two-dimensional case, 27,28) some artifacts were confirmed in the calculation results only for the moving source when the adjacent grid points were driven. In order to reduce the artifacts, another driving method is proposed in this paper in which the grid points around the source position are driven with the source distribution function. Two types of the source distribution driving are considered: the linear distribution driving and the Gaussian distribution driving 38) which is one of the smooth distributions.

For the linear distribution driving, the grid points (i, j, k) near the source position are driven by the following function.

Equation (4)

where ds is the distance between the center of the source position $({x}_{s}^{n},{y}_{s}^{n},{z}_{s}^{n})$ at the time t = nΔt and the grid point (i, j, k), U is the unit step function, and α is the parameter to control the sound source size. For the Gaussian distribution driving, the grid points are driven by the following function.

Equation (5)

In both cases, the grid points within 2Δ of the distance from the sound source are simultaneously driven with the amplitude of fn (i, j, k)sn where sn is the sound source signal at t = nΔt.

Next, a moving sound receiver is implemented. In the case of a moving sound receiver, a simple interpolation is implemented since it has been found that no artifacts are confirmed by the numerical experiments in two dimensions. 28) It is assumed that the receiver is located at $({x}_{r}^{n},{y}_{r}^{n},{z}_{r}^{n})=({x}_{i}^{n}+{d}_{x}^{n},{y}_{j}^{n}+{d}_{y}^{n},{z}_{k}^{n}+{d}_{z}^{n})$ between eight grid points P1–P8 at the time t = nΔt as shown in Fig. 1 (a), where $0\leqslant {d}_{x,y,z}^{n}\leqslant {\rm{\Delta }}$. In the moving receiver, the local coordinate system (ξ, η, ζ) is introduced as shown in Fig. 1 (b). On the local coordinate, the sound source position is converted to $({\xi }_{i}^{n},{\eta }_{j}^{n},{\zeta }_{k}^{n})$ where −1 ≤ ξ, η, ζ ≤ 1. The sound pressure at the receiver is interpolated from the sound pressures of the adjacent eight grid points as

Equation (6)

where pi n and wi n are the sound pressure and the interpolation function at the grid point Pi , respectively 27,28)

Equation (7)

where ${\xi }_{i}^{n}=2{d}_{x}^{n}/{\rm{\Delta }}-1,{\eta }_{j}^{n}=2{d}_{y}^{n}/{\rm{\Delta }}-1,{\zeta }_{k}^{n}=2{d}_{z}^{n}/{\rm{\Delta }}-1$ are the local coordinates normalized by the grid interval Δ. This receiving method corresponds to an array receiver with eight receivers distributed in a single cell.

Fig. 1.

Fig. 1. FDTD grid points and corresponding local coordinates.

Standard image High-resolution image

2.2. Doppler shift

As shown in Fig. 2, it is assumed that a sound source moves with a velocity v S and a receiver moves with a velocity v R. The Doppler shift is determined by the radial velocity, which is the velocity along the line between the source and receiver. The position and the radial velocity of the sound source are evaluated at the time tS when the sound wave is radiated, and that of the receiver is evaluated at the time tR when the sound wave is received. The magnitude of the radial velocity vSR for the sound source and the radial velocity vRS for the receiver are, respectively, given as

Equation (8)

Equation (9)

where r S and r R denote the position vectors of the receiver and the source, respectively. So the normalized Doppler shift D at the receiver R is given as

Equation (10)

where fR is the receiving frequency, and fS is the radiated source frequency.

Fig. 2.

Fig. 2. Positional relationship between a moving sound source S and a receiver R.

Standard image High-resolution image

3. Numerical experiments

First, we consider the case where the trajectory of the sound source and receiver is linear. Figure 3 shows the 3D numerical model for the sound source or receiver moving on a linear trajectory. A cubic region of 21 × 21 × 21 m3 is assumed and divided into FDTD cells of 1400 × 1400 × 1400, so the grid size is Δ = 15 mm. The time step is Δt = 43.68 μs, and the sound speed is c0 = 340 m s−1, so the Courant number χ is 0.99. In the case of the moving source, the source P moves linearly from the center of the region in the direction of horizontal angle ϕ and elevation angle θ at a constant speed v. The fixed receivers Q1 and Q2 are placed at a distance of 10 m from the sound source. In the case of the moving receivers, point P is a moving receiver and the point Q1 or Q2 is a fixed source that radiates sound waves only from one or the other. The direction from point P to point Q1 is assumed to be positive. The boundary condition is Mur's first-order absorbing boundary. 39) The calculations were performed in single precision on a graphics processing unit (NVIDIA Quadro RTX 8000) machine.

Fig. 3.

Fig. 3. Numerical model for a sound source or receiver moving on a linear trajectory. 36)

Standard image High-resolution image

Figure 4 shows the sound pressure waveforms calculated at the receiver for the moving source. The source moves with a constant speed of v = 64 m s−1 (Mach number M = 0.2), v = 128 m s−1 (M = 0.4) in the direction of θ = 0, ϕ = 0. A differential Gaussian pulse with a pulse width of 6 ms is radiated from the source at the time t = 0 s. The velocity at which point P moves toward point Q1 is assumed to be positive. Figure (a) shows the results for the linear distribution driving with α = 0.29 and (b) shows the Gaussian distribution driving with α = 46.67. It is shown that the waveform is compressed in the moving direction of the source and is expanded in the opposite direction due to the Doppler effect. However, strong artifacts can be confirmed in the waveform calculated by the linear distribution driving, while there are no artifacts for the Gaussian distribution driving. The artifact was also observed in the two-dimensional case 28) and is due to the driving method of the sound source from the present numerical experiments. It is found that the source distribution should be smooth such as a Gaussian shape. In all subsequent numerical experiments, the calculations are performed using the Gaussian distribution driving.

Fig. 4.

Fig. 4. (Color online) Sound pressure waveforms calculated at the receiver for the moving source.

Standard image High-resolution image

Figure 5 shows the sound pressure waveforms calculated at the receiver for the moving receiver. The Doppler effect can be confirmed as with the moving sound source, and no artifacts can be confirmed for the moving receiver. It is confirmed that the proposed method can simulate the moving sound source or receiver with the Doppler effect.

Fig. 5.

Fig. 5. (Color online) Sound pressure waveforms calculated at the receiver for the moving receiver.

Standard image High-resolution image

Figure 6 shows the normalized Doppler shift against the Mach number M for θ = 0, ϕ = 0. A continuous sine wave with a frequency of 500 Hz is radiated from the source. Figure (a) shows the results for the moving source and (b) shows the moving receiver. The Doppler shift is calculated by analyzing the sound pressure waveform calculated at the receiver using the fast Fourier transformation. The calculated Doppler shift by the FDTD method agrees well with the theoretical value.

Fig. 6.

Fig. 6. (Color online) Relationship between the speed of moving source or receiver and the normalized Doppler shift.

Standard image High-resolution image

The accuracy is evaluated by the root mean square (RMS) error between the calculated and the theoretical values of the normalized Doppler shift, which is expressed by the following equation:

Equation (11)

where N is the number of the evaluation samples, di is the normalized Doppler shift calculated by the FDTD method, and Di is the theoretical one calculated by Eq. (10). Figure 7 shows the root mean square error of the normalized Doppler shift against the traveling direction ϕ with a frequency of 500 Hz (45.3 points per wavelength), 1000 Hz (22.7 p. p. w.), and 2000 Hz (11.3 p. p. w.) for the range of source speed M = −0.5 to 0.5. In both cases, the RMS error shows a symmetrical characteristic around 45 degrees, which is a reasonable result on an equally spaced collocated grid in the FDTD calculation. Figure 8 shows the root mean square error against the source frequency for ϕ = 0. In both cases, the RMS error becomes large as the frequency increases except for the low frequency where the frequency estimation performance decreases. The error is within 1.5 × 10−3 in all directions and frequencies. Since the threshold of the human frequency discrimination is about 0.2%, 40) the RMS error is comparable to this criterion. It is confirmed that the moving sound source and receiver can be calculated accurately by the present method.

Fig. 7.

Fig. 7. Root mean square error of the normalized Doppler shift against the traveling direction ϕ for various source frequencies.

Standard image High-resolution image
Fig. 8.

Fig. 8. Root mean square error of the normalized Doppler shift against the source frequency.

Standard image High-resolution image

A moving sound source or receiver passing linearly in front of the receiver or source is next demonstrated. Figure 9 shows the numerical model for the linearly passing source or receiver. The sound source or receiver P passes linearly 2 m in front of the receiver or source with an initial speed of M = 0.1 and an acceleration of a = 0, 60 m s−2. The source radiates a continuous sine wave with a frequency of 500 Hz. Figure 10 shows the normalized Doppler shift calculated by the short-time Fourier transform of the sound pressure waveform calculated at the receiver. In the figure, the center frequency of the power spectrum is estimated by the reassignment method 41) in MATLAB toolbox. The reassignment method is a technique to sharpen the time-frequency representation by mapping the data to time-frequency coordinates closer to the true support region of the analyzed signal. In both cases, the Doppler shift from high to low frequencies is well reproduced as the source or receiver passes. The calculated result and the theoretical result show good agreement even in the case of acceleration.

Fig. 9.

Fig. 9. Numerical model for a linearly passing sound source or receiver.

Standard image High-resolution image
Fig. 10.

Fig. 10. (Color online) Normalized Doppler shift for the passing sound source or receiver.

Standard image High-resolution image

Figure 11 shows the root mean square error of the normalized Doppler shift against the traveling direction θ for various source frequencies. For the evaluation points estimated by the reassignment method, the RMS error is calculated using Eq. (11). The RMS error is asymmetrical about the angle since the number of the evaluation points N = 250–285 is different for each calculation in the reassignment method. Both the moving sound source and receiver have the almost same RMS error. In all cases, the RMS error for the constant velocity moving is smaller than that for the accelerated moving. The RMS error is within 0.7 × 10−3 for the constant speed, and 1.4 × 10−3 for the acceleration in all directions and frequencies. It is found that the moving source and receiver can be simulated even when the Doppler frequency changes continuously.

Fig. 11.

Fig. 11. (Color online) Root mean square error of the normalized Doppler shift against the traveling direction θ for the passing sound source or receiver.

Standard image High-resolution image

Finally, we examined the case when the sound source and receiver move at the same time. Figure 12 shows the case when the sound source S and receiver R move on the linear trajectory facing each other. Figure (a) shows the numerical model and (b) shows the normalized Doppler shift. The initial velocity of both the sound source and receiver is M = 0.1 and the acceleration is a = 0, 60 m s−2. They move linearly over a distance of 20 m with an interval of 2 m. A continuous sine wave with a frequency of 500 Hz is radiated from the source. The calculated results and the theory are in good agreement. Table I shows the RMS error. The RMS error becomes large in the case of the diagonal moving or the accelerated moving.

Fig. 12.

Fig. 12. (Color online) Moving sound source and receiver facing each other.

Standard image High-resolution image

Table I. Root mean square error of the moving sound source and receiver facing each other.

Moving direction (deg.)RMS error (×10−3)
 Constant speed (M = 0.1)Accelerated (a = 60 m s−2)
θ = 0, ϕ = 01.512.81
θ = 45, ϕ = 451.643.25

The case when a source–receiver pair moves on a circular trajectory is lastly examined. It is assumed that the sound source S and the receiver R are separated by 2 m, and their center of gravity moves in a circular trajectory with a radius of 8 m as shown in Fig. 13 (a). So, the source and receiver move with the same angular velocity keeping the distance at 2 m. The velocity of the center of gravity is M = 0.1 or the angular velocity is 2.267 rad s−1. To extract only the reflected wave, the sound pressure waveform without the reflecting wall is also calculated, then the direct wave is removed by subtracting it from the waveform with the reflecting wall. Figure (b) shows the normalized Doppler shift. The Doppler shift changes sinusoidally. When the orbit is tilted (θ = 45°), the reflection angle on the wall becomes smaller, so the Doppler shift becomes smaller. It is confirmed that the proposed method can be applied even when the sound source and receiver move in an arbitrary trajectory at the same time.

Fig. 13.

Fig. 13. (Color online) Moving sound source and receiver on a circular trajectory when there is a reflecting wall.

Standard image High-resolution image

4. Conclusions

Moving sound source and receiver with arbitrary trajectories were implemented in the three-dimensional CE-FDTD method. Two types of source distribution driving were proposed for the moving sound source: the linear distribution driving and the Gaussian distribution driving that achieves smooth distribution. It is found that the artifacts can be confirmed in the waveform calculated by the linear distribution driving, while there is no artifact for the Gaussian distribution driving. It is confirmed that the Gaussian distribution driving is suitable for the analysis of the moving sound sources. For a moving receiver, the sound pressure at the receiver was interpolated from the sound pressures of the adjacent eight grid points. As the results of the three-dimensional numerical experiments, it is confirmed that the proposed method can be applied to the moving sound source and receiver including the Doppler effect.

Please wait… references are loading.
10.35848/1347-4065/ac506d