• Aucun résultat trouvé

Second order Implicit-Explicit Total Variation Diminishing schemes for the Euler system in the low Mach regime

N/A
N/A
Protected

Academic year: 2022

Partager "Second order Implicit-Explicit Total Variation Diminishing schemes for the Euler system in the low Mach regime"

Copied!
32
0
0

Texte intégral

(1)

Second order Implicit-Explicit Total Variation Diminishing schemes for the Euler system in

the low Mach regime

Victor Michel-Dansac

Workhop bas Mach, 20-22 Nov. 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

(2)

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 Second-order schemes in time

4 Second-order schemes in time and space

5 Work in progress and perspectives

(3)

General context

1/23

Multiscale modelMε, depending on a parameterε In the (space-time) domain,εcan

be of same order as the reference scale;

be small compared to the reference scale;

take intermediate values.

0 0.10.20.30.40.50.60.70.80.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 epsilon

Whenεis small:M0= lim

ε0Mε asympt. model Difficulties:

Classical explicit schemes forMε: they are stable and consistent if the mesh resolves all the scales ofε. =⇒ very costly whenε→0 Schemes forM0 =⇒ the mesh is independent ofε

But: àM0is not valid everywhere, it needsε1 àthe interface may be moving: how to locate it?

(4)

Principle of AP schemes

2/23

A possible solution:Asymptotic Preserving (AP) schemes Use the multi-scale modelMεeven for smallε.

DiscretizeMεwith a scheme preserving the limitε→0.

àThe mesh is independent ofε: Asymptotic stability.

àRecovery of an approximate solution ofM0whenε→0:

Asymptotic consistency.

àAsymptotically stable and consistent scheme

Asymptotic preserving scheme (AP).

([Jin, ’99] kinetichydro) The AP scheme may be used only to reconnectMεandM0.

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] kinetichydro) You can use the AP scheme only to reconnectMεandM0

ε=O(1) intermediate

zone ε1

Mε class. scheme

M0 class. scheme

Mε AP scheme

(5)

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 Second-order schemes in time

4 Second-order schemes in time and space

5 Work in progress and perspectives

(6)

The multi-scale model and its asymptotic limit

3/23

àIsentropic Euler system in scaled variables: x∈Ω⊂IRd,t ≥0

(Mε)

( ∂tρ+∇·(ρu) =0 (1)ε

t(ρu) +∇·(ρu⊗u) +1

ε∇p(ρ) =0 (2)ε (withp(ρ) =ργ) Parameter:ε=M2=m|u|2/(γp(ρ)/ρ), M =Mach number Boundary and initial conditions:

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)ε ⇒ |Ω|ρ0(t)+ρ(t)

Z

n=0 ⇒ ρ(t) =ρ(0) =ρ0 ⇒ ∇·u=0

(7)

The multi-scale model and its asymptotic limit

4/23

The asymptotic model:Rigorous limit [Klainerman & Majda, ’81]:

(M0)





ρ=cst=ρ0,

ρ0∇·u=0, (1)0

ρ0tu+ρ0∇·(u⊗u) +∇π1=0, (2)0

where

π1= lim

ε→0

1 ε

p(ρ)−p0) .

Explicit eq. forπ1:t(1)0−∇·(2)0 ⇒ −∆π102: (u⊗u) The pressure wave equation 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ε

(8)

An order 1 AP scheme in the low Mach limit

5/23

Time discretization:

[Degond, Deluzet, Sangam & Vignal, ’09], [Degond & Tang, ’11], [Chalons, Girardin & Kokh, ’15]

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) implicit treatment of the pressure wave eq.⇒uniform stability inε ε→0 gives ∇p(ρn+1) =0 ⇒ consistency at the limit

∇·(2)inserted into(1): gives an uncoupled formulation ρn+1−ρn

∆t +∇·(ρu)n−∆t

ε ∆p(ρn+1)−∆t∇2: (ρu⊗u)n=0

(9)

An order 1 AP scheme in the low Mach limit

6/23

The scheme proposed in [Dimarco, Loubère & Vignal, ’17]:

à Framework of IMEX (IMplicit-EXplicit) schemes:

t ρ ρu

| {z }

W

+∇· 0

ρu⊗u

| {z }

Fe(W)

+∇· ρu

p(ρ) ε Id

| {z }

Fi(W)

=0.

àThe C.F.L. condition comes from the explicit fluxFe(W):

∆t ≤ ∆x

λnj = ∆x 2|ujn|,

whereλnj are the eigenvalues of the explicit Jacobian matrixDFe(Wjn). àA linear stability analysis yields: if the implicit part is

centeredL2stability;

upwindTVD andLstability.

SSP Strong Stability Preserving, [Gottlieb, Shu & Tadmor, ’01]

(10)

AP but diffusive results, 1D test case

7/23

ε=0.99, 300 cells Class: 273 loops

CPU time 0.07 AP: 510 loops

CPU time 1.46

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

1st-order AP 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

1st-order AP Class. scheme

x

ε=104, 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

1st-order AP Class. scheme

0 0.2 0.4 0.6 0.8 1

0.9999 1 1

Density

1st-order AP Class. scheme

x

ε=104, 300 cells Class: 4036 loops

CPU time 0.82 AP: 57 loops

CPU time 0.14

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

1st-order AP 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

1st-order AP Class. scheme

x

ε=104, 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

1st-order AP Class. scheme

0 0.2 0.4 0.6 0.8 1

0.9999 1 1

Density

1st-order AP Class. scheme

x

(11)

AP but diffusive results, 1D test case

8/23

ε=104 Underlying of the viscosity

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 use high order schemes But they must respect the AP properties

It is necessary to usehigh order schemes But they must respect the AP properties

we also wish to retain theLstability

(12)

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 Second-order schemes in time

4 Second-order schemes in time and space

5 Work in progress and perspectives

(13)

Principle of IMEX schemes

9/23

Bibliography for stiff source terms or ODE problems: Ascher, Boscarino, Cafflish, Dimarco, Filbet, Gottlieb, Happenhofer, Higueras, Jin, Koch, Kupka, 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)−∆tZ tn+1

tn ∇·Fe(W(t))dt

| {z }

−∆tZ 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 values at timestn,j=tn+cj∆t:

Wn,jW(tn) + Z tn,j

tntW(t)dt =Wn+ ∆tZ cj

0tW(tn+s∆t)ds

(14)

Principle of IMEX schemes

10/23

Quadrature formula for intermediate values:i=1,···,s Wn,j=Wn−∆t

k<j

˜aj,k∇·Fe(Wn,k)−∆t

kj

aj,k∇·Fi(Wn,k),

Quadratures exact on the constants:

s

k=1

˜aj,k = ˜cj,

s

k=1

aj,k =cj

Wn+1=Wn−∆t

s

j=1

˜bj ∇·Fe(Wn,j)−∆t

s

j=1

bj ∇·Fi(Wn,j) Butcher tableaux:

Explicit part Implicit part

0 0 0 ··· 0

c2 ˜a2,1 0 . . . 0

... ... ... ... ...

cs ˜as,1 . . . ˜as,s1 0

˜b1 . . . ˜bs

c1 a1,1 0 ··· 0

c2 a2,1 a2,2 . . . 0

... ... ... ... ...

cs as,1 . . . as,s1 as,s

b1 . . . bs

Conditions for 2nd order:

bjcj=

bj˜cj=

b˜jcj =

˜bj˜cj =1/2

(15)

AP Order 2 scheme for Euler

11/23

ARS scheme [Ascher, Ruuth & Spiteri, ’97]:

“only one” 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−√1 2

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)

(16)

AP Order 2 scheme for Euler

12/23

Densityρfor the ARS time discretization:

0 0.2 0.4 0.6 0.8 1 1

1.05 1.1

ε=101

0 0.2 0.4 0.6 0.8 11 1.005 1.01 ε=102

0 0.2 0.4 0.6 0.8 1 1

1.0005 1.001

ε=103

0 0.2 0.4 0.6 0.8 11 1.00005 1.0001

ε=104 exact 1st order 2nd order

(17)

Better understand the oscillations

13/23

Consider the scalar hyperbolic equationtw+∂xf(w) =0.

Oscillations measured by the Total Variation and theLnorm:

TV(wn) =

j |wjn+1wjn| and kwnk= max

j |wjn|.

TVD (Total Variation Diminishing) property andLstability:

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.

(18)

A limiting procedure

14/23

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+cexw+√ciε∂xw=0

Order 1 AP scheme with upwind space discretizations (ce,ci >0):

wjn+1,O1=wjnce(wjnwjn1)−√ciε(wjn+1,O1wjn+11,O1).

Order 2 AP scheme: ARS with the parameterβ=1−1/√ 2.

Lemma(Dimarco, Loubère, M.-D., Vignal): Under the CFL condition∆t ≤∆x/ce,

θ= β

1−β '0.41 ⇒

TV(wn+1)≤TV(wn), kwn+1k≤ kwnk.

(19)

A MOOD procedure

15/23

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: see [Clain, Diot & Loubère, ’11]

On the toy equation:wn+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 0

1 ε=102

0 0.2 0.4 0.6 0.8 1

1 0 ε=104 1

exact 1st order 2nd order TVD-AP TVD-AP-MOOD

(20)

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 Second-order schemes in time

4 Second-order schemes in time and space

5 Work in progress and perspectives

(21)

Error curves for the toy scalar equation

16/23

Order 2 in space: MUSCL (with the MC limiter) with explicit slopes for implicit fluxes.

Error curves on a smooth solution for the toy scalar equation:

103 106

105 104 103 102

ε=1

103 104

103 102 101 100

ε=102

103 104

103

ε=104 first-order

second-order TVD-AP

TVD-AP-MOOD

(22)

Second-order scheme for the Euler equations

17/23

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 toy scalar equation.

But how can we detect oscillations for the MOOD procedure?

(23)

Euler equations: MOOD procedure

18/23

The previous detector (Lcriterion 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 s1

ε

∂p(ρ)

∂ρ : in a Riemann problem, at least one of them satisfies a maximum principle.

[Conway & Smoller, ’73]

On the Euler equations:

Wn+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.

(24)

Euler equations: 1D Numerical results

19/23

Riemann problem: left rarefaction wave, right shock ; top curves:ε=1 ; bottom curves: ε=104

0 0.2 0.4 0.6 0.8 1 1.12

1.4 1.6 1.82

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

0 0.2 0.4 0.6 0.8 11 1.003 1.006 1.009

exact 1st order 2nd order TVD-AP-MOOD

(25)

Euler equations: 1D Numerical results

20/23

Error curves inLnorm, smooth 1D solution

102 104

103 102 101

ε=1

102 103

106 105 104 103

ε=102

104 109

108 107 106 105

ε=104

first-order second-order TVD-AP

TVD-AP-MOOD

(26)

Euler equations: 2D Numerical results

21/23

Error curves inLnorm, smooth 2D traveling vortex

103 104

104 103 102

ε=1

103 104

106 105 104 103

ε=102

103 104

107 106 105

ε=104

first-order second-order TVD-AP

TVD-AP-MOOD

(27)

Euler equations: 2D Numerical results

200ε=×10200 cells−5 22/23

reference solution obtained solving the vorticity formulation

tω+U·∇ω=0, withω=∂xv−∂yu

(28)

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 Second-order schemes in time

4 Second-order schemes in time and space

5 Work in progress and perspectives

(29)

Work in progress and perspectives

23/23

Pick an order≥2 andL2-stable time discretization to get aθas close as possible to 1 for the stability of the limited scheme.

Study a local value ofθ, depending on the presence of oscillations in a given cell.

Extension to full Euler (order 1 scheme exists).

Domain decomposition with respect toε:

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] kinetichydro) You can use the AP scheme only to reconnectMεandM0

ε=O(1) intermediate

zone ε1

Mε class. scheme

M0

class. scheme Mε AP scheme

(30)

Thanks!

(31)

Euler equations: 2D Numerical results

To obtain a 2D reference incompressible solution, setω=∂xv−∂yuand consider thevorticity formulationof the incompressible Euler equations:

tω+U·∇ω=0,

∇·U=0 =⇒ ∃stream functionΨsuch that

U = t(∂yΨ,−∂xΨ),

−∆Ψ = ω.

To get the time evolution of the vorticity fromωn:

1 solve−∆Ψnn forΨn(with periodic BC and assuming that the average ofΨvanishes);

2 getUn fromUn=t(∂yΨn,−∂xΨn);

3 solve∂tω+Un·∇ωn=0 to getωn+1.

We get a reference incompressible vorticity ω(x,t), to be compared to the vorticity of the solution given by the compressible scheme with smallε(we takeε=M2=105).

(32)

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, Omnès & Raviart, ’13],

[Noelle, Bispen, Arun, Lukáˇcová & Munz, ’14],

[Chalons, Girardin & Kokh, ’15] [Dimarco, Loubère & Vignal, ’17]

Références

Documents relatifs

We have proved that second order accuracy (in the sense of the truncation error) can be maintained, even at a nonsonic ex- tremum ; this last property and Total Variation

We propose a family of simple second order accurate schemes for the nu- merical solution of Euler equation of gas dynamics that are (linearly) implicit in the acoustic

The estimation of net joint forces and torques deals with solving the problem of inverse dynamics ( Hatze, 2000 ; Winter, 1990 ), where body segments parameters (body segment

L'étude actuelle représente un premier rapport algérien qui met en corrélation le cancer du sein inflammatoire et le niveau d’expression du facteur de prolifération

Des bactéries isolées à partir des nodules de la légumineuse du genre Phaseolus avec deux variétés ; P.vulgariset P.coccineus sont caractérisés par une étude

This is probably due to the fact that their Level Set function is used in the framework of a CLSVOF method and it has been observed that the order of convergence of curvature

A projected gradient descent uses this projection to solve lin- ear inverse problems under a total variation constraint. Addi- tional structural constraints could also be

We compare the SI two-speed scheme with the classical Rusanov scheme with 120 × 120 cells. 6) shows 2D plots of the norm of the velocity at final time T f = 1 as well as 1D cuts of