The acoustic wave equation in 2D is
$$\frac{\partial^2}{\partial t^2}p(x,z,t) = c(x,z)^2\left[\frac{\partial^2}{\partial x^2}p(x,z,t) + \frac{\partial^2}{\partial z^2}p(x,z,t)\right] + s(x,z,t) \enspace .$$
Can anyone please give an analytical solution to the above, not worrying about the boundary conditions (assuming infinite boundary)?
- $p$ is a scalar field ( pressure )
- $c$ is the velocity ( a scalar value ) , same everywhere in the domain.
- $s(x,z,t)$ or source function is at only one point in the domain ( at the center of the 2D / 3D domain).
An IPython snippet of this code for finite differences is
# it is the time step number.
# dt is the time step size.
# src is the source
f0 = 100.0 # dominant frequency of source (Hz)
T = 1.0 / f0 # dominant period
ist = 100 # shifting of source time function
src[it] = exp(-1.0 / T ** 2 * ((it - ist) * dt) ** 2) # This is a Gaussian source
# Take the first derivative to finally define the source function.
src = np.diff(src) / dt
The green's function is a bit complicated for me.
How can it be re-defined / adapted for our case of finite differences , given this : https://en.wikipedia.org/wiki/Acoustic_wave_equation#Cartesian_coordinates