5
ISSN 1749-3889 (print), 1749-3897 (online) International Journal of Nonlinear Science Vol.11(2011) No.3,pp.380-384 Some Efficient Numerical Solutions of Allen-Cahn Equation with Non-Periodic Boundary Conditions Ishtiaq Ali 1 ,Saeed Islam 1 ,I. Siddique 2 , Nasro Min-Allah 3 1 Department of Mathematics, COMSATS Institute of Information Technology, Islamabad, Pakistan 2 Department of Mathematics, COMSATS Institute of Information Technology, Lahore, Pakistan 3 Department of Computer Science, COMSATS Institute of Information Technology, Islamabad, Pakistan (Received 6 February 2011 , accepted 24 March 2011) Abstract: This paper presents some numerical methods for Allen-Cahn equation using different time stepping and space discretization methods with non-periodic boundary conditions. In space the equation is discretized by Chebyshev spectral method, while in time the exponential time differencing fourth-order Runge-Kutta (ETDRK4) and implicit-explicit scheme is used. For comparison we also use the finite difference scheme in both space and time. Keywords: Allen-Cahn equation;non-periodic boundary conditions;different time stepping methods;Chebyshev spectral method. 1 Introduction Consider the initial-boundary value problem of the form = + 3 , [1, 1], 0, (, 0) = sin(5/2), (±1,) = 0, > 0, (1) where indicates the phase state at each point in spaces and time and is a small parameter whose value is always positive constant known as the interaction length, which describe the thickness of the phase boundary. Eq. (1) is a special type of nonlinear partial differential equation called Allen-Cahn equation (A-C), which arises as diffusion-convection equations in computational fluid dynamics or reaction-diffusion problem in material science. These equations are originally used to solve the phase transition problems, transformation of a thermodynamic system from one phase to another due to an abrupt change in one or more physical properties. These equations describe the evolution of a diffuse phase boundary, concentrated in a small region of size . It also arising from phase transition in materials science. Allen-Cahn equation, which has its origin in the modeling of phase transition or the equation which arises in the study of stationary waves for the nonlinear Schr¨ odinger equation have been a subject of extensive research for many years. It provides a well-established framework for the mathematical description to free boundary problems for phase transitions. Unlike sharp interface models, it postulates a diffuse interface with a small thickness > 0. The physical applications of the Allen-Cahn system are numerous, see for example [1], due to which a lot of interest has been shown in numerical as well as analytical solutions of Allen-Cahn equation. Since the analytical solution of Allen-Cahn equation with non-periodic boundary conditions (BCs) is difficult to obtain, therefore a significant research interest in the numerical solutions of Allen-Cahn equation has been shown, see e.g. [2– 4] and the references therein. When epsilon tends to zero the transition between phases in the Allen-Cahn equation becomes sharper. Solving this type of reaction-diffusion systems that exhibit sharp interfaces in their solutions with a Chebyshev pseudospectral method, it is worth to use an implicit method in time. Also when (number of collocation points) gets bigger, the quadratic clustering of points close to the boundary in the Chebyshev grid severely constrains Corresponding author. E-mail address: [email protected] Copyright c World Academic Press, World Academic Union IJNS.2011.06.15/487

Some Efficient Numerical Solutions of Allen-Cahn …internonlinearscience.org/upload/papers/20110915025019312.pdf · Some Efficient Numerical Solutions of Allen-Cahn ... Some Efficient

Embed Size (px)

Citation preview

Page 1: Some Efficient Numerical Solutions of Allen-Cahn …internonlinearscience.org/upload/papers/20110915025019312.pdf · Some Efficient Numerical Solutions of Allen-Cahn ... Some Efficient

ISSN 1749-3889 (print), 1749-3897 (online)International Journal of Nonlinear Science

Vol.11(2011) No.3,pp.380-384

Some Efficient Numerical Solutions of Allen-Cahn Equation with Non-PeriodicBoundary Conditions

Ishtiaq Ali1,Saeed Islam1,I. Siddique2 ∗, Nasro Min-Allah3

1Department of Mathematics, COMSATS Institute of Information Technology, Islamabad, Pakistan2 Department of Mathematics, COMSATS Institute of Information Technology, Lahore, Pakistan

3Department of Computer Science, COMSATS Institute of Information Technology, Islamabad, Pakistan(Received 6 February 2011 , accepted 24 March 2011)

Abstract: This paper presents some numerical methods for Allen-Cahn equation using different time steppingand space discretization methods with non-periodic boundary conditions. In space the equation is discretizedby Chebyshev spectral method, while in time the exponential time differencing fourth-order Runge-Kutta(ETDRK4) and implicit-explicit scheme is used. For comparison we also use the finite difference scheme inboth space and time.

Keywords: Allen-Cahn equation;non-periodic boundary conditions;different time stepping methods;Chebyshevspectral method.

1 IntroductionConsider the initial-boundary value problem of the form⎧⎨⎩ 𝑢𝑡 = 𝜀𝑢𝑥𝑥 + 𝑢− 𝑢3, 𝑥 ∈ [−1, 1], 𝑡 ≥ 0,

𝑢(𝑥, 0) = sin(5𝜋𝑥/2),𝑢𝑥(±1, 𝑡) = 0, 𝑡 > 0,

(1)

where 𝑢 indicates the phase state at each point in spaces and time and 𝜀 is a small parameter whose value is always positiveconstant known as the interaction length, which describe the thickness of the phase boundary.

Eq. (1) is a special type of nonlinear partial differential equation called Allen-Cahn equation (A-C), which arises asdiffusion-convection equations in computational fluid dynamics or reaction-diffusion problem in material science. Theseequations are originally used to solve the phase transition problems, transformation of a thermodynamic system from onephase to another due to an abrupt change in one or more physical properties. These equations describe the evolution of adiffuse phase boundary, concentrated in a small region of size 𝜀. It also arising from phase transition in materials science.

Allen-Cahn equation, which has its origin in the modeling of phase transition or the equation which arises in the studyof stationary waves for the nonlinear Schrodinger equation have been a subject of extensive research for many years. Itprovides a well-established framework for the mathematical description to free boundary problems for phase transitions.Unlike sharp interface models, it postulates a diffuse interface with a small thickness 𝜀 > 0. The physical applications ofthe Allen-Cahn system are numerous, see for example [1], due to which a lot of interest has been shown in numerical aswell as analytical solutions of Allen-Cahn equation.

Since the analytical solution of Allen-Cahn equation with non-periodic boundary conditions (BCs) is difficult to obtain,therefore a significant research interest in the numerical solutions of Allen-Cahn equation has been shown, see e.g. [2–4] and the references therein. When epsilon tends to zero the transition between phases in the Allen-Cahn equationbecomes sharper. Solving this type of reaction-diffusion systems that exhibit sharp interfaces in their solutions with aChebyshev pseudospectral method, it is worth to use an implicit method in time. Also when 𝑁 (number of collocationpoints) gets bigger, the quadratic clustering of points close to the boundary in the Chebyshev grid severely constrains

∗Corresponding author. E-mail address: [email protected]

Copyright c⃝World Academic Press, World Academic UnionIJNS.2011.06.15/487

Page 2: Some Efficient Numerical Solutions of Allen-Cahn …internonlinearscience.org/upload/papers/20110915025019312.pdf · Some Efficient Numerical Solutions of Allen-Cahn ... Some Efficient

I. Ali ,S. Islam, I. Siddique: Some Efficient Numerical Solutions of Allen-Cahn Equation With Non-Periodic Boundary Conditions 381

the admissible range of time steps if you solve the partial differential equations in time using an explicit method. Toovercome this problem one can use operator splitting in combination with exponential integration. In Allen-Cahn equationthe solution tends to exhibit flat areas close to the values separated by interfaces that might be vanish on a long time scale,a phenomenon known as metastability [3]. A more comprehensive list of references about the Allen-Cahn equation andits applications in engineering can be found in [5].

In this paper an alternative approach by using different time stepping methods and space discretization method isproposed to provide an efficient numerical solution for Allen-Cahn equation (1), with non-periodic boundary conditions.In section 2 describes the finite difference scheme for the initial-boundary value problem (1), which is then followed bythe spectral collocation method in section 3. Section 4 provide the numerical experiments. Section 5 is used to illustratethe concluding remarks.

2 Finite difference schemeThe finite difference discretization of the partial differential Eq. (1) is given by

𝑢𝑛+1𝑖 − 𝑢𝑛

𝑖

𝑘=

𝜀

2ℎ2

[(𝑢𝑛

𝑖+1 − 2𝑢𝑛𝑖 + 𝑢𝑛

𝑖−1) + (𝑢𝑛+1𝑖+1 − 2𝑢𝑛+1

𝑖 + 𝑢𝑛+1𝑖−1 )

]+ 𝑢𝑛

𝑖 − (𝑢𝑛𝑖 )

3, (2)

where in space discretization we use the Crank-Nicolson scheme with 𝜃 = 1/2. 𝑖 and 𝑛 are the indices which shows thediscretization in space and time respectively. Eq. (2) can be written as

(1

𝑘+

𝜀

ℎ2)𝑢𝑛+1

𝑖 − 𝜀

2ℎ2𝑢𝑛+1𝑖+1 − 𝜀

2ℎ2𝑢𝑛+1𝑖−1 =

𝜀

2ℎ2𝑢𝑛𝑖+1 + (

1

𝑘− 𝜀

ℎ2)𝑢𝑛

𝑖 +𝜀

2ℎ2𝑢𝑛𝑖−1 + 𝑢𝑛

𝑖 − (𝑢𝑛𝑖 )

3. (3)

In matrix notation Eq. (3) is given by𝐴𝑢𝑛+1 = 𝐵𝑢𝑛, (4)

where

𝐴𝑢 =

⎛⎜⎜⎜⎝( 1𝑘 + 𝜀

ℎ2 ) − 𝜀2ℎ2 0 ⋅ ⋅ ⋅ 0

− 𝜀2ℎ2 ( 1𝑘 + 𝜀

ℎ2 ) − 𝜀2ℎ2 . . . 0

.... . . . . .

...0 . . . . . . − 𝜀

2ℎ2 ( 1𝑘 + 𝜀ℎ2 )

⎞⎟⎟⎟⎠⎛⎜⎜⎜⎝

𝑢1

𝑢2

...𝑢𝑚

⎞⎟⎟⎟⎠ , (5)

and

𝐵𝑢 =

⎛⎜⎜⎜⎝( 1𝑘 − 𝜀

ℎ2 )𝜀

2ℎ2 0 ⋅ ⋅ ⋅ 0𝜀

2ℎ2 ( 1𝑘 − 𝜀ℎ2 )

𝜀2ℎ2 . . . 0

.... . . . . .

...0 . . . . . . 𝜀

2ℎ2 ( 1𝑘 − 𝜀ℎ2 )

⎞⎟⎟⎟⎠⎛⎜⎜⎜⎝

𝑢1

𝑢2

...𝑢𝑚

⎞⎟⎟⎟⎠ . (6)

3 Chebyshev spectral methodSpectral and pseudo-spectral methods are well known for their higher accuracy and applications to partial differentialequations (PDEs) [6–9]. To approximate solution of the PDEs by spectral methods the unknown is replace by the setof smooth and global basis functions Φ𝑖 (𝑖 = 1, ..., 𝑁), (e.g) polynomials or trigonometric functions, to represent theunknown functions:

𝑢𝑛(𝑥) ≈𝑁∑𝑖=1

𝑎𝑖Φ𝑖(𝑥). (7)

To solve Eq. (1) by spectral method, we first consider the spatial part of the solution, which is approximated on a setof discrete grid points 𝑥𝑗 , 𝑗 = 1, ..., 𝑁 via so-called differentiation matrices which is one of many ways to implementspectral methods. To find a differential matrix 𝐷, such that at the grid points 𝑥𝑗 , we have

𝑑𝑢

𝑑𝑥= 𝐷𝑢. (8)

We use Chebyshev polynomail as a basis function, where the grid points are corresponding Chebyshev points, where theentries of the differentiation matrix are explicitly known. To obtain 𝐷, we use Chebyshev spectral method of [6]. To

IJNS homepage: http://www.nonlinearscience.org.uk/

Page 3: Some Efficient Numerical Solutions of Allen-Cahn …internonlinearscience.org/upload/papers/20110915025019312.pdf · Some Efficient Numerical Solutions of Allen-Cahn ... Some Efficient

382 International Journal of Nonlinear Science, Vol.11(2011), No.3, pp. 380-384

incorporate the Neumann boundary conditions in matrix 𝐷, we use the same idea as presented in [10]. To deal with thetemporal part of Eq. (1), the linear part is integrated by Crank- Nicolson scheme and the non-linear by 2nd order Adams-Bashforth like [3], but we did’t use the specialized fast algorithms described in [3] for spectral derivative operator toavoid the high stability restrictions. For comparison we also use for time discretization, the exponential time differencingfourth-order Runge-Kutta [2, 11].

4 Numerical experimentsIn our numerical experiments we check all of our proposed numerical schemes for different values of thickness of theboundary 𝜀 and the number of collocation points 𝑁 . Due to small value of 𝜀 = 0.01, the diffusion process is low, thereforesolution needs longer time to reach steady state as compared to large value 𝜀 = 2.0, in which the diffusion process is moredominant. Initially, the solution behaves like sinusoidal, however after certain time the periodic oscillation dampens andbecome flat, which is actually a steady state profile as shown in Fig. 1.

Due to the stability problem in time derivative, the finite difference scheme need small time step and is unstable forlarge time step see Fig. 2. Therefore using the finite different scheme is more costly in terms of CPU time.

In case of using the ETDRK4 for time stepping with Chebyshev spectral discretization in space, it is observed thatthis method encounter some problem shown in Fig. 3. This is may be because in this case our matrix 𝐷 is full and theproblem occurs near eigenvalues equal to zero or close to zero in contrast to [2], where they use the same scheme, butwith non-homogenous conditions. Fig. 4 and Fig. 5 shows that using the implicit-explicit scheme for nonlinear term withChebyshev spectral discretization for time integration one can have a better results for large time step with more numberof collocations points 𝑁 .

−1 −0.5 0 0.5 1−1

−0.8

−0.6

−0.4

−0.2

0

0.2

0.4

0.6

0.8

1

x

u(x)

−1 −0.5 0 0.5 11

1

1

1

1

1

1

1

x

u(x)

Figure 1: Initial condition and final (𝑡 = 100) state of Allen-Cahn equation using finite difference scheme in both spaceand time.

−1−0.5

00.5

1

0

50

100−1

−0.5

0

0.5

1

1.5

xt

u

−1−0.5

00.5

1

0

50

100−1

−0.5

0

0.5

1

1.5

xt

u

Figure 2: Solution of Allen-Cahn equation using finite difference scheme with 𝜀 = 0.01, 0.8 respectively.

IJNS email for contribution: [email protected]

Page 4: Some Efficient Numerical Solutions of Allen-Cahn …internonlinearscience.org/upload/papers/20110915025019312.pdf · Some Efficient Numerical Solutions of Allen-Cahn ... Some Efficient

I. Ali ,S. Islam, I. Siddique: Some Efficient Numerical Solutions of Allen-Cahn Equation With Non-Periodic Boundary Conditions 383

Figure 3: Solution of Allen-Cahn equation using Chebyshev spectral method in space and ETDRK4 in time with 𝜀 = 0.01and 𝑁 = 5.

Figure 4: Solution of Allen-Cahn equation with 𝜀 = 2.0, 𝑁 = 300 and 𝑁 = 500 respectively, using Chebyshev spectralmethod.

IJNS homepage: http://www.nonlinearscience.org.uk/

Page 5: Some Efficient Numerical Solutions of Allen-Cahn …internonlinearscience.org/upload/papers/20110915025019312.pdf · Some Efficient Numerical Solutions of Allen-Cahn ... Some Efficient

384 International Journal of Nonlinear Science, Vol.11(2011), No.3, pp. 380-384

Figure 5: Solution of Allen-Cahn equation with 𝜀 = 0.01, 𝑁 = 300 and 𝑁 = 500 respectively, using Chebyshev spectralmethod.

5 Concluding remarksIn this article some efficient numerical methods for Allen-Cahn equation by using Chebyshev differentiation matrix inspace with different time stepping method is applied. The use of implicit-explicit scheme allow us a large time-step aswe know that an explicit method has less order of magnitude as compare to implicit-explicit method. In time-stepping theproposed ETDRK4 does not behaves well for this special kind of partial differential equation. This is may be due to thestiffness of a system caused by the linear term in general after discretization. After using the finite difference scheme inboth space and time and making the comparison with all used method we found that by using the implicit-explicit schemefor nonlinear term with Chebyshev spectral discretization for time integration is the best.

AcknowledgmentWe are thankful for the financial support provided by COMSATS Institute of Information Technology, Islamabad, Pak-istan.

References[1] L. Q. Chen: Phase-field models for microstructural evolution, Ann. Rev. Mater. Res. 32(2002): 113-140.[2] A. K. Kassam, L. N. Trefethen: Fourth-order time-stepping for stiff PDEs. SIAM J. Sci. Comput., 45(2005): 1214–

1233.[3] W. Lyons, H. D. Ceniceros, S. Chandrasekaran, M. Gu: Fast algorithms for spectral collocation with non-periodic

boundary conditions. J. Comput. Phys. 207(2005): 173–191.[4] G. E. Fasshauer: RBF collocation methods and pseudospectral methods. Boundary Elements XXVII, WIT Press,

Southampton,(2005): pp.47–56 .[5] D. Raabe, F. Roters, F. Barlat, L. Q. Chen: Continuum Scale Simulation of Engineering Materials: Fundamentals -

Mircorstructures - Process Applications. Wiley-VCH (2004).[6] L. N. Trefethen: Spectral Methods in Matlab. SIAM, Philadelphia, PA (2000).[7] B. Fornberg: A Practical Guide to Pseudospectral Methods. Cambridge University Press, Cambridge, UK (1996).[8] J. P. Boyd: Chebyshev and Fourier Spectral Methods. Dover, Mineola, New York (2001).[9] C. Canuto, M. Hussaini, A. Quarteroni, T.A. Zang: Spectral Methods: Fundamentals in Single Domains. Springer,

Berlin (2006).[10] J. A. Weideman, S. C. Reddy: A Matlab Differentiation Matrix Suite, ACM Transactions on Mathematical Software

(TOMS). 26(2000): 465–519.[11] S. M. Cox, P. C. Matthews: Exponential time differencing for stiff systems. J. Comput. Phys. 176(2002): 430–455.

IJNS email for contribution: [email protected]