• No results found

Smoothing schemes for reaction-diffusion systems with nonsmooth data

N/A
N/A
Protected

Academic year: 2021

Share "Smoothing schemes for reaction-diffusion systems with nonsmooth data"

Copied!
13
0
0

Loading.... (view fulltext now)

Full text

(1)

www.elsevier.com/locate/cam

Smoothing schemes for reaction-diffusion systems

with nonsmooth data

A.Q.M. Khaliq

a

, J. Mart´ın-Vaquero

b

, B.A. Wade

c,∗

, M. Yousuf

d

aDepartment of Mathematical Sciences, Middle Tennessee State University, Murfreesboro, TN 37132, USA bETS Ingenieros Industriales, Universidad de Salamanca, 37700, Bejar, Spain

cDepartment of Mathematical Sciences, University of Wisconsin-Milwaukee, Milwaukee, WI 53201-0413, USA dDepartment of Mathematical Sciences, King Fahd University of Petroleum and Minerals, Dhahran 31261, Saudi Arabia

Received 13 August 2007; received in revised form 21 November 2007

Abstract

Cox and Matthews [S.M. Cox, P.C. Matthews, Exponential time differencing for stiff systems, J. Comput. Phys. 176 (2002) 430–455] developed a class of Exponential Time Differencing Runge–Kutta schemes (ETDRK) for nonlinear parabolic equations; Kassam and Trefethen [A.K. Kassam, Ll. N. Trefethen, Fourth-order time stepping for stiff pdes, SIAM J. Sci. Comput. 26 (2005) 1214–1233] have shown that these schemes can suffer from numerical instability and they proposed a modified form of the fourth-order (ETDRK4) scheme. They use complex contour integration to implement these schemes in a way that avoids inaccuracies when inverting matrix polynomials, but this approach creates new difficulties in choosing and evaluating the contour for larger problems. Neither treatment addresses problems with nonsmooth data, where spurious oscillations can swamp the numerical approximations if one does not treat the problem carefully. Such problems with irregular initial data or mismatched initial and boundary conditions are important in various applications, including computational chemistry and financial engineering. We introduce a new version of the fourth-order Cox–Matthews, Kassam–Trefethen ETDRK4 scheme designed to eliminate the remaining computational difficulties. This new scheme utilizes an exponential time differencing Runge–Kutta ETDRK scheme using a diagonal Pad´e approximation of matrix exponential functions, while to deal with the problem of nonsmooth data we use several steps of an ETDRK scheme using a sub-diagonal Pad´e formula. The new algorithm improves computational efficiency with respect to evaluation of the high degree polynomial functions of matrices, having an advantage of splitting the matrix polynomial inversion problem into a sum of linear problems that can be solved in parallel. In this approach it is only required that several backward Euler linear problems be solved, in serial or parallel. Numerical experiments are described to support the new scheme.

c

2008 Elsevier B.V. All rights reserved.

Keywords:Pad´e scheme; Parabolic problem; Nonsmooth data; Allen–Cahn equation; Robertson equation

1. Introduction

In this article we introduce and study a fourth-order numerical scheme designed to yield good performance under challenging conditions of irregular or mismatched data for systems of nonlinear reaction-diffusion equations. This

Corresponding author. Tel.: +1 414 229 5225; fax: +1 414 229 4907.

E-mail addresses:[email protected](A.Q.M. Khaliq),[email protected](J. Mart´ın-Vaquero),[email protected](B.A. Wade),

[email protected](M. Yousuf).

0377-0427/$ - see front matter c 2008 Elsevier B.V. All rights reserved.

(2)

is an extension of two distinct ideas: first, we use an auxiliary damping scheme at the start to reduce spurious oscillations due to irregular data, cf. articles by Rannacher [22,23] and the authors [15,32,33]; and second, we employ the exponential time differencing technique [3,12] and a fourth-order diagonal Pad´e scheme, which reduces the nonlinear problem to solving two simple and well-conditioned linear systems and alleviates the computational difficulties pointed out in [12].

Cox and Matthews [3] introduced a class of Exponential Time Differencing schemes (ETD) for nonlinear stiff systems. Other types of exponential time-stepping schemes can be found in [11,18,29,30]. Their technique is to reduce the PDE via Duhamel’s Principle on one time step to an integral equation in which the nonlinear function is approximated by a polynomial. Their analysis treats scalar examples (ODEs) and systems of two PDEs with special form, but does not consider fully discrete schemes.

Kassam and Trefethen in [12] addressed the limited generality of the presentation of [3] and showed that those schemes can suffer from numerical instability when inverting the polynomials of matrices that arise. They introduced a contour integral strategy to improve the general applicability of the ETDRK schemes and further developed the ideas of one particular ETDRK scheme — a fourth-order Runge–Kutta type scheme, called ETDRK4. This improved version of the Cox–Matthews [3] scheme handles for relatively small problems the difficulty of computing the solutions of fully discrete equations by reducing the problem of matrix polynomial inversion to numerical contour integration. Their contour integrals are evaluated by means of the trapezoid rule, taking equally spaced points on the contour and taking care to find a contour that surrounds all the eigenvalues of the matrix. A primary limitation of the Kassam–Trefethen scheme is that the contour varies from problem-to-problem, with dependence on the spatial mesh, since it must contain all the eigenvalues of the matrix. This is problematical in general, outside of special test problems, because the spectrum is not easily known and as the spatial step goes to zero the spectrum is typically unbounded. We aim to develop an alternate solution to these computational difficulties. Their fourth-order ETDRK scheme requires inverting cubic matrix polynomials, which can cause serious numerical instability or computational difficulties because of the ill-conditioning, cf. [8, Section 6.2] [19]. We fix that problem by using a(2, 2)-Pad´e scheme for the matrix exponentials in a special form with partial fraction decomposition of the rational matrix functions which allows one instead to solve two well-condition linear problems.

How these schemes perform for problems with nonsmooth data has not been studied. ETDRK4 has been designed with sufficiently smooth data in mind; it is necessary to find a modification if one desires the scheme to handle the difficult problem of computing with irregular initial or boundary conditions. Here, at the start, we use in the ETDRK formulation a damping scheme with positivity-preserving property [33] to improve computational accuracy in the presence of spurious modes that come from irregular initial data, cf. [1,2,16,17,24–26,31,32,35].

Once we have developed the algorithm based on these modified schemes, we demonstrate the performance in solving various important nonlinear examples from the literature, the Allen–Cahn, and Robertson equation with one-dimensional diffusion, and a standard problem from Biochemistry. We utilize various spatial discretizations for the examples to demonstrate that this time-stepping method is compatible with a wide variety of approaches in a Method of Lines. Our formulation of the modified schemes is generally more accurate for problems with irregular data and computationally more efficient as compared to the aforementioned ETDRK4 schemes.

2. The reaction-diffusion system

Consider the following nonlinear initial boundary value problem:

ut+Au = F(u, t) in Ω, t ∈ 0, t = J, (1)

u =v on ∂Ω, t ∈ J, u(·, 0) = u0 in Ω,

where Ω is a bounded domain in Rdwith Lipschitz continuous boundary, A represents a uniformly elliptic operator, and F is a nonlinear reaction term that is C1(Rd+1, Rd). We shall depend on properties of A and F, based on an abstract formulation for the convenience of the development of the numerical scheme and its analysis. We assume that

A := − d X j,k=1 ∂ ∂xj  aj,k(x) ∂ ∂xk  + d X j =1 bj(x) ∂ ∂xj +b0(x),

(3)

where coefficients aj,k and bj are C∞(or sufficiently smooth) functions on Ω , aj,k =ak, j, b0 ≥ 0, and for some c0> 0 d X j,k=1 aj,k(·)ξjξk ≥c0|ξ|2, on Ω, for all ξ ∈ Rd.

The initial value problem(1)is reset to be posed in a Hilbert space X , as follows, for the reason that it makes the analysis simpler. Now consider A to be a linear, selfadjoint, positive definite closed operator with a compact inverse T, defined on a dense domain D(A) ⊂ X. The operator A could represent any of {Ah}0<h≤h0, obtained from a spatial

discretization and X could be X = Sh, an appropriate finite-dimensional subspace of L2(Ω), cf. [1,21,26,36].

We assume that the resolvent setρ(A) of A satisfies, for some α ∈ (0,π2), ρ(A) ⊃ Σα, Σα := {z ∈ C : α < | arg(z)| ≤ π, z 6= 0}.

Also, assume that there exists M ≥ 1 such that k(zI − A)−1k ≤M|z|−1, z ∈ Σα.

It follows that − A is the infinitesimal generator of an analytic semigroup {e−t A}t ≥0which is the solution operator for

(1)below, cf. [21,26]. There is a standard representation: E(t) := e−t A= 1

2πi Z

Λ

e−t z(zI − A)−1dz,

where Λ := {z ∈ C : | arg(z)| = θ}, oriented so that Im(z) decreases, for any θ ∈ (α,π2). By the Duhamel principle the exact solution can be written as

u(t) = E(t)v +Z t

0

E(t − s)F(u(s), s)ds. (2)

Let 0< k ≤ k0, for some k0, and tn =nk, 0 ≤ n ≤ N . Replacing t by t + k, using basic properties of E and by the

change of variable s − t = kτ, we can arrive at u(t + k) = E(k)u(t) + k

Z 1 0

E(k − kτ)F(u(t + kτ), t + kτ)dτ, which satisfies the recurrence formula

u(tn+1) = e−k Au(tn) + k

Z 1

0

e−k A(1−τ)F(u(tn+τk), tn+τk) dτ. (3)

3. The basic time-stepping scheme

The recurrence formula(3)for the exact solution can be the basis of different time-stepping schemes, depending upon how we approximate matrix exponential functions and integral. Cox and Matthews [3] developed time-stepping schemes by using polynomial formulae which give a multi-step or Runge–Kutta type higher-order approximations. This approach has a benefit of generating a family of high-order numerical schemes with potentially good performance, so long as a few computational difficulties, as pointed out by Kassam and Trefethen in [12] are resolved. Even the Kassam–Trefethen suggestions leave unresolved computational issues, especially related to the practical implementation of the numerical contour integration as well as choice of contour as the accuracy of the scheme is refined, because the spectrum of A will grow with the space mesh size and the location of the spectrum cannot typically be calculated automatically.

Several schemes based on Runge–Kutta time stepping were also developed in [3,12], but we now consider only the following fourth-order scheme:

un+1 =e−k Aun+ 1 k2(−A) −3F(u n, tn) h −4 + k A + e−k A(4 + 3k A + k2A2)i

(4)

+2(F(an, tn+k/2) + F(bn, tn+k/2)) h 2 − k A + e−k A(−2 − k A)i +F(cn, tn+k) h −4 + 3k A − k2A2+e−k A(4 + k A)i , (4) where an=e−k A/2un−A−1(e−k A/2−I)F(un, tn) bn=e−k A/2un−A−1(e−k A/2−I)F(an, tn+k/2) cn=e−k A/2an−A−1(e−k A/2−I)(2F(bn, tn+k/2) − F(un, tn)).

These schemes have computational challenges, depending on A, since it is necessary to compute(−A)−1,(−A)−2, (−A)−3 (multiplied by a polynomial in A), and e−k A. In [12], Kassam and Trefethen have shown that this

multi-step time-multi-stepping scheme suffers from numerical instability. They show that this scheme can be inaccurate for small eigenvalues due to cancellation error, while polynomial expansion above can be inaccurate for large values. The other three functions f1(k A) = k−2(−A)−3 h −4 + k A + e−k A(4 + 3k A + k2A2) i f2(k A) = k−2(−A)−3 h 2 − k A + e−k A(−2 − k A)i f3(k A) = k−2(−A)−3 h −4 + 3k A − k2A2+e−k A(4 + k A)i

are higher-order matrix polynomials and cancellation errors can affect the computations perhaps even worse. 4. The modified time-stepping schemes

In this section we introduce a new version of the fourth-order scheme given by Cox–Matthews [3] and Kassam–Trefethen [12] which damps spurious oscillations and does not require computation of higher powers of the matrix inverse. This new fourth-order scheme performs better in terms of accuracy and CPU time as compared to the ETDRK4 scheme [12] for large systems.

We use the notation Rr,s(z) for (r, s)-Pad´e approximation to e−z. We utilize eRr,s(z) for (r, s)-Pad´e approximation of e−z/2, cf. [5,6,9].

To modify the fourth-order scheme ETDRK4 of Cox–Matthews/Kassam–Trefethen, we use the fourth-order(2, 2)-Pad´e scheme to approximate e−z and obtain

un+1 = R2,2(k A)un+P1(k A)F(un, tn) +P2(k A) (F(an, tn+k/2) + F(bn, tn+k/2)) + P3(k A)F(cn, tn+k), (5) where R2,2(k A) = (12I − 6k A + k2A2)(12I + 6k A + k2A2)−1, P1(k A) = k(2I − k A)(12I + 6k A + k2A2)−1, P2(k A) = 4k(12I + 6k A + k2A2)−1, P3(k A) = k(2I + k A)(12I + 6k A + k2A2)−1.

In addition, we use the(2, 2)-Pad´e scheme to approximate e−z/2, as follows: an=Re2,2(k A)un+eP(k A)F(un, tn),

bn=Re2,2(k A)un+eP(k A)F(an, tn+k/2),

cn=Re2,2(k A)an+Pe(k A)(2F(bn, tn+k/2) − F(un, tn)),

with e

R2,2(k A) = (48I − 12k A + k2A2)(48I + 12k A + k2A2)−1,

e

(5)

It is desirable to employ an initial damping scheme in developing a better performing fourth-order smoothing type scheme, cf. [15,22,23,32,34]. Motivated by the aforementioned articles, we approximate the matrix exponential function using the(0, 3)-Pad´e scheme at a few initial steps, usually between two and four. The (0, 3)-Pad´e scheme is locally fourth order and its symbol has the nice property of monotonically approaching zero at infinity, which makes it a superior damping device to(1, 2)-Pad´e [22]. Two initial damping steps are sufficient [33], but four can be seen to be more effective in controlling spurious oscillations.

Thus, we arrive at the following scheme: un+1 = R0,3(k A)un+P1(k A)F(un, tn) +P2(k A) (F(an, tn+k/2) + F(bn, tn+k/2)) + P3(k A)F(cn, tn+k), (6) where R0,3(k A) = 6(6I + 6k A + 3k2A2+k3A3)−1, P1(k A) = k(I − k A)(6I + 6k A + 3k2A2+k3A3)−1, P2(k A) = 2k(I + k A)(6I + 6k A + 3k2A2+k3A3)−1, P3(k A) = k(I + k2A2)(6I + 6k A + 3k2A2+k3A3)−1, and an=eR0,3(k A)un+Pe(k A)F(un, tn), bn=eR0,3(k A)un+Pe(k A)F(an, tn+k/2),

cn=eR0,3(k A)an+Pe(k A)(2F(bn, tn+k/2) − F(un, tn)),

with e

R0,3(k A) = 48(48I + 24k A + 6k2A2+k3A3)−1,

e

P(k A) = k(24I + 6k A + k2A2)(48I + 24k A + 6k2A2+k3A3)−1,

5. The partial fraction form of the new scheme

The schemes of section Section4have higher-order matrix polynomials to invert and this can cause computational inaccuracies due to high condition numbers and roundoff error in computing the powers of the matrices, cf. [19]. We deal with this problem using partial fraction decomposition, as motivated by [7,14], and extended to the inhomogeneous parabolic case in [15,33]. This decomposition is very important in alleviating ill-conditioning problems because only backward Euler type solvers are needed. It also has the added advantage of being a parallel algorithm because it employs two different backward Euler type linear solves concurrently at each time step. It is moreover a linear scheme — even for the nonlinear reaction-diffusion problem.

We shall usew and c for the weights and poles, respectively. We shall consider the following two cases: Case1. If r < s (in this paper when r = 0 and s = 3), then to compute un+1, we can utilize

Rr,s(z) = q1 X j =1 wj z − cj +2 q1+q2 X j =q1+1 R  w j z − cj 

and the corresponding {Pi(z)}3i =1takes the form

Pi(z) = k q1 X j =1 wi j z − cj +2k q1+q2 X j =q1+1 R  w i j z − cj  , i = 1, 2, 3,

where Rr,s as well as Pi have q1real and 2q2nonreal polescj , with q1+2q2=s, andwj andwi j corresponding

(6)

To compute an, bn, and cn, we use e Rr,s(z) = q1 X j =1 e wj z −ecj +2 q1+q2 X j =q1+1 R  e wj z −ecj 

and the corresponding eP(z) as e P(z) = k q1 X j =1 e Ωj z −ecj +2k q1+q2 X j =q1+1 R eΩj z −ecj ! ,

where eRr,s as well as eP have q1real and 2q2nonreal polesecj . The corresponding weights for eRr,s are 

e wj and

for ePare eΩj.

Case2. If r = s (in this paper when r = 2 and s = 2), then to compute un+1, we utilize

Rs,s(z) = (−1)s+ q1 X j =1 wj z − cj +2 q1+q2 X j =q1+1 R  w j z − cj 

and the corresponding {Pi(z)}3i =1takes the form

Pi(z) = k q1 X j =1 wi j z − cj +2k q1+q2 X j =q1+1 R  w i j z − cj  , i = 1, 2, 3,

where Rs,sas well as Pi have q1real and 2q2nonreal polescj , with q1+2q2=s, andwj andwi j corresponding

weights.

To compute an, bn, and cn, we use

e Rr,s(z) = (−1)s + q1 X j =1 e wj z −ecj +2 q1+q2 X j =q1+1 R  e wj z −ecj 

and the corresponding eP(z) as e P(z) = k q1 X j =1 e Ωj z −ecj +2k q1+q2 X j =q1+1 R eΩj z −ecj ! , where eRs,s as well as eP have q1real and 2q2nonreal poles



ecj . The corresponding weights for Rer,s are 

e wj and

for ePare eΩj.

5.1. The serial/parallel algorithm

This section contains a description of the algorithm incorporating the partial fraction splitting technique. The primary purpose of the solution procedure here is to efficiently implement the scheme on a serial machine. The algorithm may, however, be implemented on a two-processor parallel computer, although the implementation and speed-up may involve many other issues, such as communication between multiple processors.

For i = 1, . . . , q1+q2, we solve the following:

1. To compute an, we can use

(k A −eciI)Nai =weiun+k eΩiF(un, tn), for N ai and then

an= q1 X i =1 N ai+2 q1+q2 X i =q1+1 R(Nai) if r < s,

(7)

or an=(−1)sun+ q1 X i =1 N ai+2 q1+q2 X i =q1+1 R(Nai) if r = s. 2. To compute bn, we use (k A −eciI)Nbi =ewiun+k eΩiF(an, tn+k/2), for N biand then

bn= q1 X i =1 N bi +2 q1+q2 X i =q1+1 R(Nbi) if r < s or bn=(−1)sun+ q1 X i =1 N bi+2 q1+q2 X i =q1+1 R(Nbi) if r = s.

3. Similarly, to compute cn, we know that

(k A −eciI)Nci =weian+k eΩi(2F(bn, tn+k/2) − F(un, tn)), for N ciand then

cn= q1 X i =1 N ci+2 q1+q2 X i =q1+1 R(Nci) if r < s or cn=(−1)san+ q1 X i =1 N ci +2 q1+q2 X i =q1+1 R(Nci) if r = s.

4. Finally, to compute the value un+1, first solve

(k A − ciI)Nui =wiun+kw1iF(un, tn)

+kw2i(F(an, tn+k/2) + F(bn, tn+k/2)) + kw3iF(cn, tn+k),

for N ui and then compute

un+1= q1 X i =1 N ui +2 q1+q2 X i =q1+1 R(Nui) if r < s or un+1=(−1)sun+ q1 X i =1 N ui+2 q1+q2 X i =q1+1 R(Nui) if r = s.

In order to implement this fourth-order smoothing scheme in its partial fraction form, we have computed the poles and weights of the Pad´e schemes and of the corresponding Pi0s, which are as follows:

(i) For R0,3(z), {Pi(z)}3i =1, eR0,3(z), andPe(z): q1=q2=1,

c1= −1.5960716379833215231, c2= −0.7019641810083392384 − i 1.80733949445202185357, w1=1.4756865177957207165, w2= −0.7378432588978603582 + i 0.36501784080102847244, w11 =0.6384979859006401044, w12 = −0.3192489929503200522 − i 0.11871432867482273937, w21 = −0.2932049599374663978,

(8)

w22=0.14660247996873319890 + i 0.480773884550331127044 w31=0.87248604623675318388, w32=0.06375697688162340805 − i 0.41993757775015971496 ec1= −3.19214327596664304622, ec2= −1.40392836201667847688 − i 3.61467898890404370715, e w1=2.95137303559144143303, e w2= −1.475686517795720716519 + i 0.730035681602056944888 e Ω1=0.924574112262460492691, e Ω2=0.037712943868769753654 + i 0.4228958626756797997442.

(ii) For R2,2(z), {Pi(z)}3i =1, eR2,2(z), andeP(z): q1=0, q2=1,

c1= −3.0 + i 1.73205080756887729352, w1= −6.0 − i 10.3923048454132637611, w11= −0.5 − i 1.44337567297406441127, w21= −i 1.15470053837925152901, w31=0.5 + i 0.28867513459481288225, ec1= −6.0 + i 3.4641016151377545870548, e w1= −12.0 − i 20.78460969082652752232935, e Ω1= −i 3.46410161513775458705. 6. Numerical experiments

In this section we shall demonstrate the performance of the new high-order smoothing schemes by implementing them to solve three nonlinear problems. These problems have important practical significance and have become rather standardized as algorithm tests. The first is a reaction-diffusion equation arising in biochemistry. It shows the difficulties in computing with high-order methods and nonsmooth data: when high-order methods are used to solve numerical problems with nonsmooth or mismatched initial boundary data, spurious oscillations can appear in the numerical results and remedy is usually required to preserve accuracy, cf. [2,20,22,23,25,32]. This problem has nonsmooth initial data in the form of mismatched initial boundary conditions. The second problem can be found also in [12]; it is the well-known Allen–Cahn equation with constant Dirichlet boundary conditions. The third equation is the Robertson equation with one-dimensional diffusion, which is a very stiff problem.

For these experiments we use a variety of types of spatial discretizations in order to demonstrate the flexibility of the proposed fourth-order time-stepping scheme. For example, in our experiments we have used centered difference schemes as well as spectral methods. Finite element schemes have also been tested. The important issue at hand focuses on the time discretization, especially its convergence properties. Hence, as in [12], numerical experiments for tables of convergence have been carried out with spatial mesh size sufficiently small for the spatial error to be negligible in the rate computations. The error has been calculated based on using the ETDRK4 scheme with very small step sizes to give for each test problem a data set to use as if it were the ‘exact’ solution.

6.1. A problem from biochemistry

∂u ∂t =d ∂u2 ∂x2 − u 1 + u, x ∈ [0, 1], t > 0, (7) u(x, 0) = 1, u(0, t) = (1, t) = 0.

There is a discontinuity between initial and boundary conditions, which is well known to introduce spurious oscillations [22,23,26,35]. We solve this problem with the new smoothing scheme using a fourth-order centered finite difference method to approximate the spatial derivative.

(9)

(a)(2, 2)-Pad´e. (b) Smoothing scheme.

Fig. 1. Time evolution graph of problem 6.1 using(2, 2)-Pad´e and the new ETDRK–Pad´e smoothing scheme with d = 1, h = 0.0125, k = 0.01, and t = 0.2.

Fig. 1is the graph of problem 6.1 using the scheme(2, 2)-Pad´e on the left, and on the right is a picture of the results of the new smoothing scheme, where four initial steps of(0, 3)-Pad´e are employed. Unwanted oscillations can be seen near boundaries when(2, 2)-Pad´e scheme is used, which are killed off by the damping scheme in the second part.

6.2. The Allen–Cahn equation

This is a well-known reaction-diffusion equation with solution regions near ±1 that are flat and where the interface does not change for a relatively long period of time, then changes suddenly. The equation is:

∂u ∂t = ∂u2 ∂x2+u − u 3, x ∈ [−1, 1], (8) u(x, 0) = 0.53x + 0.47 sin(−1.5πx), t > 0, u(−1, t) = −1, u(1, t) = 1.

We utilize a Chebyshev spectral method [12,4,13,27,28] to approximate spatial derivative to high accuracy and the fourth-order Pad´e-based time-stepping schemes to solve the corresponding problem in time. We also use the algorithm and Matlab code given by Kassam and Trefethen in [12] to solve this problem and compare its result with the results of our scheme.

Fig. 2contains the graphs of numerical approximations to the Allen–Cahn equation using Kassam and Trefethen method given in [12] and the damped Pad´e scheme. Sinceε is so small, the Kassam–Trefethen scheme has some advantage in accuracy, where the diffusivity plays a small role and the equation has a more ODE character.

In Fig. 3we compare the numerical results with M = 80 (M being the number of of space steps), t = 3, and different values of . With  = O(1), the new Pad´e scheme functions better than the ETDRK4 method.Table 1

contains essentially the same comparison of the numerical results in a format with a tabular arrangement of the data. 6.3. The Robertson equation with one-dimensional diffusion

We consider the Robertson equation with one-dimensional diffusion (cf. [10]), ∂u ∂t = −0.04u + 104vw + α ∂u2 ∂x2 ∂v ∂t =0.04u − 3 × 107v2+β ∂v2 ∂x2 ∂w ∂t =3 × 107v2+γ ∂w2 ∂x2 (9)

(10)

(a) Kassam–Trefethen method.

(b) ETDRK–Pad´e Smoothing scheme.

Fig. 2. Time evolution graph of problem 6.2 using the Kassam–Trefethen and the new ETDRK–Pad´e smoothing scheme with M = 50, t = 70,  = 0.01.

Table 1

Example 6.2. Numerical errors for the Allen–Cahn equation with M = 50, t = 2 and different values of

 k Error ETDRK4 CPU T (s) Error Pad´e CPU T (s)

1/10 0.0010655 0.081 0.000194044 0.046 5 1/100 6.0562 × 10−6 0.147 6.4113 × 10−8 0.126 1/1000 4.9577 × 10−8 0.812 2.8939 × 10−10 0.787 1/10 0.0000342143 0.082 0.000037069 0.062 0.5 1/100 2.9147 × 10−7 0.145 2.2645 × 10−7 0.111 1/1000 1.5361 × 10−9 0.805 7.9256 × 10−10 0.777 1/10 2.57761 × 10−6 0.091 0.0141798 0.056 0.05 1/100 5.32591 × 10−9 0.156 0.00384401 0.12 1/1000 7.36817 × 10−11 0.81 0.000411391 0.771

The ETDRK4 scheme is described in [12] and ‘Pad´e’ refers to the new ETDRK–Pad´e scheme. Whenε is very small, ETDRK4 has an accuracy advantage, while forε larger than 0.05 the new scheme is more accurate and requires less computing time.

(11)

(a) = 5. (b) = 5.

(c) = 1. (d) = 1.

Fig. 3. Example 6.2. Numerical errors on the Allen–Cahn equation with M = 50, t = 2 and different values of, cf.Table 1. The ETDRK4 scheme is described in [12] and ‘Pad´e’ refers to the new Pad´e-based exponential time differencing scheme of Section5.

for 0 ≤ x ≤ 1, 0 ≤ t ≤ 5 with boundary and initial conditions u(x, 0) = 1 + sin(2πx), v(x, 0) = w(x, 0) = 0,

u(0, t) = u(1, t) = 1, v(0, t) = v(1, t) = w(0, t) = w(1, t) = 0.

This is a nonlinear system of equations with widely varying diffusion coefficients. The initial and boundary conditions are mismatched, which produces spurious oscillations in most computational algorithms.

We demonstrate the performance with different diffusion coefficientsα, β and γ , using a second-order centered difference approximation with very small fixed spatial mesh size h. The proposed smoothing scheme is tested with regard to its time-stepping properties by several different values of k in Table 3. The results with time step sizes k = 10001 and 100001 depend on the ratios of coefficients, for example ifα is large relative to the others (α = 10, β = γ = 0.1).

In [3,12], the ETDRK4 scheme is presented as a fourth-order Runge–Kutta type method. Experience with this method solving nonlinear problems indicates that it sometimes does not show the full order. The proposed method of this article shows a better convergence rate in many cases, yet we do not see a full table of fourth order, likely due to the nonlinear effects, seeTables 2–4.

(12)

Table 2

Example 6.3. Numerical errors using ETDRK4 on the Robertson equation with M = 100, t = 5 and different values ofα, β and γ

Diffusion coefficients k Error ETDRK4 CPU T (s)

α = β = γ = 10 1/1000 1.56429 27.19 1/10000 0.486599 262.13 1/100000 5.4644 × 10−11 2646.42 α = β = γ = 2 1/1000 0.783619 27.64 1/5000 0.0504369 134.6 1/25000 4.6661 × 10−11 661.07 α = 10, β = 1, γ = 0.1 1/1000 1.56429 27.5 1/10000 0.486599 141.01 1/100000 2.30309 × 10−8 1425.97 Table 3

Example 6.3. Numerical errors using the new ETDRK–Pad´e scheme on the Robertson equation with M = 100, t = 5 and different values ofα, β andγ

Diffusion Coefficients k Error Pad´e CPU T (s)

α = β = γ = 10 1/1000 1.65005 × 10−8 26.4 1/10000 2.23601 × 10−12 261.24 α = β = γ = 2 1/800 2.55161 × 10−11 24.2 1/1000 8.34935 × 10−12 26.49 α = 10, β = 1, γ = 0.1 1/1000 1.65005 × 10−6 30.34 1/10000 1.61170 × 10−7 263.24 1/100000 4.06851 × 10−8 2297.96 Table 4

Example 6.3. Numerical errors using ETDRK4 and the ETDRK–Pad´e scheme on the Robertson equation with M = 200, t = 5,α = 10, β = 1 andγ = 0.1

k Error ETDRK4 CPU T (s) Error Pad´e CPU T (s)

1/1000 2.40345 174.48 0.0000144064 153.97

1/10000 1.07604 1608.72 2.21624 × 10−7 1535.55

1/100000 0.0504369 19393.70 5.12850 × 10−8 15962.62

Acknowledgements

The first author was partially supported by an REP Grant, Middle Tennessee State University. The second author was partially supported by a grant from the Junta Castilla y Le´on (Orden EDU 1054/2006 and EDU 1946/2006), “Ayudas a la movilidad de los profesores e investigadores de las universidades y centros de investigaci´on de Castilla y Le´on fuera del territorio espa˜nol”.

References

[1] J.H. Bramble, J.E. Pasciak, P.H. Sammon, V. Thom´ee, Incomplete iterations in multistep backward difference methods for parabolic problems with smooth and nonsmooth data, Math. Comp. 52 (1989) 339–367.

[2] D. Britz, L.K. Osterby, The effect of the discretization of the mixed boundary conditions on the numerical stability of the Crank–Nicolson algorithm, Comput. Chem. 21 (6) (1997) 391–401.

[3] S.M. Cox, P.C. Matthews, Exponential time differencing for stiff systems, J. Comput. Phys. 176 (2002) 430–455.

[4] M.T. Darvishi, F. Khani, S. Kheybari, Spectral collocation solution of a generalized Hirota–Satsuma coupled KdV equation, Int. J. Comput. Math. 84 (2007) 541–552.

[5] B.L. Ehle, A-stable methods and Pad´e approximations to the exponential, SIAM J. Math. Anal. 4 (1973) 671–680.

[6] H. Fujita, N. Saito, T. Suzuki, Operator Theory and Numerical Methods, in: Studies in Math. & Appl., vol. 30, North-Holland, Elsevier Science, Amsterdam, 2001.

(13)

[7] E. Gallopoulos, Y. Saad, On the parallel solution of parabolic equations, Preprint, CSRD Report 854, Univ. of Illinois, Urbana-Champaigne, 1988.

[8] G. Golub, J.M. Ortega, Scientific Computing, An Introduction with Parallel Computing, Academic Press, San Diego, CA, 1993.

[9] E. Hairer, G. Wanner, Solving Ordinary Differential Equations II: Stiff and Differential–Algebraic Problems, Springer-Verlag, Berlin, 1991. [10] M. Hochbruck, Ch. Lubich, H. Selhofer, Exponential integrators for large systems of differential equations, SIAM J. Sci. Comput. 19 (1998)

1552–1574.

[11] L.Gr. Ixaru, G. Vanden Berghe, H. De Meyer, Frequency evaluation in exponential fitting multistep algorithms for ODEs, J. Comput. Appl. Math. 140 (2002) 423–434.

[12] A.K. Kassam, Ll.N. Trefethen, Fourth-order time stepping for stiff PDEs, SIAM J. Sci. Comput. 26 (2005) 1214–1233.

[13] A.H. Khater, R.S. Temsah, Numerical solution of some nonlinear evolution equations by Chebyshev spectral collocation methods, Int. J. Comput. Math. 84 (3) (2007) 305–316.

[14] A.Q.M. Khaliq, E.H. Twizell, D.A. Voss, On parallel algorithms for semidiscretized parabolic partial differential equations based on subdiagonal Pad´e approximations, Numer. Methods Partial Differential Equations 9 (1993) 107–116.

[15] A.Q.M. Khaliq, B.A. Wade, M. Yousuf, J. Vigo-Aguiar, High order smoothing schemes for inhomogeneous parabolic problems with applications to Nonsmooth Payoff in option pricing, Numer. Methods Partial Differential Equations 23 (5) (2007) 1249–1276.

[16] T.M. Kohler, D.A. Voss, Second-order methods for diffusion-convection equations, Comm. Numer. Methods Engrg. 15 (1999) 689–699. [17] M.-N. Le Roux, Semidiscretization in time for parabolic problems, Math. Comp. 33 (1979) 919–931.

[18] J. Mart´ın-Vaquero, J. Vigo-Aguiar, Exponential fitting BDF algorithms: Explicit and implicit 0-stable methods, J. Comput. Appl. Math. 192 (2006) 100–113.

[19] C. Moler, C. Van Loan, Nineteen dubious ways to compute the exponential of a matrix, twenty-five years later, SIAM Rev. 45 (2003) 3–49. [20] O. Osterby, Five ways of reducing the Crank–Nicolson oscillations, BIT Numer. Math. 192 (2003) 257–290.

[21] A. Pazy, Semigroups of Linear Operators and Applications to Partial Differential Equations, in: Appl. Math. Ser., vol. 44, Springer-Verlag, Berlin, 1983.

[22] R. Rannacher, Discretization of the heat equation with singular initial data, Zeit. Ang. Math. Meth. (ZAMM) 62 (1982) 346–348. [23] R. Rannacher, Finite element solution of diffusion problems with irregular data, Numer. Math. 43 (1984) 309–327.

[24] A. Sandu, J.G. Verwer, J.G. Blom, E.J. Spee, G.R. Carmichael, Benchmarking stiff ODE solvers for atmospheric chemistry problems II: Rosenbrock solvers, Atm. Env. 31 (1997) 3459–3472.

[25] J. Strutwolf, D. Britz, O. Osterby, Damping of Crank–Nicolson error oscillations, Comput. Biol. Chem. 27 (2003) 253–263. [26] V. Thom´ee, Galerkin Finite Element Methods for Parabolic Problems, in: Ser. Comp. Math., vol. 25, Springer-Verlag, Berlin, 1997. [27] Ll.N. Trefethen, Spectral methods in MATLAB. Available at:http://web.comlab.ox.ac.uk/oucl/work/nick.trefethen/pdetext.html.

[28] Ll.N. Trefethen, Finite differences and spectral methods for ordinary and partial differetial equations. Available at:

http://web.comlab.ox.ac.uk/oucl/work/nick.trefethen/pdetext.html.

[29] J. Vigo-Aguiar, J. Mart´ın-Vaquero, R. Criado, On the stability of exponential fitting BDF algorithms, J. Comput. Appl. Math. 175 (2005) 183–194.

[30] J. Vigo-Aguiar, J. Mart´ın-Vaquero, B. Wade, Adapted BDF algorithms applied to parabolic problems, Numer. Methods Partial Differential Equations 23 (2) (2007) 350–365.

[31] D. Voss, A.Q.M. Khaliq, Time-stepping algorithms for semidiscretized linear parabolic PDEs based on rational approximations with distinct real poles, Adv. Comput. Math. 6 (1996) 353–363.

[32] B.A. Wade, A.Q.M. Khaliq, On smoothing of the Crank–Nicolson scheme for nonhomogeneous parabolic problems, J. Comput. Meth. Sci. Eng. 1 (2001) 107–124.

[33] B.A. Wade, A.Q.M. Khaliq, M. Siddique, M. Yousuf, Smoothing with positiviy-preserving Pad´e schemes for parabolic problems with nonsmooth data, Numer. Methods Partial Differential Equations 21 (3) (2005) 553–573.

[34] B.A. Wade, A.Q.M. Khaliq, M. Yousuf, J. Vigo-Aguiar, R. Deininger, On smoothing of the Crank–Nicolson scheme and higher order schemes for pricing barrier options, J. Comput. Appl. Math. (JCAM) 204 (1) (2007) 144–158.

[35] L.B. Wahlbin, A remark on parabolic smoothing and the finite element method, SIAM J. Numer. Anal. 17 (1980) 33–38.

[36] Y. Yan, Smoothing properties and approximation of time derivatives for parabolic equations: Constant time steps, IMA J. Numer. Anal. 23 (2003) 465–487.

References

Related documents

1- In addition to the general definition offered above, recall that economic freedom can be thought of as a collection of various sub headings, including size

This study aims to assess the incidence rate and clinical consequences of myelotoxicity and hepatotoxicity detected with the current laboratory monitoring regimen in IBD patients

We argue that these cultural differences are responsible for the challenges that students face in approaching senior science and mathematics courses in small rural high schools,

characterised the distribution of legal music downloads and find that it is heavily skewed despite the predicted long-tail effect due to the expansion of online information tools that

When the grant started in 2012, GEAR UP started working with seventh graders at Northern Middle School, and that class of students is being followed throughout the duration of

Letters, Notes, Franks, &amp;c, mostly of the year

If this option is selected, the following applies: Where FAILURE of a covered component is attributable to fair wear and tear, the benefit in terms of policy shall be according to

Experimental results shows that the parameters of induction motor can be monitored using GSM which costs less, provides higher accuracy as well as safe and motorgets fully