Turkel studied a hyperbolic equation using composite method. Motivated by Turkel, we study a corresponding problem (wave propagation problem) using a numerical scheme, namely, central difference scheme. The stability and convergence of the scheme are investigated. From the analysis the order of dissipativity for the central difference scheme is four compared to that of the composite scheme, which is six; hence, the central difference scheme is less dissipative than the composite scheme. Another feature of the central difference scheme is that it allows more refinement of the grid size than the composite scheme and this refinement helps to improve the accuracy of the central difference scheme. A numerical example based on a wave propagation problem (initial boundary value problem) is solved using analytic and computer methods and the results are compared with that of the central difference scheme.
INTRODUCTION
There are several procedures that come under the numerical methods. Nonlinear problems in fluid dynamics, elasticity and potential theory involving two and three dimensions are being solved today using numerical techniques that were not even considered a few years ago. Turkel (1977) studied a hyperbolic problem using composite scheme. Other contributors to solutions of problems using finite difference scheme include, Notably (Bilbao and Smith, 2003; Courant et al., 1928; Forsythe and Wasow, 1960; Furihata, 2001; Gustafsson, 1975; Khalifa and Raslan, 1999; Luo et al., 2001; Oliveira, 2003; Potter and Okoniewski, 2001; Shao and Liu, 2001; Zingg, 2000).
In this research, we solve a wave propagation problem using central difference scheme. The result is compared with that of the composite scheme (Turkel, 1977). We then proceed to solve the Initial Boundary Value Problem (IBV P) using the analytic and computer methods. Comparison of the results with that of the central difference scheme shows that the central difference scheme is sufficiently accurate.
RECURRENCE SCHEME FOR WAVE PROPAGATION EQUATION
A uniform x-t grid with mesh size Δx = h in the x-direction and Δt = k in the t-direction is introduced. Thus, the difference formula for approximating the wave Eq. 1:
![]() |
(1) |
using central difference method is as:
![]() |
(2) |
![]() |
(3) |
Dropping the terms O(k2) and O(h2) and using the approximation Ui,j for u(xi, tj) in (Eq. 2 and 3), which in turn are substituted into the PDE Eq. 1, we obtain:
![]() |
(4) |
For convenience, we introduce the substitution r = ck/h (where, r is called the Courant number) in (Eq. 4) and we obtain the relation:
![]() |
(5) |
Solving (Eq. 5) for Ui,j+1 we obtain a recurrence scheme:
![]() |
(6) |
where, n is the number of grid points in the x-direction. Accordingly, the number of grid points in the t-direction w ill be designated by m.
STABILITY AND CONVERGENCE ANALYSIS
Using Von Neumann’s method or Fourier series method, namely,
![]() |
|
in (Eq. 6) (where, β and α are any real numbers), the amplification factor ξ = eak is easily shown to be:
![]() |
|
where, r = ck/h. This gives:
![]() |
(7) |
from which it follows that |ξ|≤1 if 0≤r≤1. Hence, the (Eq. 6) is stable if 0≤r≤1.
The convergence of the scheme follows the Courant et al. (1928) (C.F.L.) condition for convergence, which applies to explicit t difference replacement of hyperbolic equations. It requires the (Eq. 6) to be convergent when 0≤r≤1. Thus, the stability condition coincides with the C.F.L. condition.
NUMERICAL ILLUSTRATION: WAV E PROPAGATION PROBLEM
![]() |
(8) |
Table 1: | Finite difference result of the IBVP |
![]() |
![]() |
(9) |
![]() |
(10) |
Here, we give the numerical solution of the IBVP for x = 0 (0.2) 1, t = 0 (0.1) 0.5, c = 2. Here, a = 1, b = 0.5. For r = 1 (Eq. 6) becomes:
![]() |
(11) |
The boundary conditions in finite difference form are:
![]() |
(12) |
while, the initial conditions are:
![]() |
(13) |
Applying the Eq. 11-13, successively to generate rows and computing the pivotal value in each row produce the finite difference solution to the IBVP corrected to five decimal places shown in Table 1.
ANALYTICAL SOLUTION OF THE IBVP
Using d’ Alembert’s method the required analytical solution for the IBVP (Eq. 8)-(10) is:
![]() |
(14) |
The analytical values computed for x = 0 (0.21) 1 and t = 0 (0.1) 0.5 and corrected to five places of decimal are shown in Table 2.
Table 2: | Analytical result of the IBVP |
![]() |
A BASIC PROGRAM FOR THE FINITE DIFFERENCE SOLUTION OF THE WAVE EQUATION
REM Finite Difference Solution for the Wave Equation
REM
DIM U(100,100)
DEF FNF (I) = SIN (H* I* 3. 142)
DEF FNG (I) = 0
IN PUT | A |
IN PUT | B |
INPUT | C |
INPUT | M |
INPUT | N |
H | = | A/(N-1) |
K | = | B/(M-1) |
R | = | CxK/H |
R2 | = | R^2 |
R22 | = | RxR/2 |
S1 | = | 1-R^2 |
S2 | = | 2-2xR^2 |
Check out loop number 1 |
FOR J | = | 0 TO M-1 |
U (O,J) | = | 0 |
NEXT J | ||
FOR J | = | 0 TO M-1 |
U (N-1,J) | = | 0 |
NEXT J |
Check out loop number 2 |
FOR I | = | 1 TO N-2 |
U (I,0) | = | FNF (I) |
U (I,1) | = | S1xFNF(I) + Kx FNG (I)+ R22x(FNF (I+1) + FNF (I-1)) |
NEXT I | = |
Check out loop number 3 |
FOR J | = | 2 TO M-1 |
FOR I | = | 1 TO N2- |
U(I, J) | = | S2xU(I,J-1)+R2x(U(I-1,J-1)+U(I+1, J-1))-U(I, J-2) |
NEXT I | ||
NEXT J |
Check out loop number 4 |
CLS | ||
L PRINT | = | L PRINT |
FOR J | = | 0 TO M-1 |
FOR I | = | 0 TO N-1 |
L PRINT U (I, J); |
NEXT I | ||
L PRINT | = | L PRINT |
NEXT J | ||
End |
The computer values obtained for the particular data A = 1, B = 0.5, C = 2, M = 6, N = 6 and rounded-off to five decimal places are shown in Table 3.
Table 3: | Computer result of the IBVP |
![]() |
DISCUSSION
We observe that the recurrence relation (Eq. 6) for the wave (Eq. 1) is stable when the dimensionless parameter (Courant number) r is equal to or <1 and convergent in the sense of Courant, Friedrichs and Lewy (C.F.L.) condition for convergence; that is, the central difference scheme (Eq. 6) is convergent for 0<r≤1. Thus, stability and convergence conditions for (Eq. 6) coincide. From (Eq. 7) the (Eq. 6) is evidently dissipative for long wave lengths and the order of dissipativity is four. Thus, the central difference scheme is better than the composite scheme (Turkel, 1977), in which the order of dissipativity is six. Also the central difference scheme allows more refinement of the mesh size than the composite scheme and this refinement property helps to improve the accuracy of the central difference scheme. Finally, comparison of Table 1-3 reveals that the central difference scheme based on the IBVP agrees reasonably with the analytical and computer result, thus attesting to the accuracy of the central difference scheme.
A.E. Eyo and U.A. Abasiekwere. Numerical Scheme for Wave Propagation Problem.
DOI: https://doi.org/10.36478/rjasci.2009.148.151
URL: https://www.makhillpublications.co/view-article/1815-932x/rjasci.2009.148.151