The Wave Equation in Time Domain

The wave equation in time domain can be stated as follows, \begin{equation} \frac{\partial^2 u}{\partial t^2}=c^2 \nabla^2 u+f,\qquad x\in \Omega \subset \mathbb{R}^d,~t\in(T_1,T_2] \end{equation} where $\Delta$ is the Laplacian, $f$ is a forcing function (for example our source) and $c$ is the wave velocity at which the time and spatially varying wave $u$ propagates.

A Fourth-Order Finite-Difference Method for
the Two Dimensional Wave Equation in Time Domain

A two-dimensional form of the wave equation presented can be found as follows,

\begin{align} \begin{cases} \frac{\partial^2 u}{\partial t^2} = c^2(x,y) \Delta u+f(x,y,t),&(x,y)\in I,~t\in(T_1,T_2],\\ u(x,y,T_1)=g(x,y),&(x,y)\in J,\\ \frac{\partial }{\partial t}u(x,y,T_1) = s(x,y),&(x,y)\in J,\\ u(a,y,t) = f_{a}(y,t),&y\in [c,d],~t \in[T_1,T_2],\\ u(b,y,t) = f_{b}(y,t),&y\in [c,d],~t \in[T_1,T_2],\\ u(x,c,t) = f_{c}(x,t),&x\in [a,b],~t \in[T_1,T_2],\\ u(x,d,t) = f_{d}(x,t),&x\in [a,b],~t \in[T_1,T_2], \end{cases} \qquad \qquad (1) \end{align}

where $I=(a,b)\times(c,d)$ and $J=[a,b]\times[c,d]$.

Consider the following notations:

A fourth-Order Scheme

A fourth-order finite difference scheme for solving the problem (1) can be considered as follows, \begin{align} \left(1+\frac{1}{12}\delta_t^2\right)^{-1}\frac{\delta_t^2}{\tau^2} u_{i,j}^{n}&= c^2\left(1+\frac{1}{12}\delta_x^2\right)^{-1}\frac{\delta_x^2}{h_x^2} u_{i,j}^{n}+ c^2\left(1+\frac{1}{12}\delta_y^2\right)^{-1}\frac{\delta_y^2}{h_y^2} u_{i,j}^{n}+f_{i,j}^{n}. \end{align}

This also can be expressed as follows, \begin{align} \left(1+\frac{1}{12}\delta_x^2\right)\left(1+\frac{1}{12}\delta_y^2\right)\delta_t^2 u_{i,j}^{n}&= \left[c^2 \lambda_x^2 \left(1+\frac{1}{12}\delta_y^2\right)\delta_x^2 +c^2 \lambda_y^2\left(1+\frac{1}{12}\delta_x^2\right)\delta_y^2 \right] \left(1+\frac{1}{12}\delta_t^2\right) u_{i,j}^{n} \notag \\ & +\tau^2\left(1+\frac{1}{12}\delta_x^2\right)\left(1+\frac{1}{12}\delta_y^2\right)\left(1+\frac{1}{12}\delta_t^2\right)f_{i,j}^{n}. \end{align}

\begin{align} &\left[\left(1+\frac{1}{12}\delta_x^2\right)\left(1+\frac{1}{12}\delta_y^2\right) -\frac{c^2 \lambda_x^2}{12} \left(1+\frac{1}{12}\delta_y^2\right)\delta_x^2 -\frac{c^2 \lambda_y^2}{12}\left(1+\frac{1}{12}\delta_x^2\right)\delta_y^2\right]\delta_t^2u_{i,j}^{n}= \notag \\ & \left[c^2 \lambda_x^2 \left(1+\frac{1}{12}\delta_y^2\right)\delta_x^2 +c^2 \lambda_y^2\left(1+\frac{1}{12}\delta_x^2\right)\delta_y^2\right]u_{i,j}^{n} +\tau^2\left(1+\frac{1}{12}\delta_x^2\right)\left(1+\frac{1}{12}\delta_y^2\right)\left(1+\frac{1}{12}\delta_t^2\right)f_{i,j}^{n}. \end{align}

Consider the following notations, \begin{align} \rho_x=\frac{1-c^2 \lambda_x^2}{12}\text{ and }\rho_y=\frac{1-c^2 \lambda_y^2}{12}. \end{align} \begin{align} \left|\left(1+\frac{1}{12}\delta_x^2\right)\left(1+\frac{1}{12}\delta_y^2\right)u_{i,j}^{n} -\frac{c^2 \lambda_x^2}{12} \left(1+\frac{1}{12}\delta_y^2\right)\delta_x^2-\frac{c^2 \lambda_y^2}{12}\left(1+\frac{1}{12}\delta_x^2\right)\delta_y^2u_{i,j}^{n} -\left(1+\rho_x\delta_x^2\right)\left(1+\rho_y\delta_y^2\right)\right|= \frac{1}{144}c^2 \lambda_x^2 c^2 \lambda_y^2 \delta_x^2 \delta_y^2u_{i,j}^{n}, \end{align} which can be neglected due to the fact that it generates a fourth order term in space.

One way to write down an ADI algorithm is to expand the equation (5) on time, \begin{align} \left(1+\rho_x\delta_x^2\right)\left(1+\rho_y\delta_y^2\right) \delta_t^2 u_{i,j}^{n} &= c^2\left[ \lambda_x^2 \left(1+\frac{1}{12}\delta_y^2\right)\delta_x^2 +\lambda_y^2\left(1+\frac{1}{12}\delta_x^2\right)\delta_y^2\right]u_{i,j}^{n} \notag \\ & +\tau^2\left(1+\frac{1}{12}\delta_x^2\right)\left(1+\frac{1}{12}\delta_y^2\right)\left(1+\frac{1}{12}\delta_t^2\right)f_{i,j}^{n}. \qquad \qquad (6) \end{align} It follows from (6) that, \begin{align} \left(1+\rho_x\delta_x^2\right)\left(1+\rho_y\delta_y^2\right) \delta_t^2 u_{i,j}^{n}=\mathbf{F}_{i,j}^{n} \end{align} where, \begin{align} \mathbf{F}_{i,j}^{n} &= c^2\left[ \lambda_x^2 \left(1+\frac{1}{12}\delta_y^2\right)\delta_x^2 +\lambda_y^2\left(1+\frac{1}{12}\delta_x^2\right)\delta_y^2\right]u_{i,j}^{n} +\tau^2\left(1+\frac{1}{12}\delta_x^2\right)\left(1+\frac{1}{12}\delta_y^2\right)\left(1+\frac{1}{12}\delta_t^2\right)f_{i,j}^{n}. \end{align}

The two-dimensional problem can be efficiently solved in two steps using ADI with the following steps,

The equation (7) also can be written as follows, \begin{align} \rho_x(\mathbf{X}_{i+1,j}+\mathbf{X}_{i-1,j})+(1-2\rho_x)\mathbf{X}_{i,j}=\mathbf{F}_{i,j}^{n}, \end{align}

The following matrices are needed to generate an algorithm, $$ A_{j}=\begin{bmatrix} (1-2\rho_x) & \rho_x & 0 & \dots & \dots &0 \\ \rho_x & (1-2\rho_x) & \rho_x & 0 & \vdots &\vdots \\ 0 & \rho_x & (1-2\rho_x) & \rho_x &0 &\vdots \\ 0 &0 & \ddots & \ddots &\ddots &\vdots \\ \vdots &\vdots & \rho_x & (1-2\rho_x) & \rho_x & 0 \\ \vdots &\vdots & 0 & \rho_x & (1-2\rho_x) & \rho_x \\ 0 &0 & \dots & 0 & \rho_x & (1-2\rho_x) \end{bmatrix}, $$ $$ \mathbf{X}_{j}=\begin{bmatrix} \mathbf{X}_{1,j} \\ \mathbf{X}_{2,j}\\ \vdots\\ \mathbf{X}_{N_x-2,j}\\ \mathbf{X}_{N_x-1,j} \end{bmatrix},~ \mathbf{b}_j^n= \begin{bmatrix} -\rho_x \mathbf{X}_{0,j}\\ 0\\ \vdots\\ 0\\ -\rho_x \mathbf{X}_{N_x,j}, \end{bmatrix} \text{ and } \mathbf{F}_{j}^{n}= \begin{bmatrix} \mathbf{F}_{1,j}^{n}\\ \mathbf{F}_{2,j}^{n}\\ \vdots\\ \mathbf{F}_{N_x-2,j}^{n}\\ \mathbf{F}_{N_x-1,j}^{n} \end{bmatrix}, $$ where $\mathbf{X}_{0,j} =\left(1+\rho_y\delta_y^2\right)\delta_t^2 f_{a,j}^{n}$ and $\mathbf{X}_{N_x,j} =\left(1+\rho_y\delta_y^2\right)\delta_t^2 f_{b,j}^{n}$.

Therefore, the following matrix form can be written, \begin{equation*} \mathbf{X}_{j}=A_j^{-1}\left(\mathbf{F}_{j}^{n}+\mathbf{b}_j^n\right). \end{equation*}

The next step is to solve (8) for $u_{i,j}^{n}$ for each $i=1,2,\ldots,N_x-1$ and $j=1,2,\ldots,N_y-1$. This also can be written in the following form, \begin{align} \rho_y\delta_t^2(u_{i,j+1}^{n+1}+u_{i,j-1}^{n+1})+(1-2\rho_y)\delta_t^2u_{i,j}^{n+1}&=\mathbf{X}_{i,j}, \end{align}

Hence, the following matrix form can be written \begin{equation*} \mathbf{u}_{i}^{n+1}=A_{i}^{-1}\left(\mathbf{W}_{i}+\mathbf{b}_{i}^n\right), \end{equation*} where \begin{equation*} A_{i}=\begin{bmatrix} (1-2\rho_y) & \rho_y & 0 & \dots & \dots &0 \\ \rho_y & (1-2\rho_y) & \rho_y & 0 & \vdots &\vdots \\ 0 & \rho_y & (1-2\rho_y) & \rho_y &0 &\vdots \\ 0 &0 & \ddots & \ddots &\ddots &\vdots \\ \vdots &\vdots & \rho_y & (1-2\rho_y) & \rho_y & 0 \\ \vdots &\vdots & 0 & \rho_y & (1-2\rho_y) & \rho_y \\ 0 &0 & \dots & 0 & \rho_y & (1-2\rho_y) \end{bmatrix}, \end{equation*} and also \begin{equation*} \mathbf{b}_{i}^{n}= \begin{bmatrix} -\rho_yf_{c,i}^{n+1}\\ 0\\ \vdots\\ 0\\ -\rho_yf_{d,i}^{n+1} \end{bmatrix} \text{ and } \mathbf{u}_{i}^{n+1}=\begin{bmatrix} u_{i,1}^{n+1} \\ u_{i,2}^{n+1}\\ \vdots\\ u_{i,N_y-2}^{n+1}\\ u_{i,N_y-1}^{n+1} \end{bmatrix}. \end{equation*}

For stability, convergence and dispersion analyses, please see [1, 2].

Example

Consider the following problem, \begin{align*} \begin{cases} \frac{\partial^2 u}{\partial t^2} = \frac{1}{3}\Delta u+\frac{1}{3}e^{t+x+y} ,&(x,y)\in I,~t\in(0,0],\\ u(x,y,0)=e^{x+y},&(x,y)\in J,\\ \frac{\partial }{\partial t}u(x,y,T_1) = e^{x+y},&(x,y)\in J,\\ u(0,y,t) = e^{t+y},&y\in [0,1],~t \in[0,1],\\ u(1,y,t) = e^{t+y+1},&y\in [0,1],~t \in[0,1],\\ u(x,0,t) = e^{t+x},&x\in [0,1],~t \in[0,1],\\ u(x,1,t) = e^{t+x+1},&x\in [0,1],~t \in[0,1], \end{cases} \end{align*} where $I=(0,1)\times(0,1)$ and $J=[0,1]\times[0,1]$.

The exact solution corresponding to the problem can be found as follows, $$ u(x,t)=e^{t+x+y} $$

The Fourth-order Scheme

We can consider one of the following algorithms for this scheme.

The results of analyzing the numerical solution of the problem, using the explicit scheme, is available at the following tables.

What stands out from the tables is that the order of the method is 4 (in space and time). Moreover, consider the following experiment to test the stability condition.


References

  1. Das, Sambit, Wenyuan Liao, and Anirudh Gupta. "An efficient fourth-order low dispersive finite difference scheme for a 2-D acoustic wave equation." Journal of computational and Applied Mathematics 258 (2014): 151-167.

  2. Liao, Wenyuan. "On the dispersion, stability and accuracy of a compact higher-order finite difference scheme for 3D acoustic wave equation." Journal of Computational and Applied Mathematics 270 (2014): 571-583.

  3. Liao, Wenyuan. "An implicit fourth-order compact finite difference scheme for one-dimensional Burgers’ equation." Applied Mathematics and Computation 206.2 (2008): 755-764.