In this project, the aim is to investigate the behavior of wave propagation under different discretization methods. For this purpose, two examples of initial conditions have been considered. The following methods are used for discretization:
The considered wave equation is in the following form:
(1) \[ \frac{\partial u}{\partial t} + c \frac{\partial u}{\partial x} = 0 \]
The initial condition of mode 1 is that the wave must be in the following step form:
(2) \[ u(x, 0) = \begin{cases} 1.0 & \text{if } x \leq 0.1 \\ 0.0 & \text{if } x > 0.1 \end{cases} \]
The initial condition of mode 2 is that the wave must be in the following form:
(3) \[ u(x, 0) = A \sin(6\pi x) \] \( A = 1.0 \)
Figure 1:
First-order Crank-Nicolson & Second-order Crank-Nicolson
In the Crank-Nicholson method, by increasing the spatial and temporal steps while keeping the Courant number constant, the amount of numerical error increases. The results for this method can be found in the corresponding folder, but it was not possible to plot it here. The three-dimensional matrix solver function has been tested for specific problems, and no errors have been observed in the solver code.
In Short: