Asymptotically accurate high-order space and time schemes for the Euler system in the low
Mach regime
Victor Michel-Dansac
SHARK-FV, 15-19 May 2017 Giacomo Dimarco, Univ. of Ferrara, Italy
Raphaël Loubère, Univ. of Bordeaux, CNRS, France Marie-Hélène Vignal, Univ. of Toulouse, France
Funding :ANR MOONRISE
Outline
1 General context : multi-scale models and principle of AP schemes
2 An order 1 AP scheme for the Euler system in the low Mach limit
3 High order schemes in time
4 High order schemes in time and space
5 Works in progress en perspectives
General context
Multiscale model :Mεdepends on a parameterε In the (space-time) domainεcan
be small compared to the reference scale be of same order as the reference scale take intermediate values
0 0.1 0.20.3 0.4 0.50.6 0.70.8 0.9 1
1.5 1.6 1.7 1.8 1.9 2 2.1 2.2 2.3 2.4
electron density (log scale) : t=0.1
−9
−8
−7
−6
−5
−4
−3
−2
−1 0
0 0.2 0.4 0.6 0.8 1
10−10 10−5 100
x
ε
Whenεis small :M0= lim
ε→0Mε asympt. model Difficulties :
Classical explicit schemes forMε : stable and consistent if the mesh resolves all the scales ofε ⇒huge cost
Schemes forM0with meshes independent ofε But : ➠M0not valid everywhere, needsε≪1
➠location of the interface, moving interface
Principle of AP schemes
A possible solution :AP schemes
Use the multi-scale modelMεwhere you want.
Discretize it with a scheme preserving the limitε→0
➠The mesh is independent ofε: Asymptotic stability.
➠You recover an approximate solution ofM0whenε→0 : Asymptotic consistency Asymptotically stable and consistent scheme
⇒Asymptotic preserving scheme (AP) ([S.Jin] kinetic→hydro) You can use the AP scheme only to reconnectMε andM0
00000000000000 00000000000000 00000000000000 00000000000000 00000000000000 00000000000000 00000000000000 00000000000000 00000000000000 00000000000000 00000000000000 00000000000000 00000000000000 00000000000000 00000000000000 00000000000000 00000000000000 00000000000000 00000000000000 00000000000000 00000000000000 00000000000000 00000000000000 00000000000000 00000000000000 00000000000000 00000000000000 00000000000000 00000000000000 00000000000000 00000000000000 00000000000000 00000000000000 00000000000000
11111111111111 11111111111111 11111111111111 11111111111111 11111111111111 11111111111111 11111111111111 11111111111111 11111111111111 11111111111111 11111111111111 11111111111111 11111111111111 11111111111111 11111111111111 11111111111111 11111111111111 11111111111111 11111111111111 11111111111111 11111111111111 11111111111111 11111111111111 11111111111111 11111111111111 11111111111111 11111111111111 11111111111111 11111111111111 11111111111111 11111111111111 11111111111111 11111111111111 11111111111111
00000000 00000000 00000000 0000 00000000 00000000 00000000 00000000 00000000 0000 00000000 00000000 00000000 00000000 0000 00000000 00000000 00000000 0000
11111111 11111111 11111111 1111 11111111 11111111 11111111 11111111 11111111 1111 11111111 11111111 11111111 11111111 1111 11111111 11111111 11111111 1111
00000000 00000000 00000000 0000 00000000 00000000 00000000 00000000 00000000 0000 00000000 00000000 00000000 00000000 0000 00000000 00000000 00000000 0000
11111111 11111111 11111111 1111 11111111 11111111 11111111 11111111 11111111 1111 11111111 11111111 11111111 11111111 1111 11111111 11111111 11111111 1111
ε=O(1) intermediate
zone ε≪1
Mε class. scheme
M0 class. scheme
Mε AP scheme
Outline
1 General context : multi-scale models and principle of AP schemes
2 An order 1 AP scheme for the Euler system in the low Mach limit
3 High order schemes in time
4 High order schemes in time and space
5 Works in progress en perspectives
The multi-scale model and its asymptotic limit
➠Isentropic Euler system in scaled variablesx ∈Ω⊂IRd,t ≥0 (Mε)
( ∂tρ+∇·(ρu) =0, (1)ε
∂t(ρu) +∇·(ρu⊗u) +1
ε∇p(ρ) =0, (2)ε
Parameter :ε=M2=m|u|2/(γp(ρ)/ρ), M =Mach number Boundary and initial conditions :
u·n=0, on∂Ω, and
( ρ(x,0) =ρ0+ερ˜0(x),
u(x,0) =u0(x) +εu˜0(x), with∇·u0=0. The formal low Mach number limitε→0
(2)ε ⇒ ∇p(ρ) =0, ⇒ ρ(x,t) =ρ(t).
(1)ε ⇒ |Ω|ρ′(t)+ρ(t) Z
∂Ω
u·n=0, ⇒ ρ(t) =ρ(0) =ρ0, ⇒ ∇·u=0
The multi-scale model and its asymptotic limit
The asymptotic model :Rigorous limit [Klainerman, Majda, 81]
(M0)
ρ=cste=ρ0,
ρ0∇·u=0, (1)0
ρ0∂tu+ρ0∇·(u⊗u) +∇π1=0, (2)0
where
π1= lim
ε→0
1 ε
p(ρ)−p(ρ0) .
Explicit eq. forπ1∂t(1)0−∇·(2)0 ⇒ −∆π1=ρ0∇2: (u⊗u).
The pressure wave eq. fromMε :
∂t(1)ε−∇·(2)ε ⇒ ∂ttρ−1ε∆p(ρ) =∇2: (ρu⊗u) (3)ε
From a numerical point of view
Explicit treatment of(3)ε⇒conditional stability∆t ≤√ε∆x Implicit treatment of(3)ε⇒uniform stability with respect toε
An order 1 AP scheme in the low Mach numb. limit
Order1AP scheme in[Dimarco, Loubère, Vignal, SISC 2017]: Ifρnandunare known at timetn
ρn+1−ρn
∆t +∇·(ρu)n+1=0, (1) (AS) (ρu)n+1−(ρu)n
∆t +∇·(ρu⊗u)n+1
ε∇p(ρn+1) =0. (2) (AC)
∇·(2)inserted into(1):gives an uncoupled formulation ρn+1−ρn
∆t +∇·(ρu)n−∆t
ε ∆p(ρn+1)−∆t∇2: (ρu⊗u)n=0,
➠ Results uniformlyL∞stable if the space discretization is well chosen
➠ Framework of IMEX (IMplicit-EXplicit) schemes :
∂t ρ
ρu
| {z }
W
+∇· 0
ρu⊗u
| {z }
Fe(W)
+∇· ρu
p(ρ) ε Id
| {z }
Fi(W)
=0.
AP but diffusive results,1-D test-case
ε=0.99, 300 cells Class: 273 loops
CPU time 0.07 AP: 510 loops
CPU time 1.46
0 0.01 0.02 0.03 0.04 0.05 0.06
0 1 2 3 4 5 6x 10−4
Time
Timesteps
AP scheme Class. scheme
0 0.2 0.4 0.6 0.8 1
0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8
Density AP scheme Class. scheme
x
ε=10−4, 300 cells Class: 4036 loops
CPU time 0.82 AP: 57 loops
CPU time 0.14
0 0.01 0.02 0.03 0.04 0.05 0.06
10−5 10−4 10−3
Time
Timesteps
AP scheme Class. scheme
0 0.2 0.4 0.6 0.8 1
0.9999 1 1
Density
AP scheme Class. scheme
x
AP but diffusive results,1-D test-case
ε=10−4 Underlying of the viscosity
0 0.01 0.02 0.03 0.04 0.05 0.06
10−6 10−5 10−4
Time
Timesteps
AP scheme Class. scheme
0 0.2 0.4 0.6 0.8 1
0.9999 1 1
Density
AP scheme Class. scheme
x
⇓
It is necessary to usehigh order schemes But they must respect the AP properties
Outline
1 General context : multi-scale models and principle of AP schemes
2 An order 1 AP scheme for the Euler system in the low Mach limit
3 High order schemes in time
4 High order schemes in time and space
5 Works in progress en perspectives
Principle of IMEX schemes
Biblio for stiff source terms or ode pb. : Asher, Boscarino, Cafflish, Dimarco, Filbet, Gottlieb, Le Floch, Pareschi, Russo, Ruuth, Shu, Spiteri, Tadmor...
IMEX division :∂tW+∇·Fe(W) +∇·Fi(W) =0. General principle :Step n :Wnis known
Quadrature formula with intermediate values W(tn+1) =W(tn)−
Z tn+1 tn
∇·Fe(W(t))dt
| {z }
− Z tn+1
tn
∇·Fi(W(t))dt
| {z }
Wn+1=Wn −∆t
s
∑
j=1
˜bj ∇·Fe(Wn,j) −∆t
s
∑
j=1
bj ∇·Fi(Wn,j)
Quadratures exact on the constants :∑sj=1˜bj =∑sj=1bj=1
Intermediate valuestn,j=tn+cj∆t Wn,j ≈W(tn) +
Z tn,j tn
∂tW(t)dt =Wn+ ∆t Z cj
0
∂tW(tn+s∆t)ds
Principle of IMEX schemes
Quadrature formula for intermediate values :i=1,···,s Wn,j=Wn−∆t
∑
k<j
˜
aj,k∇·Fe(Wn,k)−∆t
∑
k≥j
aj,k∇·Fi(Wn,k),
Quadratures exact on the constants :
s k
∑
=1˜ aj,k = ˜cj,
s k
∑
=1aj,k =cj
Wn+1=Wn −∆t
s
∑
j=1
˜bj ∇·Fe(Wn,j) −∆t
s
∑
j=1
bj ∇·Fi(Wn,j) Butcher tableaux :
Expl. part Imp. part
0 0 0 ··· 0
c2 a˜2,1 0 . . . 0
... ... . .. . .. ... cs ˜as,1 . . . ˜as,s−1 0
˜b1 . . . ˜bs
c1 a1,1 0 ··· 0
c2 a2,1 a2,2 . . . 0
... ... . .. . .. ... cs as,1 . . . as,s−1 as,s
b1 . . . bs
Conditions for 2nd order :
∑
bjcj =∑
bj˜cj=∑
˜bjcj=∑
˜bj˜cj=1/2AP Order 2 scheme for Euler
ARS scheme (Asher, Ruuth, Spiteri, 97) :“only 1” intermediate step
0 0 0 0
β β 0 0
1 β−1 2−β 0 β−1 2−β 0
0 0 0 0
β 0 β 0
1 0 1−β β 0 1−β β
β=1−√12
Wn,1=Wn
Wn,2=W⋆=Wn−∆tβ∇·Fe(Wn)−∆tβ∇·Fi(W⋆),
Wn,3=Wn+1=Wn−∆t(β−1)∇·Fe(Wn)−∆t(2−β)∇·Fe(W⋆)
−∆t(1−β)∇·Fi(W⋆)−∆tβ∇·Fi(Wn+1).
0 0.2 0.4 0.6 0.8 1
1 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2
Densityε=1
Exact AP Order 1 AP Order 2
x
0 0.2 0.4 0.6 0.8 1
1 1.00001 1.00002 1.00003 1.00004 1.00005 1.00006 1.00007 1.00008 1.00009 1.0001
Densityε=10−4
Exact AP Order 1 AP Order 2
x
Better understand the oscillations
For a scalar hyperbolic eq. ∂tw+∂xf(w) =0
Oscillations measured by the Total Variation and theL∞norm TV(wn) =
∑
j
|wjn+1−wjn| kwnk∞= max|wjn|
TVD (Total Variation Diminishing) property andL∞stability TV(wn+1)≤TV(wn)
kwn+1k∞≤ kwnk∞ ⇔no oscillations
First idea :Find an AP order 2 scheme which satisfies these properties Impossible
Theorem(Gottlieb,Shu,Tadmor, 01)There are no implicit Runge-Kutta schemes of order higher than one which preserves the TVD property.
A limiting procedure
Another idea :use a limited scheme
Wn+1=θWn+1,O2+ (1−θ)Wn+1,O1, Wn+1,Oj =orderj AP approximation
θ∈[0,1]largest value such thatWn+1does not oscillate Toy scalar equation ∂tw+√ci
ε∂xw+ce∂xw=0
Order 1 AP scheme with upwind space discretizations (ce,ci >0) wjn+1,O1=wjn−√ci
ε(wjn+1,O1−wjn−+11,O1)−ce(wjn−wjn−1) Order 2 AP scheme ARS with the parameterβ=1−1/√
2 Lemma(VMD,Loubère,Vignal)Under the CFL condition∆t ≤∆x/ce
θ≤ β
1−β≃0.41 ⇒
TV(wn+1)≤TV(wn) kwn+1k∞≤ kwnk∞
A MOOD procedure
Limited AP scheme :
wn+1,lim=θwn+1,O2+ (1−θ)wn+1,O1 with θ=1−ββ Problem :More accurate than order 1 but not order 2 Solution :MOOD procedure(Clain, Diot, Loubère, 11)
On the toy equationwn+1,HO MOOD AP scheme,CFL∆t≤∆x/ce
Compute the order 2 approximationwn+1,O2
Detect if the max. principle is satisfied :kwn+1,O2k∞≤ kwnk∞? If not, compute the limited AP approximationwn+1,lim
0 0.2 0.4 0.6 0.8 1
-1.5 -1 -0.5 0 0.5 1 1.5
wforε=10−2
Exact AP Order 1 AP Order 2 AP limited MOOD AP
x
0 0.2 0.4 0.6 0.8 1
-1.5 -1 -0.5 0 0.5 1 1.5
Exact AP Order 1 AP Order 2 AP limited MOOD AP
x
wforε=10−4
Outline
1 General context : multi-scale models and principle of AP schemes
2 An order 1 AP scheme for the Euler system in the low Mach limit
3 High order schemes in time
4 High order schemes in time and space
5 Works in progress en perspectives
Error curves for the model problem
Order 2 in space with MUSCL but explicit slopes for implicit fluxes Error curves on a smooth solution for the toy model
100 200 400 800 1600
10-5 10-4 10-3 10-2 10-1 100
AP Order 1 AP Order 2 AP limited MOOD AP L∞error
ε=1
number of cells 400 800 1600 3200 6400
10-3 10-2 10-1 100
AP Order 1 AP Order 2 AP limited MOOD AP
L∞error
ε=10−2
number of cells
400 800 1600 3200 6400
10-5 10-4 10-3 10-2 10-1
AP Order 1 AP Order 2 AP limited MOOD AP L∞error
ε=10−4
number of cells
Second-order scheme for the Euler equations
Recall the first-order IMEX scheme for the Euler system :
ρn+1−ρn
∆t +∇·(ρu)n+1=0, (1) (ρu)n+1−(ρu)n
∆t +∇·(ρu⊗u)n+1
ε∇p(ρn+1) =0. (2) We apply the same convex combination procedure :
Wn+1,lim =θWn+1,O2+ (1−θ)Wn+1,O1, withθ=β/(1−β).
we use the value ofθgiven by the study of the model problem But we need we need a criterion to detect oscillations in the MOOD procedure !
Euler equations : MOOD procedure
The previous detector (L∞criterion on the solution) is irrelevant for the Euler equations, sinceρandudo not satisfy a maximum principle.
we needanother detection criterion
We pick theRiemann invariantsΦ± =u∓γ−21 s
1 ε
∂p(ρ)
∂ρ , since they satisfy an advection equation for smooth solutions.
On the Euler equationsWn+1,HO MOOD AP scheme,CFL∆t≤∆x/λ Compute the order 2 approximationWn+1,O2
Detect if both Riemann invariants break the maximum principle at the same time
If so, compute the limited AP approximationWn+1,lim
Euler equations : Numerical results
Riemann problem : left rarefaction wave, right shock ; top curves :ε=1 ; bottom curves :ε=10−4
0 0.2 0.4 0.6 0.8 1 1
1.2 1.4 1.6 1.8 2
Densityρ
0 0.2 0.4 0.6 0.8 1 1 1.2 1.4 1.6 1.8 Momentumq=ρu
0 0.2 0.4 0.6 0.8 1 1
1.00005 1.0001
exact solution first-order second-order MOOD-AP scheme 0 0.2 0.4 0.6 0.8 11
1.003 1.006 1.009
Euler equations : Numerical results
102 103
10−4 10−3 10−2 10−1
ε=1
103 10−8
10−7 10−6 10−5 10−4
ε=10−2
103 104
10−10 10−9 10−8 10−7
ε=10−4 first-order
second-order limited AP MOOD AP
Euler equations : Numerical results
Initial data for the explosion : density cylinder (left) ;
outwards velocity field (right).
−1 0
1−1 0
1 1
1.5 2
1 1.2 1.4 1.6 1.8 2
−1 −0.5 0 0.5 1
−1
−0.5 0 0.5 1
0 0.1 0.2 0.3 0.4
Euler equations : Numerical results
−1 0
1−1 0 1 1
1.5
reference solution
0.8 1 1.2 1.4 1.6
−1 0
1−1 0 1 1
1.5
first-order scheme
−1 0
1−1 0 1 1
1.5
second-order scheme
−1 0
1−1 0 1 1
1.5
MOOD-AP scheme
Outline
1 General context : multi-scale models and principle of AP schemes
2 An order 1 AP scheme for the Euler system in the low Mach limit
3 High order schemes in time
4 High order schemes in time and space
5 Works in progress en perspectives
Works in progress and perspectives
Choose the order 2 time discretization to get aθas close as possible to 1 for the stability
Study a local value ofθ, depending on the presence of oscillations in a given cell
Extension to full Euler (order 1 scheme exists but we have trouble decomposing between an explicit and an implicit flux)
Simulations of physically relevant phenomena Domain decomposition with respect toε
0000000000000 0000000000000 0000000000000 0000000000000 0000000000000 0000000000000 0000000000000 0000000000000 0000000000000 0000000000000 0000000000000 0000000000000 0000000000000 0000000000000 0000000000000 0000000000000 0000000000000 0000000000000 0000000000000 0000000000000 0000000000000 0000000000000 0000000000000 0000000000000 0000000000000 0000000000000 0000000000000 0000000000000 0000000000000 0000000000000 0000000000000 0000000000000 0000000000000
1111111111111 1111111111111 1111111111111 1111111111111 1111111111111 1111111111111 1111111111111 1111111111111 1111111111111 1111111111111 1111111111111 1111111111111 1111111111111 1111111111111 1111111111111 1111111111111 1111111111111 1111111111111 1111111111111 1111111111111 1111111111111 1111111111111 1111111111111 1111111111111 1111111111111 1111111111111 1111111111111 1111111111111 1111111111111 1111111111111 1111111111111 1111111111111 1111111111111
000000 000000 000000 000 000000 000000 000000 000000 000000 000 000000 000000 000000 000000 000 000000 000000 000000
111111 111111 111111 111 111111 111111 111111 111111 111111 111 111111 111111 111111 111111 111 111111 111111 111111
000000 000000 000000 000 000000 000000 000000 000000 000000 000 000000 000000 000000 000000 000 000000 000000 000000
111111 111111 111111 111 111111 111111 111111 111111 111111 111 111111 111111 111111 111111 111 111111 111111 111111
ε=O(1) intermediate
zone ε≪1
Mε class. scheme
M0 class. scheme
Mε AP scheme
Thanks !
Bibliography
All speed schemes
Preconditioning methods :[Chorin 65], [Choi, Merkle 85], [Turkel, 87], [Van Leer, Lee, Roe, 91], [Li,Gu 08,10],···
Splitting and pressure correction : [Harlow, Amsden, 68,71], [Karki, Patankar, 89], [Bijl, Wesseling, 98], [Sewall, Tafti, 08], [Klein, Botta, Schneider, Munz, Roller 08],
[Guillard, Murrone, Viozat 99, 04, 06]
[Herbin, Kheriji, Latché 12,13],···
➠ Asymptotic preserving schemes
[Degond, Deluzet, Sangam, Vignal, 09], [Degond, Tang 11], [Cordier, Degond, Kumbaro 12], [Grenier, Vila, Villedieu 13]
[Dellacherie, Omnes, Raviart,13],
[Noelle, Bispen, Arun, Lukacova, Munz,14],
[Chalons, Girardin, Kokh,15] [Dimarco, Loubère, Vignal, 17]