arXiv:math/0608757v2 [math.NA] 26 Mar 2007

5 downloads 47 Views 326KB Size Report
Mar 26, 2007 - arXiv:math/0608757v2 [math.NA] 26 Mar 2007. M anuscript subm itted to. W ebsite: w w w .aim Sciences.org. DCDS. Supplem ent V olum e ...
arXiv:math/0608757v2 [math.NA] 26 Mar 2007

Manuscript submitted to DCDS Supplement Volume 2007

Website: www.aimSciences.org pp. 1–10

LIE GROUP STABILITY OF FINITE DIFFERENCE SCHEMES Emma Hoarau 1 , Claire David 2 , Pierre Sagaut 1

2

and Thiˆ en-Hiˆ ep Lˆ e

1

ONERA, Computational Fluid Dynamics and Aeroacoustics Department (DSNA) BP 72, 29 avenue de la Division Leclerc 92322 Chˆ atillon Cedex, France 2 Universit´ e Pierre et Marie Curie-Paris 6 Laboratoire de Mod´ elisation en M´ ecanique, UMR CNRS 7607 Boˆıte courrier n0 162, 4 place Jussieu, 75252 Paris, cedex 05, France

Abstract. Differential equations arising in fluid mechanics are usually derived from the intrinsic properties of mechanical systems, in the form of conservation laws, and bear symmetries, which are not generally preserved by a finite difference approximation, and leading to inaccurate numerical results. This paper develops a method that enables us to build a scheme that preserves those symmetries. The method is based on the concept of the differential approximation. A comparison of numerical performance of the invariant schemes, standard ones and higher order one has been realised for the Burgers equation.

1. Introduction. Lie groups were introduced by Sophus Lie in 1870 in order to study the symmetries of differential equations, yielding thus analytical solutions. Literature provides substantial works and applications, [3], [4]. Symmetry groups can be determined by an automatic procedure, but it often turn out to be tedious and induce errors. A large amount of packages using symbolic manipulations of mathematical expressions have been written. We mention here some of those works: Schwartz [17], Vu and Carminati[14], Herod [15], Baumann [16], Cantwell [5]. In this paper we are interesting in the application of the theory of Lie group to numerical analysis. Finite difference equations used to approximate the solutions of a differential equation generally do not respect the symmetries of the original equation, and can lead to inaccurate numerical results. Various techniques, that enable us to build a scheme preserving the symmetries of the original differential equation, have been studied. One of these techniques consists in constructing an invariant scheme from a given one by applying the method of the moving frame in [7], [8]. Another one consists in constructing an invariant scheme with the help of the discret invariants of its symmetry group [9], [10], [11], [12], [13] and provides the building of symmetry-adapted meshes, in preserving the differential equation symmetries. This technique is based on a direct study of the symmetries of difference equations and lattices. Yanenko [2] and Shokin [1], proposed to apply the Lie group theory to finite difference equations by means of the differential approximation. Thus, they have set down conditions under which the differential representation of a finite difference scheme preserves the group of continuous symmetries of the original differential equation. They provide a dissipative scheme, which is called invariant scheme. The resulting scheme is independent of any change of the reference frame, and its differential representation is invariant under the symmetries of the original equation. Ames, Postell and Adams [6] have already used the approach of Yanenko and Shokin to present invariant schemes in which terms are added to the original 1

ˆ ˆ LE ˆ EMMA HOARAU, CLAIRE DAVID, PIERRE SAGAUT AND THIEN-HI EP

2

difference scheme. They showed that, in specific cases, the invariant scheme is as accurate as high order numerical methods. In this paper, we focus on the last approach. The method is implemented on some standard schemes for the Burgers equation. A comparison is made between the numerical solutions of these schemes and the invariant scheme. The paper is organized as follows. Definitions and invariance condition for differential equations are provided in section 2. Section 3 recalls the approach of Yanenko and Shokin. Section 4 concentrates on classical schemes. In section 5, we present a method that enables us to build an invariant scheme with respect to an otherwise lost symmetry. 2. Definitions and invariance condition for differential equations. A rparameter Lie group Gr of point transformations in the Euclidean space E(x, u) can be written under the form: Gr = {x∗i = φi (x, u, a); u∗j = ϕj (x, u, a), i = 1, . . . , m; j = 1, . . . , n}

(1)

Consider a system of lth -order differential equations: ` ´ F λ x, u, u(k1 ) , u(k1 ,k2 ) , . . . , u(k1 ...kl ) = 0, λ = 1, . . . , q

(2)

Denote by u(k1 ...kp ) the vector, the components of which are partial derivatives of (k ...k ) ∂ p uj order p, namely, uj 1 p = ∂xk ...∂x j = 1, . . . , n and k1 , . . . , kp ∈ {1, . . . , m}. kp 1 Denote by x = (x1 , . . . , xm ) the independent variables, u = (u1 , . . . , un ) the dependent variables, and (xk1 . . . xkp ) a set of elements of the independent variables.  Equation (2) is a subset of the Euclidean space E x, u, u(k1 ) , . . . , u(k1 ...kl ) . In order to take into account the derivative terms involved in the differential equation, the action of the group Gr of transformations in the space E x, u) needs to be extended to the space of the derivatives of the dependent variables. e (l) a r-parameter Lie group of point transformation in the space Denote by G r  E x, u, u(k1 ) , . . . , u(k1 ...kl ) of the independent variables, dependent variables and the derivative of the dependent variables with respect to the independent ones. The lth -prolongation operator of Gr is: ∂ ∂ ∂ ∂ α,(k ) α,(k ...k ) α e (l) + ηjα (x, u) + σj 1 + · · · + σj 1 l , L α = ξi (x, u) ∂xi ∂uj ∂uj (k1 ) ∂uj (k1 ...kl ) i = 1, . . . , m; j = 1, . . . , n; α = 1, . . . , r. α,(k1 )

ξiα , ηjα , σj

ξiα =

α,(k1 ...ko )

and σj

∂φi ˛˛ , ˛ ∂aα a=0

α,(k1 ...ko )

σj

where:

=

(3)

are given by:

ηjα =

∂ϕj ˛˛ , ˛ ∂aα a=0

α,(k ...k ) Dσj 1 o−1

Dxko



m X i=1

α,(k1 )

σj

=

Dηjα

Dxk1



m X ∂uj Dξiα ∂xi Dxk1 i=1

Dξiα ∂ o uj , o = 2, . . . , l ∂xi ∂xk1 . . . ∂xko−1 Dxko

n X

D ∂ ∂uj ∂ = + Dxk ∂xk ∂xk ∂uj j=1

e(l) The system of lth -order differential equations is invariant under the group G r if and only if: ˛ λ˛ e (l) L α F ˛

F λ =0

= 0,

α = 1, . . . , r; λ = 1, . . . , q

(4)

LIE GROUP STABILITY OF FINITE DIFFERENCE SCHEMES

3

3. Lie group for the differential approximation. The finite difference scheme, which approximates the differential system (2), can be written as: Λλ (x, u, h, T u) = 0,

λ = 1, . . . , q

(5)

where h = (h1 , h2 , . . . , hm ) denotes the space step vector, and T = (T1 , T2 , . . . , Tm ) the shift-operator along the axis of the independent variables, defined by: Ti [u](x1 , x2 , . . . , xi−1 , xi , xi+1 , . . . , xm ) = u(x1 , x2 , . . . , xi−1 , xi + hi , xi+1 , . . . , xm ).

(6)

Definition 1. The differential equation: ` ´ P λ x, u, u(k1 ) , . . . , u(k1 ...kl′ )

=

` ´ F λ x, u, u(k1 ) , . . . , u(k1 ...kl ) +

s X m X

β=1 i=1

(k1 ) (hi )lβ Rλ ,...,u i (x, u, u

(k1 ...kl′

λ,i

)

),

λ = 1, . . . , q; l′ = max(λ,i) l′ λ,i

(7)

th

is called the s -order differential approximation of the finite difference scheme (5). In the specific case s = 1, the above equation is called the first differential approximation. Equation (7) is obtained from equation (5) by applying Taylor series expansion to the components of T u about the point x = (x1 , . . . , xm ) and truncating the expansion to a given finite order. Denote by G′r a group of transformations in the space E(x, u, h): G′r = {x∗i = φi (x, u, a); u∗j = ϕj (x, u, a); h∗i = ψi (x, u, h, a), i = 1, . . . , m; j = 1, . . . , n} ′

by Lα the basis infinitesimal operator of Lα ′ = ξiα (x, u)

∂ ∂ ∂ + ηjα (x, u) + ζiα (x, u, h) , ∂xi ∂uj ∂hi

where ζiα = ′

(8)

G′r : α = 1, . . . , r

∂ψi ˛˛ , α = 1, . . . , r ˛ ∂aα a=0

(9)

(10)

) e (l and by G a group of transformation in the space E(x, u, h, u(k1 ) , . . . , u(k1 ...kl′ ) ). r ′ ) th e (l The l′ -prolongation operator of G′r , L α can be written as: ′

′)

e (l L α

= Lα ′ +

n X l X

α,(k1 ...kp )

σj

∂ (k ...k ) ∂uj 1 p

j=1 p=1

(11) ′

) e(l Theorem 1. The differential approximation (7) is invariant under the group G r if and only if

or

′ ´˛˛ ) λ` e (l L (x, u, u(k1 ) , . . . , u(k1 ...kl′ ) ˛ α P

P λ =0

s m h ”i˛ ′ “ X X ˛ λ e (l) e (l ) L (hi )lβ Rλ ˛ α F + Lα i

β=1 i=1

P λ =0

= 0,

= 0,

α = 1, . . . , r; λ = 1, . . . , q

α = 1, . . . , r; λ = 1, . . . , q

(12)

(13)

Theorem 1 provides the equations which enable us to obtain the symmetry groups of the differential approximation. The unknowns are the infinitesimal functions ηjα , α,(k ,...,k )

o , j = 1, . . . , n, ξiα and ζiα , i = 1, . . . , m; j = 1, . . . , n. The infinitesimals σj 1 α α are functions of the partial derivatives of ηj and ξi . Equation (13) is simplified by means of the condition (7). They lead to an overdetermined system of differential equations, the unknowns of which are the infinitesimal functions.

4

ˆ ˆ LE ˆ EMMA HOARAU, CLAIRE DAVID, PIERRE SAGAUT AND THIEN-HI EP

4. The specific case of the Burgers equation. 4.1. Symmetries of the Burgers equation. The Burgers equation can be written as: F (x, t, u, ν, ux , ut , uxx ) = ut + u ux − ν uxx = 0

(14)

where ν ≥ 0 is the dynamic viscosity. Denote by G a group of transformations of the Burgers equation in the space E(x, t, u, ν) of the independent variables (x, t), the dependent variable u, and the viscosity ν. The viscosity is taken as a symmetry variable in order to enable us to take into account variations of the Reynolds number. G is a set of transformations acting smoothly on the space E(x, t, u, ν). The six-dimensional Lie algebra of the group G is generated by the following operators: ∂ ∂ ∂ ∂ ∂ , L2 = , L3 = x + 2t −u ∂x ∂t ∂x ∂t ∂u ∂ ∂ ∂ ∂ ∂ ∂ ∂ ∂ L4 = xt + t2 + (−ut + x) , L5 = t + , L6 = −t +u +ν ∂x ∂t ∂u ∂x ∂u ∂t ∂u ∂ν L1 =

(15)

which respectively correspond to: • the space translation : (x, t, u, ν) 7−→ (x + ǫ1 , t, u, ν); • the time translation : (x, t, u, ν) 7−→ (x, t + ǫ2 , u, ν); • the dilatation : (x, t, u, ν) 7−→ (ǫ3 x, ǫ23 t, ǫ−1 3 u, ν); “ ” • the projective transformation : (x, t, u, ν) 7−→ 1−ǫx 4 t , 1−ǫt 4 t , xǫ4 + u(1 − ǫ4 t), ν ; • the Galilean transformation : (x, t, u, ν) 7−→ (x + ǫ5 t, t, u + ǫ5 , ν); • the dilatation : (x, t, u, ν) 7−→ (x, ǫ−1 6 t, ǫ6 u, ǫ6 ν). (ǫi )i=1,...,6 are constants. 4.2. Symmetries of first differential approximations. Denote by h the mesh size, τ the time step, Nx the number of mesh points, Nt the number of time steps, and uni , i ∈ {0, . . . , Nt }, n ∈ {0, . . . , Nx } the discrete approximation of u(ih, nτ ). In order to shorten the size of the finite difference scheme expressions, we use the following notations introduced by Hildebrand in [18]: un δ(un i )= δ

+

(un i)

i+ 1 2

=

− un

1 i− 2

h n un i+1 − ui h

un , ,

µ(un i )= δ



(un i )

=

i+ 1 2

+ un

1 i− 2

2 n un i − ui−1 h

,

n E α un i = ui+α

The Burgers equation can be discretized by means of: • the FTCS (forward-time and centered-space) scheme: un+1 − un δ2 µδ ` u2 ´n i i − ν 2 un + =0 τ h 2 i h i

• the Lax-Wendroff scheme: un+1 − un δ2 µδ ` u2 ´n i i − ν 2 un + + An i =0 i τ h 2 h i

where: An i =

− +

` 2 ´n i ν 2 τ h δ 4 n i 1 τ h 1 n + ` u2 ´n − u − E − 2 un E 2 ui δ − u i δ i 2 2h 2 2 i 2 h4 i i h h 1 n 1 ντ µδ3 ` u2 ´n i ντ −1 n 2 −1 n 2 E 2 un i δ (E 2 ui ) − E 2 ui δ (E 2 ui ) + 3 2h 2 h3 2 i

• the Crank-Nicolson scheme: un+1 − un δ2 µδ h` u2 ´n+1 ` u2 ´n i i i + − ν 2 [un+1 + + un i ]=0 i τ h 2 i 2 i h

LIE GROUP STABILITY OF FINITE DIFFERENCE SCHEMES

5

Linear stability properties and the related orders of approximation are displayed in  ντ ahCF L τ ∗ , S = and S = ν + ). Table 1 (where CF L = aτ h h2 2 h2 Scheme Stablility condition Error FTCS S ≤ 21 , CF L ≤ 1 O(τ, h2 ) 1 Lax-Wendroff S ∗ ≤ 2 , CF L ≤ 1 O(τ 2 , h2 ) Crank-Nicolson unconditional stability O(τ 2 , h2 ) Table 1. Table of finite difference schemes

Consider ui n as a function of the time step τ , and of the mesh size h, expand it at a given order by means of its Taylor series, and neglect the o(τ α ) and o(hβ ) terms, where α and β depend on the order of the schemes. This yields the differential representation of the finite difference equation. The following differential representations are obtained: • for the FTCS scheme: ut +

τ h2 2 νh2 1 2 (u )x − ν uxx + g2 + (u )xxx − uxxxx = 0 2 2 12 12

• for the Lax-Wendroff scheme: ut +

1 2 τ2 h2 2 νh2 (u )x − ν uxx + g3 + (u )xxx − uxxxx = 0 2 6 12 12

• for the Crank-Nicolson scheme: ` g3 ´ h2 2 1 2 1 ν νh2 (u )x − νuxx + τ 2 + (g12 + ug2 )x − (g2 )xx + (u )xxx − uxxxx = 0 2 6 4 4 12 12 ` u2 ´ ` ´ ` ´ ` ´ ` ´ where g1 = − 2 x + νuxx , g2 = − g1 u x + ν g1 xx , g3 = − g2 u − g12 x + ν g2 xx ut +

Denote by G′ the group of transformations of a first differential approximation in the space E(x, t, u, h, τ, ν) of the independent variables (x, t) and the dependent variable u, the step size variables (h, τ ) and the viscosity ν. th The l′ -prolongation of G′ can be written as: ′)

′(l eα L

l′

=

ξ1α

X α,(k1 ...kp ) ∂ ∂ ∂ ∂ ∂ ∂ ∂ σ + ξ2α + ηα + + ζ2α + θ α (16) + ζ1α (k1 ...kp ) ∂x ∂t ∂u p=1 j ∂h ∂τ ∂ν ∂u j



where l has been defined in definition 1. Theorem 1 enables us to obtain the necessary and sufficient condition of invariance of the first differential approximation P: ˛ ′ ) ˛ e ′(l L α P˛

P=0

=0

(17)

Theorem 1 is applied to the differential representations of the above schemes. The resolution of the determining equations of each first differential approximation yields the 4-parameter group: ξ1α = a + b x, ζ1α

= b h,

ξ2α = c + (2b − d) t, ζ2α

= (2b − d) τ ,

ηα = (−b + d) u

(18)

θ α = eν

The 4-dimensional Lie algebra of G′ is generated by: ∂ ∂ ∂ ∂ ∂ ∂ ∂ , L2 = , L′ 3 = x + 2t −u +h + 2τ ∂x ∂t ∂x ∂t ∂u ∂h ∂τ ∂ ∂ ∂ ∂ +u −τ +ν = −t ∂t ∂u ∂τ ∂ν

L1 = L′ 4

These operators are respectively related to:

(19)

ˆ ˆ LE ˆ EMMA HOARAU, CLAIRE DAVID, PIERRE SAGAUT AND THIEN-HI EP

6

• the space translation : (x, t, u, h, τ, ν) 7−→ (x + ǫ1 , t, u, h, τ, ν); • the time translation : (x, t, u, h, τ, ν) 7−→ (x, t + ǫ2 , u, h, τ, ν); 2 • the dilatation : (x, t, u, h, τ, ν) 7−→ (ǫ3 x, ǫ23 t, ǫ−1 3 u, ǫ3 h, ǫ3 τ, ν); −1 −1 • the dilatation : (x, t, u, h, τ, ν) 7−→ (x, ǫ4 t, ǫ4 u, h, ǫ4 τ, ǫ4 ν); where (ǫi )i=1,...,4 are constants. The above finite difference equations are preserved by the space translation, the time translation and both dilatations. Approximating the Burgers equation by the above finite difference equations results in the loss of the projective and Galilean transformations. 5. The invariant scheme. 5.1. Invariant scheme construction. An invariant scheme is constructed in such a way that the related differential approximation preserves the symmetries of the Burgers equation. We propose to approximate the Burgers equation by the following finite difference scheme: “ ” un+1 − un 1 ` µδ3 ´` u2 ´n δ4 ´ n 1` + − i i − ν 2 δ2 − µδ − (ui ) − Ωn + − Ωn un 1δ 1δ i = 0 i+ 2 i− 2 τ h 6 2 i h 12

(20)

where Ωni = Ω(xi , tn , uni ) is defined next so that the related differential representation is preserved by the symmetries of the Burgers equation. The scheme has second-order accuracy in space and first-order accuracy in time. The derivatives  u2 and u are approximated by fourth order accuracy difference expressions: xx 2 x ` µδ h



` ´n ` ´n ` δ2 h4 µδ3 ´ n δ4 ´ n h4 (ui ) = ux − u5x i + O(h6 ), − (ui ) = uxx − u6x i + O(h6 ) (21) 2 2 6h 30 h 12h 90

The truncation error of the difference scheme (20) can be written as: ǫ

=

“ ” τ + O(τ 2 ) + O(h4 ) utt − h2 Ωux x 2

utt is replaced by an expression involving partial derivatives with respect to x, by using the Burgers equation: utt = (u2 ux )x − ν(uuxx )x − ν

` u2 ´ 2

xxx

+ ν 2 uxxxx

(22)

Replacing the previous expression in the truncation error leads to: ǫ

=

“ ” ” ντ “ ντ ` u2 ´ ν2τ − Cux − uuxx + uxxxx + O(τ 2 ) + O(h4 ) xxx x x 2 2 2 2

τ where C = u2 − h2 Ω. 2 It is convenient for the calculation of C that the truncation error is reduced to: ǫ

=

“ ” + O(τ 2 ) + O(h4 ) Cux x

The related finite difference scheme is the following first order accuracy in time and second order accuracy in space: “ ” un+1 − un 1 ` µδ3 ´` u2 ´n δ4 ´ n 1` i i n n − ν 2 δ2 − µδ − (ui ) − Ωn + 1 ∆1 − Ωi− 1 ∆−1 ui i i+ τ h 6 2 h 12 2 2 ” ν 2 τ δ4 ντ µδ3 ` u2 ´n µδ2 n ντ “ n µδ2 n =0 ui+ 1 2 (ui+ 1 ) − un (u 1 ) − un + + 1 i− 2 2 h2 i− 2 2 h4 i 2 h3 2 i 2 h 2

(23)

and the differential approximation can be written as: P(x, t, u, ν, ux , ut , uxx ) = ut + u ux − ν uxx + (Cux )x = 0

(24)

The von Neumann stability analysis of scheme (23) under a linearized form provides the following necessary conditions for S, CF L and Ωτ = Ωτ : CF L2 − 2S − 2Ωτ ≤ 0,

0≤

4S 1 − 2S 2 + Ωτ ≤ 3 2

(25)

LIE GROUP STABILITY OF FINITE DIFFERENCE SCHEMES

7

If Ω takes is sufficiently close to zero, these conditions become then sufficient for the linear formulation. 5.2. Calculation of the artificial viscosity term. Here we describe the method for determining the artificial viscosity term (Cux )x , which is constructed in such a way that the differential approximation (24) is preserved by the symmetries of the Burgers equation. C is a function of the variables (x, t, u, τ, h), and also depends on the partial derivatives of u with respect to x: ux and uxx . C = C(x, t, h, τ, u, ux , uxx ). The necessary and sufficient condition for the differential approximation to be an invariant of the Burgers equation symmetry group is: ˛ ˛ e (2) L α (ut + u ux − ν uxx )˛

P=0

˛ ˛ e (3) +L α ((Cux )x )˛

P=0

=0

(26)

Equation (26) provides the determining equations of the symmetry group of equation (24). The determining equations involve partial derivatives of the unknown ′ function C and partial derivatives of the infinitesimal functions of G , which is the symmetry group of the differential representation of the invariant scheme. ′ The infinitesimal functions of G have the following expressions: ξ1α = a + b x + c t + d tx, ζ2α = (2b − f ) τ ,

ξ2α = e + d t2 + (2b − f ) t,

ηα = c + d x + (−b − d t + f ) u,

ζ1α = b h,

(27)

θα = f ν

The determining equation with respect to the unknown function C is simplified in ′ using the infinitesimal functions of each subgroup of G . ′ The determining equations of each subgroup of G provides the following linear partial differential equations and the expressions for C: ∂ C = 0 ⇒ C = C1 (t, h, τ, u, ux , uxx ); • the space translation ∂x ∂ • the time translation ∂t C = 0 ⇒ C = C2 (x, h, τ, u, ux , uxx ); ∂ ∂ ∂ ∂ ∂ C+2t ∂t C−u ∂u C+h ∂h C+2τ ∂τ C = 0 ⇒ C = C3 ( xt2 , h , ux, xτ2 , ux , uxx ); • the dilatation x ∂x x ∂ ∂ ∂ ∂ 2 • the projective transformation ∂x C = 0, ∂u C = 0, ∂uxx C = 0, t ∂t C + 2 ∂u∂ x C = 0 x ); ⇒ C = C4 (h, τ, 2+tu t ∂ ∂ • the Galilean transformation ∂u C + t ∂x C ⇒ C = C5 ( ut−x , t, h, τ, u, ux , uxx ); t ∂ ∂ ∂ ∂ C = 0 ⇒ C = 1t C6 (x, h, τt ). • the dilatation −t ∂t C + u ∂u C + ν ∂ν C − τ ∂τ 5.3. Numerical application. The numerical resolution of the Burgers equation has been implemented for scheme (23), the standard schemes (cf. section 4.2) and a scheme with second-order accuracy in time and fourth-order accuracy in space, which is obtained from the invariant scheme when C = 0. The solutions are calculated in the reference frame (F 1) and in the one (F 2) resulting from the Galilean transformations (x, t, u, ν) 7−→ (x + t, t, u + 1, ν). The artificial viscosity has the following expression: C = −0.01t(tu − x)2 (ux )2

(28)

1 τ Ω = 2 ( u2 − C) is in a sufficiently small neighborhood of zero that we have the h 2 sufficiency of conditions (25) for the linear formulation. The problem consists in solving the following differential system: ut + uux − νuxx = 0, x ∈ [0, 40], t ∈ [0, 20]

u(x, 0) = f (x), u(0, t) = g(t), u(40, t) = h(t)

The initial and boundary conditions, f , h, and g are provided by an exact solution of the Burgers equation: u(x, t) =

(x − 2t)/(t + 0.1) √ +2 1 + ν 2 t + 0.1 exp ((x − 2t)2 /(4ν(t + 0.1)))

(29)

Figures 1, 3 and 5 show the time evolution of the L2 -norm of the error for the considered schemes, for specific values of the CF L number and the mesh Reynolds

ˆ ˆ LE ˆ EMMA HOARAU, CLAIRE DAVID, PIERRE SAGAUT AND THIEN-HI EP

8

number Reh . Figures 2, 4 and 6 display the variations, as functions of the space variable, of the numerical solutions of the considered schemes for the specific value t = 5. In each frame, the numerical solutions are compared to the exact one. The error analysis of the invariant scheme in the reference frame through the features of the truncation error and the graphical representation of the norms of the error (cf. Figures 1, 3 and 5) allows to say that the invariant scheme is dissipative and slightly dispersive. The presence of the dissipative term (Cux )x in the differential representation of the invariant scheme and the presence of the higher order error terms involving the even-order derivative u6x (cf. Equation (21)) show that the scheme produces numerical damping. Particularly, the amplitudes are not correctly represented for high frequencies, since the solution is subjected to rather rough variation during the first iterations. The dissipation is stronger for Reh = 2, CF L = 0.08 in the reference frame (see Figure 4). Moreover, the presence of higher order error terms involving the odd-order derivative u5x corresponds to a phase error. The non-invariant schemes are more altered by the change of the frame than the invariant one. Moreover, the invariant scheme appears to be as accurate as the higher order one in the frame (F2). L2 error norm

L2 error norm

1

FTCS HF2L

FTCS HF1L

L-W HF2L

L-W HF1L

1

0.8

CN HF2L

CN HF1L Invariant HF1L

0.6

Invariant HF2L

0.8

high. ord. HF2L

high. ord. HF1L

0.6 0.4

0.4 0.2

0.2

Time

Time 2

4

6

8

2

10

4

6

8

10

Figure 1. Evolution of the error L2 -norm in (F1) and (F2). Reh = 2, CF L = 0.04

Exact HF1L

Exact HF2L

FTCS HF1L u@x,tD

FTCS HF2L u@x,tD

Lax Wend. HF1L

Lax Wend. HF2L

Crank Nicol. HF1L

Crank Nicol. HF2L x

2.4

Invariant HF1L

4

6

8

10

12

14

16

18

high. ord. HF1L

high. ord. HF2L 1.4

2.2

1.2 2 1 1.8 0.8

x 4

6

8

10

12

14

16

18

Invariant HF2L

0.6

Figure 2. Space variation of the numerical solutions of the schemes and the exact solution in (F 1) and (F 2). Reh = 2, CF L = 0.04

LIE GROUP STABILITY OF FINITE DIFFERENCE SCHEMES

9

L2 error norm

L2 error norm 1

FTCS HF2L

FTCS HF1L

L-W HF2L

L-W HF1L 1

0.8

CN HF2L

CN HF1L Invariant HF1L

0.6

Invariant HF2L

0.8

high. ord. HF1L

high. ord. HF2L 0.6

0.4 0.4

0.2

0.2

Time 2

4

6

8

Time

10

2

4

6

8

10

Figure 3. Evolution of the error L2 -norm in (F1) and (F2). Reh = 2, CF L = 0.08

Exact HF1L

Exact HF2L

FTCS HF1L

u@x,tD

FTCS HF2L u@x,tD

Lax Wend. HF1L

Lax Wend. HF2L

Crank Nicol. HF1L 2.4

Crank Nicol. HF2L 1.6

Invariant HF1L

Invariant HF2L x

high. ord. HF1L

4

6

8

10

12

14

16

high. ord. HF3L

18

1.4

2.2

1.2

2

1

1.8

0.8

1.6 x 4

6

8

10

12

14

16

0.6

18

Figure 4. Space variation of the numerical solutions of the schemes and the exact solution in (F 1) and (F 2). Reh = 2, CF L = 0.08

L2 error norm 1.75

L2 error norm FTCS HF1L

FTCS HF2L 2

L-W HF1L

L-W HF2L

1.5 CN HF1L 1.25

Invariant HF1L

CN HF2L 1.5

Invariant HF2L

high. ord. HF1L

1

high. ord. HF2L 1

0.75 0.5 0.5 0.25 Time 2

4

6

8

10

Time 2

4

6

8

10

Figure 5. Evolution of the error L2 -norm in (F1) and (F2). Reh = 3, CF L = 0.08

REFERENCES [1] Yu. I. Shokin (1983), The method of differential approximation, Springer-Verlag, Berlin, Heidelberg, New-York, Tokyo.

ˆ ˆ LE ˆ EMMA HOARAU, CLAIRE DAVID, PIERRE SAGAUT AND THIEN-HI EP

10

[2] N. N. Yanenko and Yu. I. Shokin (1976), Group classification of difference schemes for a system of one-dimensional equations of gas dynamics, Amer. Math. Soc. Transl., 2 no. 104, 259–265. [3] P. J. Olver (1986), Applications of Lie Groups to Differential Equations, Springer-Verlag, New-York. [4] N. H. Ibragimov (1994), Symmetries exact solutions and conservation laws, CRC Handbook of Lie Group Analysis of Differential Equations, vol. 1. [5] B. J. Cantwell (2002), Introduction to symmetry analysis, Cambridge University Press. [6] W. F. Ames, F. V. Postell and E. Adams (1992), Optimal numerical algorithms, Applied Numerical Mathematics, 10, 235–259. [7] P. J. Olver (2001), Geometric foundations of numerical algorithms and symmetry, Appl. Alg. Engin. Comp. Commun, 11, 417–436. [8] P. Kim (2004), Invariantization of numerical schemes using moving frames, Mathematical Physics Seminar. [9] V. A. Dorodnitsyn (1994), Finite difference models entirely inheriting continuous symmetry of original differential equations, Int. J. Mod. Phys., serie C, 5, no. 4, 723–734. [10] V. A. Dorodnitsyn, R. Kozlov and P. Winternitz (2000), Lie group classification of second order difference equations, J. Math. Phys., 41, no. 1, 480–504. [11] V. A. Dorodnitsyn and R. Kozlov (2003), A heat transfert with a source: the complete set of invariant difference schemes, J. Non. Math. Phys., 10, no. 1, 16–50. [12] M. I. Bakirova, V. A. Dorodnitsyn and R. Kozlov(1997), Symmetry-preserving difference schemes for some heat transfert equations, J. Phys. A: Math. Gen., 30, 8139–8155. [13] F. Valiquette and P. Winternitz (2005), Discretization of partial differential equations preserving their physical symmetries, J. Phys. A: Math. Gen., 38, 9765–9783. [14] K. Vu and J. Carminati (2000), Symbolic computation and differential equations: Lie symmetries, J. Symbolic Computation, 29, 95-116. [15] S. Herod (1992), MathSym: a Mathematica program for computing Lie symmetries, Preprint, Program in Applied Mathematics, Boulder, Colorado, The University of Colorado. [16] G. Baumann (1992), Lie symmetries of differential equations: A mathematica program to determine Lie symmetries, Wolfram Research Inc., Champaign, Illinois, MathSource 0202622. [17] F. Schwarz (1982), A REDUCE package for determining Lie symmetries of ordinary and partial differential equations, Comput. Phys. Commun., 27, 179–186. [18] F. B. Hildebrand (1956), Introduction to Numerical Analysis, New York: McGraw-Hill. E-mail address: [email protected]

Exact HF1L

Exact HF2L

FTCS HF1L u@x,tD

FTCS HF2L u@x,tD

Lax Wend. HF1L

Lax Wend. HF2L x

Crank Nicol. HF1L

4

6

8

10

12

14

16

18

Invariant HF1L

2.4

high. ord. HF1L

Invariant HF2L 1.4

2.2

1.2 2

1 1.8

0.8 x 4

6

8

10

12

14

16

Crank Nicol. HF2L

18

Figure 6. Space variation of the schemes numerical and of the exact solution in (F 1) and (F 2). Reh = 3, CF L = 0.08

high. ord. HF2L