American Journal of Computational Mathematics
Vol.07 No.02(2017), Article ID:77115,12 pages
10.4236/ajcm.2017.72017

Two-Dimensional Nonlinear Reaction Diffusion Equation with Time Efficient Scheme

Shahid Hasnain, Muhammad Saqib, Daoud Suleiman Mashat

Department of Mathematics, Numerical Analysis, King Abdulaziz University, Jeddah, KSA

Copyright © 2017 by authors and Scientific Research Publishing Inc.

This work is licensed under the Creative Commons Attribution International License (CC BY 4.0).

http://creativecommons.org/licenses/by/4.0/

Received: January 31, 2017; Accepted: June 20, 2017; Published: June 23, 2017

ABSTRACT

This research paper represents a numerical approximation to non-linear two-dimensional reaction diffusion equation from population genetics. Since various initial and boundary value problems exist in two-dimensional reaction-diffusion, phenomena are studied numerically by different numerical methods, here we use finite difference schemes to approximate the solution. Accuracy is studied in term of L 2 , L and relative error norms by random selected grids along time levels for comparison with exact results. The test example demonstrates the accuracy, efficiency and versatility of the proposed schemes. It is shown that the numerical schemes give better solutions. Moreover, the schemes can be easily applied to a wide class of higher dimension nonlinear reaction diffusion equations with a little modification.

Keywords:

Forward in Time and Centre in Space (FTCS), Taylor’s Series, Crank Nicolson, Alternating Direction Implicit (ADI) Scheme

1. Introduction

Let us consider a population distributed in a linear habitat, such as shore line, which occupies with a uniform quantity of density [1] . If at any point of the habitat, a mutation occurs, which happens to be in some degree, however, slight, advantageous to survival, in the totality of its effects [1] [2] . We may expect the mutant gene to increase at the expense of all allelomorph or allelomorphs previously occupying the same set of points [2] [3] . This process will be first computed in the neighbourhood of the occurrence of the mutation and later, as the advantageous gene is diffused into the surrounding population, in the adjacent portions of its range [3] . Supposing that this range to be long compared with the distances separately, the sites of offspring from these of their parents, there will be advancing from origin, a wave of increase in the gene frequency [4] . Let us consider the following possible postulates of above phenomena.

Let p be the frequency of the mutant gene, and q is its parent allelomorph and we suppose, it is only the allelomorph parent [4] [5] . Let m be the intensity of the selection in favour of the mutant gene, supposing independence of p . Let us suppose that the rate of diffusion per generation across any boundary may be equated to k x p at that boundary, x being the coordinate measuring position in the linear habitat [5] . Then p must satisfy the differential equation,

p t = k p x x + m p q (1)

where t represents time in generation, where constant k is coefficient of diffusion analogous which is used in physics.

2. Governing Equation

Many complicated natural phenomena, such as the spreading of bushfire and epidemics, and the non-linear evolution of a population in a two dimensional habitat [6] [7] [8] [9] , (in which the balance of reaction and diffusion are concerned) can be modelled by a two dimensional reaction-diffusion equation

u t = β ( u x x + u y y ) + α f ( u ) u t = ( β u ) + α f ( u ) } (2)

where u is a dimensionless temperature or population density, u t is the rate of increase of u with time t , is the gradient operator in two dimensional space, β is a constant second order tensor measuring the diffusivity of the media, and f ( u ) is a non-linear function of u representing the effect of reaction or multiplication. Also μ represents reactive constant after diffusion occurs. Assuming β 1 and β 2 are the principal values of β as in Equation (2) and x and y are coordinates along the principle axes, Equation (2) can be written as

u t = β 1 u x x + β 2 u y y + α u ( 1 u ) (3)

3. Exact Solution

To derive the exact solution of the given system in Equation (3), we assume the exact solution of the two dimensional non-linear reaction diffusion equation is [10] [11] [12] [13] ,

u ( x , y , t ) = 20 + 80 ( y e D t sin ( x π 2 ) sin ( y π 2 ) ) Where D = β π 2 2 } (4)

4. Numerical Methods

We consider the numerical solution of the non-linear Equation (3) in a finite domain Ω = { ( x , y ) | a < x < b , c < y < d } . The first step is to choose integers n and m to define step sizes h = ( b a ) / n and k = ( d c ) / m in x and y di- rections respectively. Partition the interval [a, b] into n equal parts of width h and the interval [c, d] into m equal parts of width k. Place a grid on the rectangle R by drawing vertical and horizontal lines through the points with coordinates ( x i , y j ) , where x i = a + i h for each i = 0 , 1 , 2 , n and y j = c + j k for each j = 0 , 1 , 2 , m also the lines x = x i and y = y j are grid lines, and their intersections are the mesh points of the grid. For each mesh point in the interior of the grid, ( x i , y j ) , for i = 1 , 2 , , n 1 and j = 1 , 2 , , m 1 , we apply dif- ferent algorithms to approximate the numerical solution to the problem in Equation (3) also we assume t N = N t , N = 0 , 1 , , where t is the time.

4.1. Second Order Implicit Scheme

We apply Crank Nicolson implicit finite difference scheme to Equation (3),

δ x 2 u ^ = u ^ l + 1 , m 2 u ^ l , m + u ^ l 1 , m h 2 δ y 2 u ^ = u ^ l , m + 1 2 u ^ l , m + u ^ l , m 1 h 2 δ x 2 v ^ = v ^ l + 1 , m 2 v ^ l , m + v ^ l 1 , m h 2 δ y 2 v ^ = v ^ l , m + 1 2 v ^ l , m + v ^ l , m 1 h 2 }

u i , j n + 1 = u i , j n + k β 1 2 h x 2 δ x 2 ( u i , j n + 1 + u i , j n ) + k β 2 2 h y 2 δ y 2 ( u i , j n + 1 + u i , j n ) + k μ 2 ( u i , j n + 1 + u i , j n ) ( 1 1 2 ( u i , j n + 1 + u i , j n ) ) Where R 1 = k β 1 2 h x 2 , R 2 = k β 2 2 h y 2 and Q 1 = k μ 2 u i , j n + 1 = u i , j n + R 1 δ x 2 ( u i , j n + 1 + u i , j n ) + R 2 δ y 2 ( u i , j n + 1 + u i , j n ) + Q 1 ( u i , j n + 1 + u i , j n ) ( 1 1 2 ( u i , j n + 1 + u i , j n ) ) } (5)

4.2. Computationally Efficient Implicit Scheme

In search of a time efficient alternate, we analysed the naive version of the Crank-Nicolson scheme for the two dimensional equation, and find out that scheme is not time efficient [14] [15] [16] [17] [18] . To get high time efficiency, the common name of Alternating Direction Implicit (ADI) method, can be used. The derivation to ADI scheme, we have following steps;

ADI formulation: Peaceman-Rachford algorithm:

Introduce an FTCS scheme for the first time step = n + 1 2 , of the form

u i , j u i , j n Δ t / 2 β 1 h x 2 ( u i 1 , j 2 u i , j + u i + 1 , j ) β 2 h y 2 ( u i , j 1 n 2 u i , j n + u i , j + 1 n ) = μ f ( u i , j n ) inthecompactform,aboveequationcanbeseenas: u i , j u i , j n Δ t / 2 S 1 L x x u i , j S 2 L y y u i , j n = μ f ( u i , j n ) aboveequationcanbewrittenasinalgorithm form,for i = 1 , 2 , 3 , , n 1 } 1 2 R 1 u i 1, j + ( 1 + R 1 ) u i , j 1 2 R 1 u i + 1, j = 1 2 R 2 u i , j 1 n + ( 1 R 2 ) u i , j n + 1 2 R 2 u i , j + 1 n + μ Δ t 2 f ( u i , j n ) abovealgorithmvalidatesitsresultsfor i = 1 , 2 , 3 , , n 1 } } (6)

Now let us consider the second time step,

u i , j n + 1 u i , j Δ t / 2 β 1 h x 2 ( u i 1, j 2 u i , j + u i + 1, j ) β 2 h y 2 ( u i , j 1 n + 1 2 u i , j n + 1 + u i , j + 1 n + 1 ) = μ f ( u i , j ) inthecompactform,aboveequationcanbeseenas: u i , j n + 1 u i , j Δ t / 2 S 1 L x x u i , j S 2 L y y u i , j n + 1 = μ f ( u i , j ) aboveequationcanbewrittenasin algorithmform,for j = 1 , 2 , 3 , , m 1 } 1 2 R 2 u i 1, j n + 1 + ( 1 + R 2 ) u i , j n + 1 1 2 R 2 u i + 1, j n + 1 = 1 2 R 1 u i 1, j + ( 1 R 1 ) u i , j + 1 2 R 1 u i + 1, j + μ Δ t 2 f ( u i , j ) abovealgorithmvalidatesitsresultsfor j = 1 , 2 , 3 , , m 1 } } (7)

The trick used in constructing the ADI scheme is to split time step into two, and apply two different stencils in each half time step, therefore to increment time by one time step in grid point , we first compute both of these stencils are chosen such that the resulting linear system is block tridiagonal [19] [20] [21] [22] . To obtain the numerical solution, we need to solve a block non-linear tridiagonal system at each time step. We have done this by using Newton’s iterative method.

Algorithm 1:

The non-linear system in Equations (6) and (7), can be written in the form:

R ( W ) = 0 (8)

where R = ( r 1 , r 2 , r 3 , , r 2 n ) t , W = ( u 1 n + 1 , v 1 n + 1 , u 2 n + 1 , v 2 n + 1 , , u m n + 1 , v m n + 1 ) and r 1 , r 2 , r 3 , , r 2 n are the non-linear equations obtained from the system (6 and 7). The system of equations, is solved by Newton’s iterative method using the following steps

1) Specify W ( 0 ) as an initial approximation.

2) For k = 0 , 1 , 2 , . until convergence achieve.

・ Solve the linear system A ( W ( k ) ) Δ W ( k ) = R ( W ( k ) ) ,

・ Specify W ( k + 1 ) = W ( k ) + Δ W ( k ) ,

where A ( W ( k ) ) is ( m × m ) Jacobian matrix, which is computed analytically and Δ W ( k ) is the correction vector. In the iteration method solution at the previous time step is taken as the initial guess. Iteration at each time step is stopped when R ( W ( k ) ) T o l with Tol is a very small prescribed value. The linear system obtained from Newton’s iterative method, is solved by Crout’s method. Convergence done with iterations along less CPU time [23] .

Algorithm 2:

Clearly, the system is tridiagonal and can be solved with Thomas algorithm. The dimension of J is n × m . In general a tridiagonal system can be written as,

a i x i 1 + b i x i + c i x i + 1 = S i , with a 1 = c n = 0

above system can be written as in a matrix-vector form,

J u = S

where J is a coefficient matrix (Jacobean Matrix), which is known, comes from Newton’s iterative method. Right hand side is column vector which is known. Our main goal is to find the resultant vector u . Now we have

J = [ b 1 c 1 0 0 0 0 a 2 b 2 c 2 0 0 0 a n 1 b n 1 c n 1 a n b n ]

u _ = [ u 1 , u 2 , u 3 , , u n ] t

S _ = [ s 1 , s 2 , s 3 , , s n ] t

technique is explained in the following steps,

J = L U

where

L = [ μ 1 0 0 0 0 ...0 β 2 μ 2 0 0 0 ...0 α 3 β 3 μ 3 0 0 ...0 ... ... ... ... ... ...0 ... ... α n 1 β n 1 μ n 1 0 ... ... ... α n β n μ n ]

And

U = [ 1 δ 1 λ 1 0 0 ...0 0 1 δ 2 λ 2 0 ...0 0 0 1 δ 3 λ 3 ...0 ... ... ... ... ... ...0 ... ... 0 1 δ n 2 λ 2 ... ... 0 0 1 δ n 1 ... ... ... 0 0 1 ]

By equating both sides of the J u = S , we get the elements of the matrices L and U . The computational tricks for the implementation of Thomas algorithm are shown in results, taken from a specific examples.

5. Error Norms

The accuracy and consistency of the schemes is measured in terms of error norms specially L 2 and L [23] [24] [25] [26] which are defined as:

L = u ecact u Approximation = max 1 i m j = 1 m | u j ecact u j Approximation | L 2 = u ecact u Approximation 2 = j = 1 m | u j ecact u j Approximation | Error relative = i j | u i , j ecact u i , j Approximation | 2 j | u i , j exact | 2 Rate = log ( Error h / Error h / 2 ) log ( h / ( h / 2 ) ) } (9)

6. Results

Numerical computations have been performed using the uniform grid. Table 1 & Table 2 represent results at different grids and time level using Crank Nicolson implicit scheme. We fixed some parameters such as time step k = 0.0001 , β 1 = β 2 = 1 and β 1 = β 2 = 1 / 4 . Scheme convergence viewed through L 2 , L , relative error norms [27] [28] [29] [30] . Table 3 & Table 4 represent results at different grids and time level using ADI implicit scheme, keeping fixed parameters as we did before. In Table 5, we get results using ADI

Table 1. Estimates of results using Crank Nicolson with some fixed parameters such as k = 0.0001 , t = 1 at different grids and [ a , b ] = [ 10 10 ] . Error magnifies through L 2 , L and Error relative .

Table 2. Estimates of results using Crank Nicolson with some fixed parameters such as k = 0.0001 , grid = 61 × 61 at different time level and [ a , b ] = [ 10 10 ] . Error magnifies through L 2 , L and Error relative .

Table 3. Estimates of results using ADI scheme, such as k = 0.0001 , t = 1 at different grids and [ a , b ] = [ 10 10 ] . Error magnifies through L 2 , L and Error relative .

Table 4. Estimates of results using ADI scheme with some fixed parameters such as k = 0.0001 , grid = 61 × 61 at different time level and [ a , b ] = [ 10 10 ] . Error magnifies through L 2 , L and Error relative .

Table 5. Estimates of results using ADI and Crank Nicolson schemes, with reducing step size.

scheme at very small step spacing to understand the importance of reducing steps. Rate of convergence can be seen from Table 6, which explains two implicit schemes. Figure 1 & Figure 2 show results for CN for different times and grids respectively. Figure 3 & Figure 4 show results for ADI for different times and grids respectively. Figure 5 gives comparison of two implicit schemes for reducing step spacing in x and y directions respectively. Last Figure 6 shows interesting results for different times. Sharp edges remove during increasing

Table 6. Presents results using ADI and CN schemes, with rate of convergence.

Figure 1. Shows results using CN scheme, at different time levels, fixed some parameters as we mentioned in Table 1.

Figure 2. Shows results using CN scheme, at different grids, fixed some parameters as we mentioned in Table 1 & Table 2.

Figure 3. Shows results using ADI scheme, at different grids, fixed some parameters as we mentioned in Table 3 & Table 4.

Figure 4. Shows results using ADI scheme, at different time levels, fixed some parameters as we mentioned in Table 3 & Table 4.

Figure 5. Shows results using ADI scheme, for two different h. See Table 5.

Figure 6. Shows results at different time for simple error in the concentration of the diffusion reaction phenomena. As we mentioned in this paper u(x, y, t) be the concentration of the chemical. With step-up in grid size, make significant change in error but incremental in time, increase error as we can see from this figure. With increase in time, reduce the sharp edge as we mentioned in figure by arrows. These results are very interesting during simulations.

time level [31] [32] [33] [34] . These results are very interesting for us to understand the efficency of the later scheme.

Cite this paper

Hasnain, S., Saqib, M. and Mashat, D.S. (2017) Two-Dimen- sional Nonlinear Reaction Diffusion Equation with Time Efficient Scheme. American Journal of Computational Mathematics, 7, 183-194. https://doi.org/10.4236/ajcm.2017.72017

References

  1. 1. Fisher, R.A. (1936) The Wave of Advance of Advantageous Genes. Annals of Human Genetics, 7, 355-369. https://doi.org/10.1111/j.1469-1809.1937.tb02153.x

  2. 2. Kolmogorov, A.K., Petrovsky, N.P. and Piscounov, S.P. (1937) Etude de I equations de la diffusion avec croissance de la quantitate de matiere et son application a un probolome biologique. Bull. Univ. Mosku, 1, 1-25.

  3. 3. Newman, W.I. (1980) Some Exact Solutions to a Non-Linear Diffusion Problem in Population Genetics and Combustion. Journal of Theoretical Biology, 85, 325-334.

  4. 4. Ronson, D.G. and Weinberger, H.F. (1975) Nonlinear Diffusion in Population Genetics, Combustion, and Nerve Pulse Propagation. Springer-Verlag., Berlin, 5-49. https://doi.org/10.1007/BFb0070595

  5. 5. Franak Kameneetiskii, D.A. (1969) Diffusion and Heat Transfer in Chemical Kinetics. 1st Edition, Plenum Press, New York.

  6. 6. Canosa, J.C. (1973) On a Nonlinear Diffusion Equation Describing Population Growth. IBM Journal of Research Development, 17, 307-313. https://doi.org/10.1147/rd.174.0307

  7. 7. Arnold, R.A., Showalter, K. and Tyson, J.J. (1987) Propagation of Chemical Reactions in Space. Journal of Chemical Education, 64, 740-7744. https://doi.org/10.1021/ed064p740

  8. 8. Tuckwell, H.C. (1988) Introduction to Theoretical Neurobiology. Cambridge University Press, Cambridge.

  9. 9. Argyris, J.A., Haase, M.H. and Heinrich, J.C. (1991) Finite Element Approximation to Two-Dimensional Sine Gordon Equations. Computer Methods in Applied Mechanics and Engineering, 86, 1-26.

  10. 10. Aronson, D.G. and Weinberger, H.F. (1978) Multidimensional Non-Linear Diffusion Arising in Population Genetics. Advance in Mathematics, 30, 33-76.

  11. 11. Grimshaw, R.G. and Tang, S.T. (1990) The Rotation-Modified Kadomtsev-Petviashvili Equation: An Analytical and Numerical Study. Studies in Applied Mathematics, 83, 223-248. https://doi.org/10.1002/sapm1990833223

  12. 12. Tang, S.T., Qin, S.Q. and Weber, R.O. (1991) Numerical Solution of a Non-Linear Reaction Diffusion Equation. Applied Mathematics and Mechanics, 12, 751-758.

  13. 13. Tang, S.T. and Weber, R.O. (1991) Numerical Study of Fisher’s Equation by a Petrov-Galerkin Finite Element Method. The ANZIAM Journal, 33, 27-38. https://doi.org/10.1017/S0334270000008602

  14. 14. Williams, S.W. and Chow, P.L. (1978) Nonlinear Reaction-Diffusion Models for Interacting Populations. Journal of Mathematical Analysis and Applications, 62, 157-169.

  15. 15. Maynard Smith, J.M. (1971) Models in Ecology. Cambridge University Press, Cambridge.

  16. 16. Hilborn, R.H. (1975) The Effect of Spatial Heterogeneity on the Persistence of Predator-Prey Interactions. Theoretical Population Biology, 8, 346-355.

  17. 17. Burgers, J.M. (1948) A Mathematical Model Illustrating the Theory of Turbulence. In: Advances in Applied Mechanics, Vol. 1, Academic Press, Inc., New York, 171-199.

  18. 18. Bateman, H.B. (1915) Some Recent Researches on the Motion of Fluids. Monthly Weather Review, 43, 163-170. https://doi.org/10.1175/1520-0493(1915)43<163:SRROTM>2.0.CO;2

  19. 19. Wang, X.Y. (1988) Exact and Explicit Solitary Wave Solutions for the Generalized Fisher Equation. Physics Letters A, 131, 227-279.

  20. 20. Gazdag, J.G. and Canosa, J.C. (1974) Numerical Solutions of Fisher’s Equation. Journal of Applied Probability, 11, 445-457. https://doi.org/10.1017/S0021900200096236

  21. 21. Logan, D.J. (1994) An Introduction to Nonlinear Partial Differential Equations. Wiley, New York.

  22. 22. Evans, D.J. and Sahimi, M.S. (1989) The Alternating Group Explicit (AGE) Iterative Method to Solve Parabolic and Hyperbolic Partial Differential Equations. Annals of Numerical Fluid Mechanics and Heat Transfer, 2, 283-389.

  23. 23. Ames, W.F. (1965) Nonlinear Partial Differential Equations in Engineering. Academic Press, New York.

  24. 24. Ames, W.F. (1969) Finite Difference Methods for Partial Differential Equations. Academic Press, New York.

  25. 25. Noye, J.N. (1981) Nonlinear Partial Differential Equations in Engineering. North-Holland Publishing Comp. Conference in Queen’s College, University of Melbourne, Australia.

  26. 26. Ablowitz, M.J. and Zeppetella, A.Z. (1979) Explicit Solutions of Fisher’s Equation for a Special Wave Speed. Bulletin of Mathematical Biology, 41, 835-840. https://doi.org/10.1007/BF02462380

  27. 27. Wasow, W.W. (1955) Discrete Approximation to Elliptic Differential Equations. Zeitschrift für Angewandte Mathematik und Physik ZAMP, 6, 81-97.

  28. 28. Schiesser, W.E. and Griffiths, G.W. (2009) A Compendium of Partial Differential Equation Models. Cambridge University Press, Cambridge. https://doi.org/10.1017/CBO9780511576270

  29. 29. Whitham, G.B. (1974) Linear and Nonlinear Waves. John Wiley & Sons, Hoboken.

  30. 30. Babuska, I.B. (1968) Numerical Stability in Mathematical Analysis. IFIP Congress, North-Holland, Amsterdam, 11-23.

  31. 31. Kanti, P.K. and Lajja, V.L. (2011) A Note on Crank-Nicolson Scheme for Burgers Equation. Applied Mathematics, 2, 888-899.

  32. 32. Roache, P.J. (1972) Computational Fluid Dynamics. Hermosa, Albuquerque.

  33. 33. Mazumder, S.M. (2015) Numerical Methods for Partial Differential Equations: Finite Difference and Finite Volume Methods. Academic Press, New York.

  34. 34. Srivastava, V.K. and Tamsir, M.T. (2012) Crank Nicolson Semi-Implicit Approach for Numerical Solution of Two Dimensional Coupled Nonlinear Burgers Equations. International Journal of Applied Mechanics and Engineering, 17, 571-581.