Sep 14, 2004 - demand for codes that can deal with flows at all Mach numbers. As a lot of expertise and development time was put into currently used codes, ...
Stability of Preconditioned Finite Volume Schemes at Low Mach Numbers Philipp Birken and Andreas Meister September 14, 2004
Abstract Abstract. In [4], Guillard and Viozat propose a finite volume method for the simulation of inviscid steady as well as unsteady flows at low Mach numbers, based on a preconditioning technique. The scheme satisfies the results of a single scale asymptotic analysis in a discrete sense and comprises the advantage that this can be derived by a slight modification of the dissipation term within the numerical flux function. Unfortunately, it can be observed by numerical experiments that the preconditioned approach combined with an explicit time integration scheme turns out to be unstable if the time step ∆t does not satisfy the requirement to be O(M 2 ) as the Mach number M tends to zero, whereas the corresponding standard method remains stable up to ∆t = O(M ), M → 0, which results from the well-known CFL-condition. We present a comprehensive mathematical substantiation of this numerical phenomenon by means of a von Neumann stability analysis, which reveals that in contrast to the standard approach, the dissipation matrix of the preconditioned numerical flux function possesses an eigenvalue growing like M −2 as M tends to zero, thus causing the diminishment of the stability region of the explicit scheme. Thereby, we present statements for both the standard preconditioner used by Guillard and Viozat [4] and the more general one due to Turkel [21]. The theoretical results are after wards confirmed by numerical experiments.
Keywords: Preconditioning, Low Mach number flow, Asymptotic analysis, Finite volume method, Conservation laws
1
Introduction
The efficient simulation of low Mach number flows is a subject of ongoing discussion in the CFD community. While the flow is expected to be incompressible, in a lot of applications the Mach number or the compressibility properties vary strongly in time or space. This is for example the case in nozzle flow, chemically reacting flows or laminar combustion. A specific example is a fire in a road tunnel, where the strong heat sources make parts of the flow compressible although the Mach number M remains small, i.e. M ≈ 10−3 . It is 1
well known that purely compressible flow solvers which were developed for transonic flow produce wrong results at low Mach numbers. On the other hand, standard incompressible flow solvers cannot deal with strong temperature or strong density gradients. This sets a demand for codes that can deal with flows at all Mach numbers. As a lot of expertise and development time was put into currently used codes, the desire to expand an existing code as opposed to writing a completely new one is very natural. Consequently, there are two main approaches to the design of numerical methods for the above mentioned flows: use either the compressible or the incompressible Euler or Navier-Stokes equations as the basic model and improve upon the existing methods. Both approaches are pursued and widely used. One important idea in this context was the artificial compressibility method by Chorin that inspired the preconditioner of Turkel [21] for the compressible equations. These methods incorporate a preconditioning of the time derivative of the PDE, thus allowing faster convergence to steady state but sacrificing time accuracy. Along these lines, other preconditioners were proposed [23, 1]. The crucial idea is, that as the Mach number tends to zero, the original system develops a large disparity in wave speeds, as some of the eigenvalues grow to infinity while others stay O(1). The preconditioner changes all the wave speeds to O(1), thus greatly improving the condition number of the system. For incompressible flows, there are two main techniques that are used to expand the validity of the scheme into the compressible regime. One class of schemes is based on the marker and cell method, MAC for short, by Harlow and Welch [5], which is a finite difference method on a staggered grid. The method is quite fast, but it is very difficult to use the staggered location of the variables in the context of unstructured grids. Recently, Wenneker, Segal and Wesseling proposed a method that faces this difficulty [26]. On the other hand, Patankar and Spalding [16] published their SIMPLE scheme in 1972. Based on an approximation of the pressure, a velocity field is computed using the momentum equations. Then, an elliptic pressure correction equation is solved to improve the approximation of the pressure. These steps are then iterated until convergence is achieved. The approach is not limited to incompressible flows: see [2]. Both SIMPLE and MAC scheme as well as their improved descendants have in common that they work on the velocity field and the pressure distribution. By contrast, codes for compressible flow are usually based on the conserved variables density, momentum and energy. Thus, in the context of methods for all Mach numbers it is useful not to speak of incompressible and compressible solvers, but of pressure based and density based schemes. In this paper, we will concentrate on the case of density based flow solvers. Here, three main techniques to obtain time accuracy can be distinguished. First of all, there is the technique to use the above mentioned preconditioning methods for steady state flows in a pseudo time stepping scheme [20, 22, 25]. Furthermore, there is the flux correction approach, where an approximation to the Euler or Navier-Stokes equations is solved and then corrected via elliptic correction equations [6, 10, 18]. Finally, there is the flux preconditioning approach, where only the dissipation within the numerical flux function of the flow solver is changed by low Mach number preconditioning [4, 14]. This has several advantages. An important one is that the implementation is quite simple. The only part of the flow solver that needs to be changed is the flux function. The other one is that compared to the flux correction approach, the computational effort per time step is less expensive.
2
However, numerical experiments indicate that the stability region of an explicit preconditioned method deteriorates as the Mach number tends to zero. In order to overcome this severe disadvantage implicit methods are usually employed. Although this behavior of explicit schemes is often reported, a comprehensive analysis of this phenomenon is still missing. The paper is devoted to close this gap and to present a detailed stability analysis of a class of preconditioned Lax-Friedrich type schemes. Besides the method proposed by Guillard and Viozat [4] a more general preconditioning matrix due to Turkel [21] is investigated. Thereby, it is proved that the whole class of this approaches suffers from similar stability problems and thus, an implicit time stepping scheme should be preferred for this kind of method in the regime of low Mach numbers. The outline of the article is as follows: First, we briefly introduce the Euler equations of gas dynamics. In order to get a deeper insight into the behavior of the corresponding physical quantities, we summarize the main results of an asymptotic analysis in the low Mach number limit. Thereafter, a finite volume approximation of the governing equations using a Lax-Friedrichs type scheme is presented whereby we curtly discuss the asymptotic behavior of the preconditioned as well as the unpreconditioned approach as the Mach number tends to zero. The core of the paper is a L2 -stability analysis of a class of preconditioned methods, where we will prove the general unfavorable behavior of the explicit scheme. The theoretical results are after wards confirmed by numerical experiments.
2
The governing equations
The Euler equations consist of the conservation laws of mass, momentum and energy, closed by an equation of state. Given an open domain D ⊂ Rd , the dimensional form can be expressed as d X ˆ+ ∂tˆu ∂xˆj ˆfj (ˆ u) = 0 in D × R+ , j=1
ˆ T represents the vector of conserved variables. The flux funcˆ = (ˆ where u ρ, mˆ1 , ..., mˆd, ρˆE) tions ˆfj are given by m ˆj m ˆ j vˆ1 + δ1j pˆ . ˆfj (ˆ .. u) = , j = 1, ..., d, m ˆ j vˆd + δdj pˆ ˆm H ˆj ˆ = (ˆ with δij denoting the Kronecker symbol. The dimensional quantities ρˆ, v v1 , vˆ2 )T , p ˆ ˆ and H ˆ = E ˆ + describe the density, velocity, momentum per unit ˆ = (m m ˆ 1, m ˆ 2 )T , E ρˆ volume, total energy per unit mass and total enthalpy per unit mass, respectively. The 2 ˆ − 1 |ˆ pressure is defined by the equation of state for a perfect gas pˆ = (γ − 1)ˆ ρ(E 2 v| ), where γ denotes the ratio of specific heats, taken as 1.4 for air. Numerical schemes are usually based on a non-dimensional form of the Euler equations. Such a form is obtained by introducing reference values. Usually, these are the reference 3
values for the length x ˆref , the density ρˆref and the velocity vˆref . Reference values for other quantities are derived from these by functional relationships, for example tˆref = x ˆref /ˆ vref 2 . This well-known approach leads to an identical non-dimensional and pˆref = ρˆref vˆref system, compared to the dimensional form. Unfortunately, for low Mach numbers, the pressure reference has no longer a valid physical meaning and the non-dimensional quantity p is not O(1). Thus, following [9, 8], we employ an independent pressure reference pˆref . We introduce the expression ϕˆ = ϕ e · ϕˆref
for each physical quantity ϕˆ into the governing equations and hence the resulting nondimensional formulation of the Euler equations as well as the equation of state read
∂t ρe+
and
e ∇x · m
= 0, 1 ∇ pe M2 x
e e ⊗v e) + ∂t m+ ∇x · ( m e e m) e ∂t (e ρE)+ ∇x · (H
= 0,
(1)
=0
M2 2 e |e v| . pe = (γ − 1) ρe E − 2
(2)
The non-dimensional characteristic number M appearing within (1) and (2) is called the Mach number which is defined as vˆref , (3) M= cˆref p where cˆref = pˆref /ˆ ρref denotes the reference value for the speed of sound cˆ. Note that the non-dimensional solution depends on the reference values and therefore we take into account this fact by writing ϕ(x, e t; M ). Based on the characteristic number M we are now able to investigate the behavior of the physical quantities in the low Mach number limit by means of a formal asymptotic analysis. Throughout this paragraph we assume that the non-dimensional formulation of the governing equations (1) consists exclusively of physical quantities ϕ e satisfying ϕ e = O(1) if the Mach number tends to zero. We expand every physical variable in a single time scale, single space scale asymptotic expansion
ϕ(x, e t; M ) =
j X
m=0
M mϕ e(m) (x, t) + o(M j ), M → 0, j = 0, 1, 2 4
(4)
and introduce it into system (1). We will only briefly present the results of this technique. A comprehensive survey can be found in [12, 9].
e be a solution of system (1). Then the leading order pressure satisfies Theorem 1 Let u pe(x, t; M ) = pe(0) (t) + M pe(1) (t) + M 2 pe(2) (x, t) + o M 2 , M → 0.
Therefore, the pressure varies in space with O(M 2 ) if the Mach number is sufficiently small. This is an important result that the discrete scheme has to take into account.
e be a solution of system (1). Thus there holds Theorem 2 Let u Z 1 1 d (0) e (0) · n ds, M → 0. p e = − v |Ω| ∂Ω γ pe(0) dt
Theorem 2 implies that the temporal change of the leading order pressure is only due to compression from the boundary or expansion of the gas itself.
e be a velocity vector corresponding to a solution of (1). Then it satisfies Theorem 3 Let v the divergence constraint Z 1 e · n ds + o(1), M → 0. e= v ∇x · v |Ω| ∂Ω Note, that for a vanishing right hand side, we obtain the divergence constraint on the velocity field known from incompressible flow.
3
Preconditioned Finite Volume Method
In order to rewrite the Euler equations (1) in a convenient manner for standard compressible flow solvers we define the auxiliary variables p= Thus, system (1) becomes
e e e c H E pe , c= , E = 2 and H = 2 . 2 M M M M ∂t u +
2 X `=1
∂x` f` (u) = 0 in D × R+ ,
where u = (ρ,ρv1 , ρv2 ,ρE)T , f` (u) = (ρv` , ρv` v1 + δ1` p, ρv` v2 + δ2` p, ρHv` )T and p = (γ − 1)ρ E −
|v|2 2
.
5
(5)
(6)
It is well known that smooth solutions of the Euler equations exist in general only for short times and thus one usually introduces the concept of weak solutions. By means of integrating the system (6) over a control volume Ω ⊂ D and applying Gauss’ integral theorem one obtains Z 2 Z X d u dx + f` (u)n` ds = 0, (7) dt Ω ∂Ω `=1
)T
where n = (n1 , n2 represents the outer unit normal vector on ∂Ω. A mapping u is called a weak solution of the governing equations (6) if u satisfies the integral form of the Euler equations (7) on every bounded set Ω ⊂ D which allows to utilize Gauss’ integral theorem. Introducing the cell average ui (t) = box Ωi can be written as
1 |Ωi |
R
Ωi
u(x, t) dx, the integral form with respect to a
2 X Z X d 1 ui (t) = − f` (u(x, t))n` ds, dt |Ωi | eij eij ⊂∂Ωi
`=1
where eij denotes the edge between the adjacent control volumes Ωi and Ωj . In order to evaluate the integral we employ a numerical flux function of Lax-Friedrichs type ! 2 1 X (f` (ui ) + f` (uj )) n` − D(ui , uj , n)(uj − ui ) . (8) H(ui , uj , n) = 2 `=1
Numerical methods of this type differ only in the dissipation term D. With respect to the governing equations (6) Hu and Shu [7] defined D ∈ R to be the largest absolute eigenvalue of the corresponding Jacobi matrix 2 X ∂f` F (u, n) = (u)n` . ∂u` `=1
Similar to the formulation of Shu and Osher [19] we prefer a matrix-valued term D which was proposed by Friedrich [3]. It is proved in [13, 14] that the use of this standard numerical flux function leads to an unphysical pressure distribution which contradicts the statement of theorem 1. In particular, variations of the first order pressure field are generated on the space scale x. To extend the validity of the numerical method we utilize a preconditioning technique originally proposed by Guillard and Viozat [4] for the Roe scheme and later on derived in the context of the Lax-Friedrichs method in [14]. Therefore, the dissipation matrix is defined as uj + u i −1 uj + ui −1 uj + ui R , n |Λ|(ui , uj , n)R ,n . D(ui , uj , n) = P 2 2 2 Herein, R(u, n) represents the matrix of the right eigenvectors of the corresponding preconditioned Jacobian FP (u, n) = P(u)F(u, n) and |Λ|(ui , uj , n) denotes the diagonal matrix defined by |Λ|(ui , uj , n) = diag |λ1 (u, n)| , . . . , n max max o |λ4 (u, n)| , u +u u∈nui ,uj , ui +uj o u∈ ui ,uj , i j 2
2
6
where λi (u, n), i = 1, . . . , 4 are chosen to be the eigenvalues of the matrix FP (u, n). The properties of the derived method strongly depend on the preconditioning matrix used. Obviously, arranging P(u, n) to be the identity yields the standard Lax-Friedrichs scheme [3]. In order to overcome the failure of the standard Lax-Friedrichs scheme with respect to the pressure distribution in the low Mach number regime it is quite natural to multiply the pressure by a factor associated with the Mach number. Therefore, we extract the pressure by consideration of the so-called entropy variables w = (p, v1 , v2 , s)T , whereby s denotes the entropy determined as s = ln ρpγ . Following Turkel [21] we introduce P−1 (u) = UQ−1 W (u), (9) where U =
∂u ∂w ,
W=
Q−1
∂w ∂u
and β2 1 − αv ρc2 = − αv22 ρc 0
0 1 0 0
0 0 1 0
0 0 , with β = OS (M ), M → 0 0 1
(10)
and α ∈ C. To ensure that the matrix is always nonsingular we additionally require that β 6= 0 for all M > 0. Simple but time-consuming calculations give |v|2 −v −v 1 1 2 |v|22 v1 γ − 1 −v12 −v1 v2 v1 −1 2 2 P (u) = I + 2 (β − 1) |v|2 v2 2 c −v v −v v 1 2 2 2 2 2 |v| H −Hv1 −Hv2 H 2 0 0 0 0 |v|2 v1 2 −v1 −v1 v2 v1 2 −α |v|2 v2 −v1 v2 −v22 v2 2 2 2 2 |v| −v1 |v| −v2 |v| |v|2 and
λ1,2 (u, n) = vn := v · n, i p 1h λ3,4 (u, n) = (1 − α + β 2 )vn ± (1 − α + β 2 )2 vn2 − 4vn2 β 2 + 4β 2 c2 . 2 Note that the choice α = 0 yields the preconditioning matrix proposed by Guillard and Viozat [4].
Interpreting the cell average ui (t) as a piecewise constant function on Ωi and using a simple explicit time marching procedure leads to the first order scheme ∆t X n |eij |H(uni , unj , nij ) (11) un+1 = u − i i |Ωi | eij ⊂∂Ωi
with uni = ui (tn ), tn+1 = tn + ∆t and nij represents the unit outer normal vector on eij ⊂ ∂Ωi . It was recently proven in [13] that utilizing the preconditioned Lax-Friedrichs flux (8) for the choice β = O(M ), M → 0, and α = 0 within the finite volume method associated with (11) yields a pressure distribution satisfying the statement of theorem 1 in a discrete sense. Furthermore, a discrete divergence constraint corresponding to theorem 3 is shown for this scheme in [15] in the absence of compression and expansion over the boundary of the computational domain. 7
4
Stability Analysis
Due to the characteristic propagation speeds associated with the governing equations, i.e. 1 , M → 0, vn = O(1) and vn ± c = O M we can directly conclude that the step size of an explicit time integration scheme decreases at least linearly as the Mach number tends to zero, i.e. we expect ∆t = O (M ) , M → 0 in order to fulfill the requirement that the numerical domain of dependence always covers the physical one. However, for the specific scheme used a different condition on the time step could be valid. To obtain a deeper insight into the behavior of the method we perform a von Neumann stability analysis. Parallel flows show that without stability in the one-dimensional case, we cannot expect stability in higher dimensions. Therefore, the one-dimensional Euler equations are of interest also in our applications, but tremendously easier to analyze. Thus, for the sake of simplicity we restrict ourselves to the consideration of the spatially one-dimensional case. The relevance for multi-dimensional flow fields is obvious and after wards confirmed by numerical experiments. It is well known that the standard Lax-Friedrichs scheme combined with the explicit Euler time integration is stable in the sense of von Neumann if the CFL-condition is satisfied. In order to perform a von Neumann stability analysis we have to linearize the governing equations as well as the preconditioning matrix. Thus, we consider the linearized onedimensional Euler equations in the form ∂t u + A∂x (u) = 0
(12)
∂f ¯ = ui for an arbitrary but fixed vector of conserved (¯ u) with u where A = A(¯ u) = ∂u ¯ will also variables corresponding to an inner control volume Ωi . Quantities derived from u be denoted with a bar. Note that in one spatial dimension, the conserved variables are ρ, m and ρE, while the entropy variables are p, v and s. Due to the linearization it is appropriate ¯ instead of the average value to define the preconditioner also in a global manner by using u of ui and uj as suggested in (9). Consequently, the preconditioned Lax-Friedrichs scheme for the linearized Euler equations (12) reads
H(ui , uj , n) =
1 ¯ , n)(uj − ui )) . (A(¯ u)(uj + ui )n − D(¯ u, u 2
(13)
with ¯ , n) = P−1 (¯ ¯ , n)R−1 (¯ D(¯ u, u u) R (¯ u, n) |Λ|(¯ u, u u, n) .
(14)
The one-dimensional preconditioning matrix is obtained from 10 by omitting the third row and column. For the investigation of appropriate stability requirements for the precondi¯, u ¯ , n). tioned approach it is necessary to analyze the spectrum of the dissipation matrix D(u At first, we focus on the case of a vanishing parameter α. Thereafter, we will extend the statement to the general case. 8
Lemma 4 Let µi , i = 1, 2, 3 represent the eigenvalues of the linearized dissipation matrix D corresponding to (14) of the preconditioned Lax-Friedrichs scheme (8) for equation (12) in one spatial dimension with β = OS (M ), M → 0, β 6= 0, and α = 0. Then the appropriately renumbered eigenvalues of D have the properties µ1 , µ2 = O (1) , M → 0 and µ3 = OS
1 M2
, M → 0.
Proof: Analogously to the two-dimensional case the eigenvalues of the one-dimensional preconditioned Jacobian FP (¯ u, n) read i p 1h (1 + β 2 )¯ vn ± (1 − β 2 )2 v¯2 + (2β¯ c)2 . λ1 = v¯n and λ2,3 = 2 In the case that M is sufficiently small one gets c¯2 > v¯2 by which it follows that (1 − β 2 )2 v¯2 + 4β 2 c¯2 > (1 + β 2 )2 v¯2 .
(15)
This inequality yields λ2 > 0 and λ3 < 0, and consequently |λ2 | − |λ3 | = λ2 + λ3 = (1 + β 2 )¯ vn .
(16)
For the investigation of the spectrum of D it is advantageous to consider the matrix with respect to the entropy variables. Hence, we write the dissipation matrix in the form D = UQ−1 S|Λ|S−1 W with S = WR. Since W = U−1 the matrices D and ¯ = Q−1 S|Λ|S−1 D
(17)
are related by means of a similarity transformation which maintains the eigenvalues. Utilizing the abbreviations ξ1 = λ2 − λ1 β 2 , ξ2 = λ3 − λ1 β 2 , and ξ3 =
λ3 − λ 2 2
in combination with equation (16) one can write (see Appendix A) |λ2 |ξ2 −|λ3 |ξ1 c¯2 ρ 2 )¯ (1 + β v 0 − n 2 2ξ3 2ξ3 β 1 ¯ = D 2ξ ξβ1 ξ22c2 ρ (1 + β 2 )¯ v − (ξ 0 n 2ξ3 1 |λ2 | + ξ2 |λ3 |) 3 0 0 |λ1 |
for sufficiently small M . By means of straightforward calculations we obtain the eigenvalues µ1 = |λ1 | = |¯ vn | = O(1) and µ2,3 = −
p 1 (1 + β 2 )¯ c2 ∓ (1 − β 2 )2 (¯ c4 − v¯2 c¯2 + v¯4 ) + (2β¯ v c¯)2 . 2ξ3 9
Due to the fact that the speed of sound e c is always positive independent of the Mach number −1 we get c¯ = OS (M ), M → 0 and as a result ξ3 = −
1p 1p 2 (1 − β 2 )2 v¯2 + (2β¯ c)2 = − v¯ + (2β¯ c)2 +O(M 2 ) 2 2 | {z } =O(1)
= O(1), M → 0
(18)
and ξ3 > 0 for all M . Similar to (15) we obtain (1 − β 2 )2 (¯ c4 − v¯2 c¯2 + v¯4 ) + (2β¯ v c¯)2 > (1 − β 2 )2 (¯ c4 + v¯4 ) + (1 + β 2 )2 v¯2 c¯2 ≥ 0 for a sufficient small Mach number and hence the eigenvalues µ2,3 are real in the low Mach number regime. Using (18) in combination with (1 + β 2 )2 c¯2 = OS (M −2 ), M → 0 and directly yields
p
(1 − β 2 )2 (¯ c4 − v¯2 c¯2 + v¯4 ) + (2β¯ vc¯)2 = OS (M −4 ), M → 0
µ3 = −
p
1 2 2 c4 − v¯2 c¯2 + v¯4 ) + (2β¯ v c¯)2 c + (1 − β 2 )2 (¯ (1 + β )¯ | {z } | {z } 2ξ3 |{z} =OS (M −2 ) =OS (M −4 )
=OS (1)
= OS (M −2 ), M → 0.
Now we can deduce the asymptotic behavior of the remaining eigenvalue µ2 via µ2 =
4¯ c4 β 2 + v¯2 c¯2 + O(M −1 ) µ2 µ3 = = OS (1), M → 0. µ3 2ξ3 µ3
Let us now consider the preconditioned Lax-Friedrichs scheme (13) on an equidistant grid with fixed mesh size ∆x > 0. Using the explicit Euler time integration and taking into account n = ±1 gives um+1 = um i − i
∆t ∆x
X
m H(um i , uj , n)
j∈{i−1,i+1}
∆t m m m H(um i , ui−1 , −1) + H(ui , ui+1 , 1) ∆x ∆t m = um − A(¯ u) um i i−1 − ui+1 2∆x m m ¯ , 1) um + D(¯ u, u . i+1 − 2ui + ui−1 = um i −
(19)
Starting from this formulation we are now able to prove the following stability condition in the case of a vanishing parameter α. 10
Theorem 5 A necessary condition to ensure stability of the linearized preconditioned LaxFriedrichs scheme with β = OS (M ), M → 0, β 6= 0 and α = 0 is ∆t = O(M 2 ), M → 0. Proof: The investigation of the L2 -stability, known as the von Neumann stability, is based on a Fourier analysis. Therefore, we replace um i by the corresponding Fourier expansion um i
=
∞ X
ij∆xI hm , j e
j=−∞
where I represents the imaginary unit. Introducing φ = j∆x we obtain the evolution of the j th mode in the form hm+1 eiφI j
iφI = hm + j e
∆t (i−1)φI (i+1)φI A(¯ u)hm e − e j 2∆x +
¯ , 1)hm D(¯ u, u j
e
(i+1)φI
− 2e
iφI
+e
(i−1)φI
!!
.
Division by eiφI yields hjm+1 = H(j, ∆x, ∆t)hm j with the amplification matrix ∆t ¯ , 1) eφI − 2 + e−φI u, u A(¯ u) e−φI − eφI + D(¯ 2∆x ∆t ∆t ∆t ¯ , 1) + ¯ , 1) cos φ − I = I− D(¯ u, u D(¯ u, u A(¯ u) sin φ. ∆x ∆x ∆x
H(j, ∆x, ∆t) = I +
The scheme is stable in the sense of von Neumann if the spectral radius of the amplification matrix is less than one for all φ. The eigenvalues of the matrix A(¯ u) are known to be ν1 = v = O(1), M → 0 and ν2,3 = v ± c = O(M −1 ), M → 0. Consequently, for fixed ∆x > 0 Lemma 4 yields ∆t ∆t ∆t ρ(H) = max 1 − (1 − cos φ) µi − I sin φ νi = O , M → 0. i=1,2,3 ∆x ∆x M2
This property proves the requirement ∆t = O(M 2 ), M → 0, which completes the proof.
Let us now generalize the statement of Lemma 4 to the case of an arbitrary parameter α. It is worth mentioning that the parameter α can of course depend on the physical quantities.
11
Lemma 6 If β = OS (M ), M → 0, β 6= 0, then there exists an eigenvalue µ of the of the linearized dissipation matrix D corresponding to (14) of the linearized preconditioned Lax-Friedrichs scheme (8) such that 1 µ = OS , M →0 M2 independent of α. Proof: As we can learn from the elaborated description of the eigenvalues µi , i = 1, 2, 3 of the dissipation matrix D in Appendix A the crucial eigenvalues can be written as 1√ b (20) µ2,3 = a ± 2 with 2 2 3 2 β 4v2 v2 2 2 2 2 β v +α a = −β c − |{z} c v − +α − . (21) | {z } 2 2 2 2 | {z } | {z } O(1) OS 1 M2
O(1)
1 M2
O(1)
In order to ensure that neither µ2 nor µ3 is any longer O , the parameter α has to be chosen such that the leading order terms cancel out. Due to the fact that the parameter α always appears in form of a product αv within the preconditioner (10) it is obvious that one cannot improve the stability properties in the case of a vanishing velocity field. This is 1 also documented by equation (21) which shows that a = OS M 2 , M → 0 independent of α, if v = 0. If v 6= 0 we deduce from (21) that we have to define r 2c2 α= − 2 ∈C v
(22)
in order to remove the leading order term. However, introducing (22) into the second addend of (20) yields 1 1 1 4 b = 4c4 + v 4 α4 + o = 8c + o = O , M → 0. S M4 M4 M4 √ This implies b = OS M12 , M → 0 and consequently there exists always an eigenvalue 1 µ = OS , M → 0. M2
We are now able to employ the statement of the above mentioned lemma to prove the following proposition exactly in the way we perform the evidence of theorem 5. Theorem 7 A necessary condition to ensure stability of the linearized preconditioned LaxFriedrichs scheme with β = OS (M ), M → 0, β 6= 0 and arbitrary α is ∆t = O(M 2 ), M → 0. 12
This theoretical result is only valid for the linearized scheme and therefore only a necessary stability condition. Later on we will confirm the significance of the results of the onedimensional linear theory by numerical tests in the context of the two-dimensional Euler equations. Furthermore, we’d like to point out that the proof works analogously for other schemes, for example the Roe-scheme [17] or the AUSMDV scheme [24] and thus these schemes have the same stability properties.
5
Numerical Experiments
We used a standard finite volume scheme with a first order spatial discretization. The specific scheme employed is described in [11]. Our first test problem is a NACA0012 profile at zero angle of attack with varying inflow Mach numbers. The time step then tends to zero quadratically with M in the case of a preconditioned Lax-Friedrichs flux. If we don’t employ preconditioning, the time step still goes to zero, but only linearly in M . These experiments thus confirm the theorem for the nonlinear scheme. The results can be seen in the first tabular. The CFL number are accurate up to the leading digit: 0.1 thus means that a CFL number of 0.2 leads to instabilities.
M 0.1 0.01 0.001 0.0001 0.00001
Preconditioned CFL number ∆t 0.1 7*10E-7 0.01 10E-8 0.001 10E-10 0.0001 10E-12 0.00001 10E-14
Unpreconditioned CFL number ∆t 0.9 6*10E-5 0.9 7*10E-6 0.9 7*10E-7 0.9 7*10E-8 0.9 7*10E-9
The second test problem is a circular bump in a channel, again with varying inflow Mach numbers. The asymptotic behavior predicted by the theorem can be clearly seen. For the case M = 0.1, it can be seen that the preconditioned scheme is as stable as the unpreconditioned one. This is not a contradiction to the theoretical results, where the Mach number is assumed to be small enough. The difference in ∆t compared to the first problem is due to a different grid with different cell sizes.
M 0.1 0.01 0.001 0.0001 0.00001
Preconditioned CFL number ∆t 0.9 5*10E-4 0.01 6*10E-7 0.001 6*10E-9 0.0001 6*10E-11 0.00001 6*10E-13
Unpreconditioned CFL number ∆t 0.9 5*10E-4 0.9 5*10E-5 0.9 5*10E-6 0.9 5*10E-7 0.9 5*10E-8
If we use the implicit Euler scheme instead of the explicit Euler for the time integration, we observe no bound on the CFL number. Not surprisingly, the von Neumann stability 13
analysis reveals no bound on the time step. Only for M = 10−5 , a restriction of the CFL number was observed.
6
Conclusions
We presented a theoretical proof that the preconditioned method, combined with an explicit scheme suffers from unphysical and much too restrictive stability conditions. This is due to the behavior of the eigenvalues of the preconditioned dissipation. The result was confirmed by numerical experiments. However, for an implicit method, there is no stability bound on the time step. Therefore, we strongly recommend using implicit methods in this context.
Acknowledgments We’d like to thank Ralf Massjung for placing his code at our disposal. The first author was partially funded by the DFG as a member of the Graduiertenkolleg 357.
A
Appendix
In one spatial dimension, the transformation matrices between conserved and entropic variables are given by: 1 0 − γρ c2 ∂u v ρ − ρv (23) = c2 U= and γ ∂w 2 ρ|v| H ρv − 2γ c2 1 2 −(γ − 1)v γ − 1 2 (γ − 1)|v| ∂w 1 0 − vρ = (24) W= . ρ ∂u (γ−1)|v|2 (γ−1)v γ γ−1 −ρ − p 2p p
The preconditioner is given by
β2
αv Q−1 = − ρc 2 1
0 0
1 0 . 0 0
The matrices of eigenvectors that diagonalize the preconditioned Jacobian in entropy formulation are: 0 0 1 0 1 1 ξ2 ρβ 2 c2 . − 0 (25) S = 0 ρβξ21c2 ρβξ22c2 and S−1 = 2ξ 2ξ 3 3 1
0
ξ1 − 2ξ 3
0
14
ρβ 2 c2 2ξ3
0
Thus, we can compute the preconditioned dissipation matrix (17) ¯ = Q−1 S|Λ|S−1 = (d¯ij )i,j=1,2,3 D
(26)
with d¯3,1 = d¯3,2 = d¯2,3 = d¯1,3 = 0, d¯3,3 = |λ1 |,
d¯1,1 = d¯2,1 =
d¯2,2 =
2 |λ2 |ξ2 −|λ3 |ξ1 ¯ , d1,2 = c2ξρ3 (|λ3 | − |λ2 |), 2β 2 ξ3 αv (|λ2 |ξ2 − |λ3 |ξ1 ) + 2βξ21cξ22ρξ3 (|λ2 | ρc2 2ξ3 |λ3 |ξ2 −|λ2 |ξ1 β 2 αv . 2ξ3 (|λ3 | − |λ2 |) + 2ξ3
− |λ3 |) and
This matrix has the eigenvalues µ1 = vn and µ2,3 =
a = −β 4 v 2 α + β 2 v 2 α2 −
√ a± b 4ξ3
with
c2 + 3αv 2 − v 2 α2 − β 2 c2 and 2
b = β 8 v 4 α2 − 6β 4 v 4 α2 + 4v 4 − 4β 4 c2 v 2 + 4β 4 c2 v 2 α + 4β 4 c4 − 4β 2 c2 αv 2 − 8β 2 c4
+4c4 − 8v 4 α + 13v 4 α2 + 4v 4 β 4 − 6α3 v 4 + v 4 α4 − 4c2 αv 2 − 8v 4 β 2 α + 6α3 v 4 β 2 −2v 4 α4 β 2 + 2v 4 α3 β 4 + 24v 2 β 2 c2 − 8β 2 v 4 − 4v 2 c2 + 4β 6 v 2 αc2 − 4β 4 v 2 α2 c2 −2β 6 v 4 α3 + β 4 v 4 α4 .
References [1] D. Choi and C. L. Merkle. The Application of Preconditioning in Viscous Flows. J. Comput. Phys., 105:207–223, 1993. ˇ Lilek, and M. Peri´c. A Collocated Finite Volume Method for Predicting [2] I. Demirdˇzi´c, Z. Flows at All Speeds. Int. J. Num. Meth. Fluids, 16:1029–1050, 1993. [3] O. Friedrich. Weighted Essential Non-Oscillatory Schemes for the Interpolation of Mean Values on Unstructured Grids. J. Comput. Phys., 144:194–212, 1998. [4] H. Guillard and C. Viozat. On the Behaviour of Upwind Schemes in the Low Mach Number Limit. Computers and Fluids, Vol. 28:63–86, 1999. [5] F. H. Harlow and J. E. Welch. Numerical Calculation of Time-Dependent Viscous Incompressible Flow of Fluid with Free Surface. Phys. of Fluids, Vol. 8(12):2182–2189, 1965. [6] L. Hoffmann and A. Meister. A Compressible Low Mach Number Scheme based on Image Processing and Asymptotic Analysis. Computational Fluid Dynamics Journal, Vol. 9:231–242, 2001. [7] C. Hu and C.-W. Shu. Weighted Essentially Non-oscillatory Schemes on Triangular Meshes. J. Comput. Phys., 150:97–127, 1999. [8] S. Klainerman and A. Majda. Singular limits of quasilinear hyperbolic system with large parameters and the incompressible limit of compressible fluids. Comm. Pure Appl. Math., 34:481–524, 1981. 15
[9] R. Klein. Semi-Implicit Extension of a Godunov-Type Scheme Based on Low Mach Number Asymptotics I: One-Dimensional Flow. J. Comput. Phys., 121:213–237, 1995. [10] R. Klein, N. Botta, T. Schneider, C.D. Munz, S. Roller, A. Meister, L. Hoffmann, and T. Sonar. Asymptotic adaptive methods for multi-scale problems in fluid mechanics. Journal of Engineering Mathematics, Vol. 9 (1/4)(2):261–343, 2001. [11] Ralf Massjung. Numerical Schemes and Well-Posedness in Nonlinear Aeroelasticity. PhD thesis, RWTH Aachen, 2002. [12] A. Meister. Asymptotic Single and Multiple Scale Expansions in the Low Mach Number Limit. SIAM J. Appl. Math., Vol. 60(1):256–271, 1999. [13] A. Meister. Analyse und Anwendung Asymptotik-basierter numerischer Verfahren zur Simulation reibungsbehafteter Str¨ omungen in allen Mach-Zahlbereichen. Habilitation, Universit¨ at Hamburg, 2001. [14] A. Meister. Asymptotic based preconditioning technique for low Mach number flows. Z. Angew. Math. Mech., 83(1):3–25, 2003. [15] A. Meister. Viscous Flow Fields at all Speeds: Analysis and Numerical Simulation. Journal of Applied Mathematics and Physics (ZAMP), 54:1010–1049, 2003. [16] S. V. Patankar and D. B. Spalding. A Calculation Procedure for Heat, Mass and Momentum Transfer in Threeidimensional Parabolic Flows. Int. J. Heat Mass Transfer, 15:1787–1805, 1972. [17] P. L. Roe. Approximate Riemann Solvers, Parameter Vectors, and Difference Schemes. J. Comput. Phys., 43:357–372, 1981. [18] T. Schneider, N. Botta, K. J. Geratz, and R. Klein. Semi-Implicit Extension of a Godunov-Type Compressible Solver Based on Low Mach Number Asymptotics II: Multi-Dimesional, Variable Density Zero Mach Number Flow. J. Comput. Phys., 155:248–286, 1999. [19] C.-W. Shu and S. Osher. Efficient Implementation of Essentially Nonoscillatory ShockCapturing Schemes. J. Comput. Phys., 77:439–471, 1988. [20] J.-S. Shuen, K.-H. Chen, and Y. Choi. A Coupled Implicit Method for Chemical Non-equilibrium Flows at All Speeds. J. Comput. Phys., 106:306–318, 1993. [21] E. Turkel. Preconditioned Methods for Solving the Incompressible and Low Speed Compressible Equations. J. Comput. Phys., 72:277–298, 1987. [22] E. Turkel and V. Vatsa. Choice of Variables and Preconditioning for Time Dependent problems. AIAA Paper, 2003-3692 CP, 2003. AIAA 16th Computational Fluid Dynamics Conference, Orlando. [23] B. van Leer, W.-T. Lee, and P. Roe. Characteristic Time-Stepping or Local Preconditioning of the Euler Equations. AIAA Paper, AIAA-91-1552, 1991. [24] Y. Wada and M.-S. Liou. A Flux Splitting Scheme with High-Resolution and Robustness for Discontinuities. AIAA Paper, 94–0083, 1994. 16
[25] J. M. Weiss and W. A. Smith. Preconditioning Applied to Variable and Constant Density Flows. AIAA J., 33(11):2050–2057, 1995. [26] I. Wenneker, A. Segal, and P. Wesseling. A Mach-uniform unstructured staggered grid method. I. J. Numerical Methods in Fluids, 40:1209–1235, 2002.
17