Simulation of Multi-Material Compressible Flows with Interfaces - - PowerPoint PPT Presentation

simulation of multi material compressible flows with
SMART_READER_LITE
LIVE PREVIEW

Simulation of Multi-Material Compressible Flows with Interfaces - - PowerPoint PPT Presentation

Simulation of Multi-Material Compressible Flows with Interfaces Samuel KOKH DEN/DANS/DM2S/SFME/LETR CEA Saclay Congr` es SMAI Guidel May 26, 2011 KOKH (CEA) Int MultiMat Fl. Guidel May 2011 1 / 110 Outline Framework and Interface


slide-1
SLIDE 1

Simulation of Multi-Material Compressible Flows with Interfaces

Samuel KOKH

DEN/DANS/DM2S/SFME/LETR — CEA Saclay

Congr` es SMAI – Guidel

May 26, 2011

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 1 / 110

slide-2
SLIDE 2

Outline

1

Framework and Interface Capture Methods

2

Lagrange-Remap Method

3

The Numerical Scheme

4

Numerical Results

5

Parallel Implementation

6

3D Simulation

7

High-Order Strategy

8

N-Compononent Flow

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 2 / 110

slide-3
SLIDE 3

Collaborations

The present work is the result of several collaborations

  • M. Billaud-Friess
  • B. Boutin
  • F. Caetano
  • F. Faccanoni
  • F. Lagouti`

ere

  • L. Navoret

CCRT Support Team

  • A. Geay
  • V. Michel
  • V. Faucher
  • P. Salvatore
  • O. Gr´

egoire

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 3 / 110

slide-4
SLIDE 4

Outline

1

Framework and Interface Capture Methods Industrial Application Problem Examples Simulation Framework Model Main Properties

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 4 / 110

slide-5
SLIDE 5

A Target (Open) Problem for Nuclear Safety Simulation

Phenomenon

Liquid phase heated by a wall (pool boiling) at a given temperature Twall. As Twall increases there is a transition from the Nucleate Boiling Regime to the Film Boiling Regime. This transition is still not understood.

Nucleate Boiling Critical Flux Film Boiling source : http://www.spaceflight.esa.int/users/fluids/TT_boiling.htm

A difficult problem Determining the most significant physical scale is still an open issue Performing experiments is difficult.

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 5 / 110

slide-6
SLIDE 6

Damage after “insulation” by a vapor film (Omega Experiment, CEA)

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 6 / 110

slide-7
SLIDE 7

More Application Examples

Nuclear Safety

Boiling Crisis Vapor Explosion Fluid-Structure Interaction Security Study Involving Free Surface Dynamics

Comubstion Engines

Fuel Injection(subsonic and supersonic jets)

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 7 / 110

slide-8
SLIDE 8

And More. . .

Fluid Flow in Food Processing

mixing paste injection . . .

Laser ICF

Study of N-Components Flow (M. Billaud-Friess)

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 8 / 110

slide-9
SLIDE 9

Simulation Framework

Physical Framework

Simulation of two-component flows with interfaces Each fluid k = 0, 1 is compressible, EOSk: (ρk, Pk) → εk Single velocity kinematics and the interface is passively advected at the local velocity

Numerical Method “Guidelines”

Focus on scalable methods No interface reconstruction

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 9 / 110

slide-10
SLIDE 10

A First Model Problem: Free Boundary Coupling Problem

Coupling Problem with a Free Boundary

The problem can be expressed as a simple Euler×Euler coupling problem across a moving boundary Γ(t) where both pressure and velocity are continuous.

Γ(t) fluid 1 Ω1(t) fluid 0 Ω0(t)

e = ε + u2/2

Coupled Euler Systems

∂ ∂t

  ρ ρu ρe  + ∂

∂x

  ρu ρu2 + P0 (ρe + P0)u  =0, x ∈Ω0(t)

∂ ∂t

  ρ ρu ρe  + ∂

∂x

  ρu ρu2 + P1 (ρe + P1)u  =0, x ∈Ω1(t) P and u continuous across Γ(t)

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 10 / 110

slide-11
SLIDE 11

A Second Model Problem: Global Formulation

“Equivalent” Problem: Coupling via an Augmented System

The boundary = the discontinuity locus of an additional variable z called a “color function” which is passively advected at local velocity.

Γ(t) fluid 1 z = 1 P = P1 fluid 0 z = 0 P = P0

Extended Euler System

∂ ∂t     ρ ρu ρe ρz    + ∂ ∂x     ρu ρu2 + P (ρe + P)u ρuz    =0, x ∈Ω z(t = 0, x) ∈ {0, 1} P such that P(z, ρ, ε)=

  • P0(ρ, ε), if z =0

P1(ρ, ε), if z =1

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 11 / 110

slide-12
SLIDE 12

Modelling Issues

Values z ∈ {0, 1}, t = 0

Classical approx. strategies for ∂tρz + div(ρuz) = 0

  • r

∂tz + u · ∇z = 0

Values 0 < z < 1, t > 0

EOS=              EOS0 if z = 0 ? if 0<z <1 EOS1 if z = 1

Γ(t) fluid 1 z = 1 P = P1 fluid 0 z = 0 P = P0 0<z <1 fluid 1 z = 1 P = P1 fluid 0 z = 0 P = P0

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 12 / 110

slide-13
SLIDE 13

Modelling Issues

Values z ∈ {0, 1}, t = 0

Classical approx. strategies for ∂tρz + div(ρuz) = 0

  • r

∂tz + u · ∇z = 0

Values 0 < z < 1, t > 0

EOS=              EOS0 if z = 0 Numerical Mixture Model if 0<z <1 EOS1 if z = 1

Γ(t) fluid 1 z = 1 P = P1 fluid 0 z = 0 P = P0 0<z <1 fluid 1 z = 1 P = P1 fluid 0 z = 0 P = P0

(Numerical?) Mixture Model: Abgrall, Allaire, Clerc, Coquel, Dellacherie, Despr´ es, H´ erard, Karni, Kokh, Lagouti` ere, Larrouturou, Massoni, Saurel, Seguin, Shyue, Kapila, Menikoff, Miller, Puckett. . .

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 12 / 110

slide-14
SLIDE 14

Five-Equation Model (with isobaric closure)

Conservative Form

                 ∂tρ + div(ρu) = 0 ∂t(ρu) + div(ρu ⊗ u + PId) = 0 ∂t(ρe) + div[(ρe + P)u] = 0 ∂t(ρy) + div(ρyu) = 0 (partial mass conservation) ∂t(ρz) + div(ρzu) = 0, (color function transport)

(Allaire, Clerc, Kokh)

ρ = zρ1 + (1 − z)ρ0, e = ε + |u|2/2, y = zρ1/ρ, ρε = zρ1ε1(ρ1, P) + (1 − z)ρ0ε0(ρ0, P)

(Isobaric closure)

slide-15
SLIDE 15

Five-Equation Model (with isobaric closure)

Quasi-Conservative Form (used for discretization)

                 ∂tρ + div(ρu) = 0 ∂t(ρu) + div(ρu ⊗ u + PId) = 0 ∂t(ρe) + div[(ρe + P)u] = 0 ∂t(ρy) + div(ρyu) = 0 (partial mass conservation) ∂tz + u · ∇z = 0, (color function transport)

(Allaire, Clerc, Kokh)

ρ = zρ1 + (1 − z)ρ0, e = ε + |u|2/2, y = zρ1/ρ, ρε = zρ1ε1(ρ1, P) + (1 − z)ρ0ε0(ρ0, P)

(Isobaric closure) Rankine-Hugoniot Relations: Weak solutions are well defined. No ambiguity with the non-conservative product u · ∇z

slide-16
SLIDE 16

Model Main Properties

The system can be expressed in an equivalent full conservative form The solution of the Riemann problem is available. Hyperbolicity (real characteristics) is ensured when ξk = (∂ρkεk/∂Pk)ρk > 0 (reads γk > 1 for perfect gases) Eigenstructure of the system: {u − c, u, u, u, u + c} u ± c: GNL field (acoustic waves), u: LD field (material waves) Sound velocity c given by ξc2 = yξ1c2

1 + (1 − y)ξ0c2 0,

ξ = zξ1 + (1 − z)ξ0, ck = pure fluid k sound velocity No entropy so far for the general case. . .

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 14 / 110

slide-17
SLIDE 17

A Few Remarks about Mixture Models

Holy Cow! This Void Fraction Equation is Wrong!! Numerous other models use: ∂tz + u · ∇z = βdivu Where is β? (Murrone, Kapila, Guillard, Massoni, Saurel, Puckett, Miller, Koren. . . ) Sacrebleu! The Mixture Model is Wrong!! P1 = P0 is wrong in a physical mixture (strong shock impacting a mixture)

Similar Equations but Very Different Physics

Numerical Mixture = Physical Mixture: Parent averaged scale model ⇒ Reduced averaged scale model. Our model cannot produce mixture zone in the exact solution for initial values such that. ∀x, z(x, t = 0) ∈ {0, 1} ⇒ ∀x, z(x, t > 0) ∈ {0, 1} z is governed by a LD Field = z values are advected.

slide-18
SLIDE 18

Numerical Issues (1)

Drawback

Most schemes tend to smear (sooner or later) the interface until it cannot be properly located. Kelvin-Helmholtz Instability. Possible cure without interface reconstruction?

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 16 / 110

slide-19
SLIDE 19

Outline

2

Lagrange-Remap Method

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 17 / 110

slide-20
SLIDE 20

“Target” Discretization Strategy

We aim at deriving a time-explicit quasi-conservative Finite-Volume type discretization of the system. ρW = (ρy, ρ, ρu, ρe)T ρn+1

j

Wn+1

j

− ρn

j Wn j + λ(Fj+1/2 − Fj−1/2) = 0

zn+1

j

− zn

j + λ(uj+1/2

zj+1/2 − uj−1/2 zj−1/2) − λzn

j (uj+1/2 − uj−1/2) = 0

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 18 / 110

slide-21
SLIDE 21

Finite-Volume via a Lagrange-Remap Approach

Lagrange-Remap

The discretization of the convection operator is splitted into two step Lagrange Step:

◮ the convection via a Lagrangian description ◮ transport is frozen (while the mesh is distorted in the original

Eulerian mesh)

Remap (or Projection) Step:

◮ resample the solution over the original Eulerian mesh ◮ equivalent to account for the fluid transport KOKH (CEA) Int MultiMat Fl. Guidel May 2011 19 / 110

slide-22
SLIDE 22

Lagrangian Coordinates

∂X ∂t (x, t) = u(X (x, t), t), X (x, t = 0) = x Dta = (∂˜ a/∂t)X , (∂a/∂x)t = ( ρ|t=0/ ρ)(∂˜ a/∂X )t

The system reads (for regular solutions)

         Dtz = 0, Dty = 0 ρDt   1/ρ u e   +   −u P Pu  

x

= 0 Dt· = ∂t · +u∂x·

Euler Coord.

a(x, t) ← →

Lagrange Coord.

  • a(X , t)

(L)         

  • zt = 0,
  • yt = 0
  • ρt=0

  1/ ρ

  • u
  • e

 

t

+   − u

  • P
  • P

u  

X

=0

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 20 / 110

slide-23
SLIDE 23

Lagrange-Remap Process

We only consider a single timestep: tn → tn+1.

Map the Euler variable

  • nto the Lagrange

variable.

an

j =

an

j

Update the Lagrange Variable

  • an+1

j

∼ aj

Final Euler Variable: Resample the solution

  • ver the original mesh

an+1

j an

j−1

an

j

an

j+1

  • aj−1
  • aj
  • aj+1

an+1

j−1

an+1

j

an+1

j+1

∆x Lagrange Step: solve system (L) tn → tn+1 ∆t Remapping Step: Compute the Euler variable at time tn+1

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 21 / 110

slide-24
SLIDE 24

Outline

3

The Numerical Scheme Lagrange Step Remapping Step: General Structure Remapping Step: Optimizing the Numerical Diffusion

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 22 / 110

slide-25
SLIDE 25

Scheme for the Lagrange Step

Acoustic Scheme (Despr´

es) / Suliciu-Type Relaxation Scheme

           1/ ρj − 1/ρn

j

  • uj − un

j

  • ej − en

j

  + λ ρn

j

  −uj+1/2 + uj−1/2 Pj+1/2 − Pj−1/2 Pj+1/2uj+1/2 − Pj−1/2uj−1/2   = 0

  • zj = zn

j ,

  • yj = yn

j ,

λ = ∆t/∆x

Flux Formulas

(ρc)∗

j+1/2 =

  • max[ρn

j (cn j )2, ρn j+1(cn j+1)2] min(ρn j , ρn j+1)

Pj+1/2 = 1 2(Pn

j + Pn j+1) − 1

2(ρc)∗

j+1/2(un j+1 − un j )

uj+1/2 = 1 2(un

j + un j+1) − 1

2 1 (ρc)∗

j+1/2

(Pn

j+1 − Pn j )

This step preserves (P, u)- constant profiles.

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 23 / 110

slide-26
SLIDE 26

CFL Condition

In the sequel we shall suppose that λ = ∆t/∆x verifies λ × max

j∈Z

  • |uj+1/2|, (ρc)∗

j+1/2/ min(ρn j , ρn j+1)

  • ≤ C

(⋆) where usually C ≃ 0.8. (numerical of the present talks performed with C = 0.999)

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 24 / 110

slide-27
SLIDE 27

Scheme for the Remapping Step

General Form

ρW = (ρy, ρ, ρu, ρe)T ρn+1

j

Wn+1

j

− ρjWj + λ

  • uj+1/2

(ρW)j+1/2 − uj−1/2 (ρW)j−1/2

  • −λ

(ρW)j(uj+1/2 − uj−1/2) = 0 (zn+1

j

− zn

j ) + λ(uj+1/2

zj+1/2 − uj−1/2 zj−1/2) − λzn

j (uj+1/2 − uj−1/2) = 0

Building the scheme boils down to specify the following terms

  • yj+1/2,
  • ρj+1/2,
  • uj+1/2,
  • εj+1/2,
  • zj+1/2

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 25 / 110

slide-28
SLIDE 28

Defining the Fluxes

  • zj+1/2 =?
  • uj+1/2 =?
  • yj+1/2 =?
  • ρj+1/2 =?
  • (ρε)j+1/2 =?

Enforce consistency for

  • yj+1/2,

ρj+1/2,

  • εj+1/2.

Upwind choice (j + 1/2 = upw) according to the sign of uj+1/2 for phasic quantities ρ0, ρ1 and ρ0ε0, ρ1ε1. Upwind choice too for u

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 26 / 110

slide-29
SLIDE 29

Defining the Fluxes

  • zj+1/2 =?
  • uj+1/2 =?
  • yj+1/2 =

zj+1/2 (ρ1)j+1/2/ ρj+1/2

  • ρj+1/2 =

zj+1/2 (ρ1)j+1/2 + (1− zj+1/2) (ρ0)j+1/2

  • (ρε)j+1/2 =

zj+1/2 (ρ1ε1)j+1/2 + (1− zj+1/2) (ρ0ε0)j+1/2 Enforce consistency for

  • yj+1/2,

ρj+1/2,

  • εj+1/2.

Upwind choice (j + 1/2 = upw) according to the sign of uj+1/2 for phasic quantities ρ0, ρ1 and ρ0ε0, ρ1ε1. Upwind choice too for u

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 26 / 110

slide-30
SLIDE 30

Defining the Fluxes

  • zj+1/2 =?
  • uj+1/2 =?
  • yj+1/2 =

zj+1/2 (ρ1)upw/ ρj+1/2

  • ρj+1/2 =

zj+1/2 (ρ1)upw + (1 − zj+1/2) (ρ0)upw

  • (ρε)j+1/2 =

zj+1/2 (ρ1ε1)upw + (1− zj+1/2) (ρ0ε0)upw Enforce consistency for

  • yj+1/2,

ρj+1/2,

  • εj+1/2.

Upwind choice (j + 1/2 = upw) according to the sign of uj+1/2 for phasic quantities ρ0, ρ1 and ρ0ε0, ρ1ε1. Upwind choice too for u

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 26 / 110

slide-31
SLIDE 31

Defining the Fluxes

  • zj+1/2 =?
  • uj+1/2 =

uupw

  • yj+1/2 =

zj+1/2 (ρ1)upw/ ρj+1/2

  • ρj+1/2 =

zj+1/2 (ρ1)upw + (1 − zj+1/2) (ρ0)upw

  • (ρε)j+1/2 =

zj+1/2 (ρ1ε1)upw + (1− zj+1/2) (ρ0ε0)upw Enforce consistency for

  • yj+1/2,

ρj+1/2,

  • εj+1/2.

Upwind choice (j + 1/2 = upw) according to the sign of uj+1/2 for phasic quantities ρ0, ρ1 and ρ0ε0, ρ1ε1. Upwind choice too for u

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 26 / 110

slide-32
SLIDE 32

Defining the Fluxes

  • zj+1/2=?
  • uj+1/2 =

uupw

  • yj+1/2 =

zj+1/2 (ρ1)upw/ ρj+1/2

  • ρj+1/2 =

zj+1/2 (ρ1)upw + (1 − zj+1/2) (ρ0)upw

  • (ρε)j+1/2 =

zj+1/2 (ρ1ε1)upw + (1− zj+1/2) (ρ0ε0)upw Enforce consistency for

  • yj+1/2,

ρj+1/2,

  • εj+1/2.

Upwind choice (j + 1/2 = upw) according to the sign of uj+1/2 for phasic quantities ρ0, ρ1 and ρ0ε0, ρ1ε1. Upwind choice too for u

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 26 / 110

slide-33
SLIDE 33

Constraints for the flux zj+1/2

Suppose uj−1/2 > 0 and uj+1/2 > 0. Under CFL condition (⋆), we have a “trust interval” for zj+1/2 that ensures stability for both y and z, and consistency for both fluxes

  • zj+1/2 and

yj+1/2.

  • zj+1/2 ∈
  • mj−1/2, Mj−1/2

aj, Aj bj, Bj dj+1/2, Dj+1/2

  • consistency for

zj+1/2 consistency for yj+1/2 stability for zn+1

j

stability for y n+1

j

= ∅

zn

j

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 27 / 110

slide-34
SLIDE 34

Constraints for the flux zj+1/2

Suppose uj−1/2 > 0 and uj+1/2 > 0. Under CFL condition (⋆), we have a “trust interval” for zj+1/2 that ensures stability for both y and z, and consistency for both fluxes

  • zj+1/2 and

yj+1/2.

  • zj+1/2 ∈
  • mj−1/2, Mj−1/2

aj, Aj bj, Bj dj+1/2, Dj+1/2

  • consistency for

zj+1/2 consistency for yj+1/2 stability for zn+1

j

stability for y n+1

j

= ∅

zn

j

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 27 / 110

slide-35
SLIDE 35

Constraints for the flux zj+1/2

Suppose uj−1/2 > 0 and uj+1/2 > 0. Under CFL condition (⋆), we have a “trust interval” for zj+1/2 that ensures stability for both y and z, and consistency for both fluxes

  • zj+1/2 and

yj+1/2.

  • zj+1/2 ∈
  • mj−1/2, Mj−1/2

aj, Aj bj, Bj dj+1/2, Dj+1/2

  • consistency for

zj+1/2 consistency for yj+1/2 stability for zn+1

j

stability for y n+1

j

= ∅

zn

j

How should we choose zj+1/2 ?

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 27 / 110

slide-36
SLIDE 36

Choosing the z-flux zj+1/2 (1)

Suppose uj−1/2 > 0 and uj+1/2 > 0.

Despr´ es-Lagouti` ere Strategy: Limited Downwind Strategy

We choose the most downwinded possible value for zj+1/2 such that

  • zj+1/2 ∈
  • mj−1/2, Mj−1/2
  • aj, Aj
  • bj, Bj
  • dj+1/2, Dj+1/2
  • zj+1/2 values axis
  • zj+1/2

zn

j+1

  • zj+1/2

zn

j+1

zn

j+1

  • zj+1/2

Choosing the zj+1/2 value is an explicit step: no CPU cost is needed, nor any recursive procedure.

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 28 / 110

slide-37
SLIDE 37

Choosing the flux zj+1/2 (2)

What if uj−1/2 < 0 and uj+1/2 > 0 ?

For sake of “security” we opt for the upwind choice, i.e.

  • zj+1/2 = zn

j

Other cases

The cases uj−1/2 > 0, uj+1/2 < 0 and uj−1/2 < 0, uj+1/2 < 0 can be examined following the same lines and provide similar formulas for the flux zj+1/2.

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 29 / 110

slide-38
SLIDE 38

Outline

4

Numerical Results 1D Interface Advection Sod-Type Shock Tube 2D Air-R22 Shock-Interface Interaction Kelvin-Helmholtz Instability

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 30 / 110

slide-39
SLIDE 39

1D Interface Advection(1)

Test Description

Advection of a 1D “bubble” (pulse) involving two fluids

Inner bubble state

Analytical EOS ρ = 103, P = 105, u = 103

Outter bubble State

Tabulated EOS ρ = 50, P = 105, u = 103 1 m long domain discretized over a 100-cell mesh Periodic boundary conditions t = 3.0 s (1 524 000 time steps)

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 31 / 110

slide-40
SLIDE 40

1D Interface Advection(2)

EOS for the Inner Bubble Fluid (Stiffened Gas Equation)

P = (γ1 − 1)ρε − γ1π1, γ1 = 4.4, π1 = 6 × 108 Pa

EOS for the Outter Bubble Fluid (Tabulated van der Waals Fluid)

P = γ0 − 1 1 − b0ρ

  • (ρε + a0ρ2) − a0ρ2,

γ0 = 1.4, b0 = 10−3, a0 = 5. Discretization of the (ρ, P) ∈ [0, 990] × [104, 109] over a uniform 103 × 103 grid. (ρ, P) → ρε is provided thanks to a Q1 interpolation (ρ, ε) → P computed with a Newton method P1 = P0 resolved with a Dichotomy Algorithm

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 32 / 110

slide-41
SLIDE 41

1D Interface Advection(3): Initial State

0.2 0.4 0.6 0.8 1 0.2 0.4 0.6 0.8 1 Color Function x(m)

color function (discretized) color function (exact)

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 33 / 110

slide-42
SLIDE 42

Interface Advection (4): Color Function at t = 0.01 s (step 5080)

0.2 0.4 0.6 0.8 1 0.2 0.4 0.6 0.8 1 Color Function x(m)

upwind anti-diffusive exact

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 34 / 110

slide-43
SLIDE 43

Interface Advection (5): Color Function at t = 0.03 s (step 15240)

0.2 0.4 0.6 0.8 1 0.2 0.4 0.6 0.8 1 Color Function x(m)

upwind anti-diffusive exact

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 35 / 110

slide-44
SLIDE 44

Interface Advection (6): Color Function at t = 0.1 s (step 50800)

0.2 0.4 0.6 0.8 1 0.2 0.4 0.6 0.8 1 Color Function x(m)

upwind anti-diffusive exact

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 36 / 110

slide-45
SLIDE 45

Interface Advection (7): Color Function at t = 3.0 s (step 1524000)

0.2 0.4 0.6 0.8 1 0.2 0.4 0.6 0.8 1 Color Function x(m)

upwind anti-diffusive exact

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 37 / 110

slide-46
SLIDE 46

Interface Advection (8): Pressure & Velocity at t = 3.0 s

Pressure Velocity

99000 99500 100000 100500 101000 0.2 0.4 0.6 0.8 1 Pressure (Pa) x(m)

upwind anti-diffusive exact

999 999.5 1000 1000.5 1001 0.2 0.4 0.6 0.8 1 Velocity (m/s) x(m)

upwind anti-diffusive exact

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 38 / 110

slide-47
SLIDE 47

Interface Advection (9): Numerical Diffusion

20 40 60 80 100 1 10 100 1000 10000 100000 1e+06 diffusion cells (%) time steps

upwind anti-diffusive

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 39 / 110

slide-48
SLIDE 48

Shock Tube 1 (1)

Test Description

Riemann Problem with two perfect gases, adapted from the Sod Shock Tube Test

Left State

γ = 1.4 ρ = 1.0 P = 1.0 u = 0.0

Right State

γ = 2.4 ρ = 0.125 P = 0.1 u = 0.0 The domain is discretized over a 300-cell mesh. t = 0.14s

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 40 / 110

slide-49
SLIDE 49

Shock Tube 1 (2): Velocity

0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 Velocity (m/s)

x(m)

upwind anti-diffusive exact KOKH (CEA) Int MultiMat Fl. Guidel May 2011 41 / 110

slide-50
SLIDE 50

Shock Tube 1 (3): Pressure

0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 Pressure (Pa)

x(m)

upwind anti-diffusive exact KOKH (CEA) Int MultiMat Fl. Guidel May 2011 42 / 110

slide-51
SLIDE 51

Shock Tube 1 (4): Color Function

0.2 0.4 0.6 0.8 1 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 Color Function

x(m)

upwind anti-diffusive exact KOKH (CEA) Int MultiMat Fl. Guidel May 2011 43 / 110

slide-52
SLIDE 52

Shock Tube 1 (5): Mass Fraction

0.2 0.4 0.6 0.8 1 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 Mass Fraction

x(m)

upwind anti-diffusive exact KOKH (CEA) Int MultiMat Fl. Guidel May 2011 44 / 110

slide-53
SLIDE 53

Shock Tube 1 (6): Density

0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 Density (kg/m3)

x(m)

upwind anti-diffusive exact KOKH (CEA) Int MultiMat Fl. Guidel May 2011 45 / 110

slide-54
SLIDE 54

Shock Tube 1 (7): Numerical Diffusion of The Color Function

5 10 15 20 25 2 4 6 8 10 percent of cell number with numerical diffusion

time steps

upwind anti-diffusive KOKH (CEA) Int MultiMat Fl. Guidel May 2011 46 / 110

slide-55
SLIDE 55

Shock Tube 1 (8): Velocity (50 000 cells)

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 47 / 110

slide-56
SLIDE 56

Shock Tube 1 (9): Pressure (50 000 cells)

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 48 / 110

slide-57
SLIDE 57

Shock Tube 1 (10): Color Function (50 000 cells)

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 49 / 110

slide-58
SLIDE 58

Shock Tube 1 (11): Mass Fraction (50 000 cells)

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 50 / 110

slide-59
SLIDE 59

Shock Tube 1 (12): Density (50 000 cells)

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 51 / 110

slide-60
SLIDE 60

2D Air-R22 Shock-Interface Interaction (1)

Test Description

A planar shock hits a bubble initially at rest. Domain discretized over a 5000 × 1000 mesh Two perfect gases

Fluid 0 Post-Shock State Fluid 0 Pre-Shock State Fluid 1 Pre-Shock State

Ref : Haas&Sturtevant(Experiment), Quirk&Karni, Shyue, . . .

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 52 / 110

slide-61
SLIDE 61

2D Air-R22 Shock-Interface Interaction (2)

EOS Parameters & Initial Values location density pressure u1 u2 γ (kg.m−3) (Pa) (m.s−1) (m.s−1) air (post-shock) 1.686 1.59 × 105 −113.5 1.4 air (pre-shock) 1.225 1.01325 × 105 1.4 R22 3.863 1.01325 × 105 1.249

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 53 / 110

slide-62
SLIDE 62

2D Air-R22 Shock-Interface Interaction (3)

Color Function

t = 50, µs (anti-diffusive) t = 50 µs (upwind) t = 239 µs (anti-diffusive) t = 239 µs (upwind)

slide-63
SLIDE 63

2D Air-R22 Shock-Interface Interaction (4)

Color Function

t = 430, µs (anti-diffusive) t = 430 µs (upwind) t = 540 µs (anti-diffusive) t = 540 µs (upwind)

slide-64
SLIDE 64

2D Air-R22 Shock-Interface Interaction (5)

Color Function

t = 1020, µs (anti-diffusive) t = 1020 µs (upwind)

slide-65
SLIDE 65

2D Air-R22 Shock-Interface Interaction (6)

Anti-Diffusive Solver Experiment

slide-66
SLIDE 66

2D Air-R22 Shock-Interface Interaction (7)

Anti-Diffusive Solver Experiment

slide-67
SLIDE 67

2D Air-R22 Shock-Interface Interaction (8)

Anti-Diffusive Solver Experiment

slide-68
SLIDE 68

2D Air-R22 Shock-Interface Interaction (9)

Anti-Diffusive Solver Experiment

slide-69
SLIDE 69

2D Air-R22 Shock-Interface Interaction (10)

Anti-Diffusive Solver Upwind Solver

50 100 150 200 250 10 20 30 40 50 60 70 t (µs) x (mm) Anti-diffusive Solver Vs Vu Vd Vr Vt Vt 50 100 150 200 250 10 20 30 40 50 60 70 t (µs) x (mm) Upwind Solver Vs Vu Vd Vr Vt Vt

slide-70
SLIDE 70

2D Air-R22 Shock-Interface Interaction (11)

Velocity (m/s) Vs VR VT Vui Vuf Vdi Vdf Haas & Sturtevant (Exp.) 415 240 540 73 90 78 78 Quirk & Karni 420 254 560 74 90 116 82 Shyue (tracking) 411 243 538 64 87 82 60 Shyue (capturing) 411 244 534 65 86 98 76 Upwind Solver 411 243 524 66 86 83 62 Anti-Diffusive Solver 411 243 525 65 86 85 64

slide-71
SLIDE 71

2D Air-R22 Shock-Interface Interaction (12)

Anti-Diffusive Solver vs Results of obtained by Shyue.

50 100 150 200 250 10 20 30 40 50 60 70 t (µs) x (mm) Anti-diffusive Solver Vs Vu Vd Vr Vt Vt

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 63 / 110

slide-72
SLIDE 72

Kelvin-Helmholtz Instability (1)

The domain is discretized over a 1000 × 1000 mesh

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 64 / 110

slide-73
SLIDE 73

Kelvin-Helmholtz Instability (2)

upwind anti-diffusive

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 65 / 110

slide-74
SLIDE 74

Kelvin-Helmholtz Instability (3)

upwind anti-diffusive

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 66 / 110

slide-75
SLIDE 75

Kelvin-Helmholtz Instability (4)

upwind anti-diffusive

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 67 / 110

slide-76
SLIDE 76

Kelvin-Helmholtz Instability (5)

upwind anti-diffusive

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 68 / 110

slide-77
SLIDE 77

Kelvin-Helmholtz Instability (6)

upwind anti-diffusive

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 69 / 110

slide-78
SLIDE 78

Kelvin-Helmholtz Instability (7)

upwind anti-diffusive

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 70 / 110

slide-79
SLIDE 79

Kelvin-Helmholtz Instability (8)

slide-80
SLIDE 80

Kelvin-Helmholtz Instability (9): Numerical Diffusion

10 20 30 40 50 60 70 2000 4000 6000 8000 10000 Diffusion Cells (%) time steps

upwind anti-diffusive KOKH (CEA) Int MultiMat Fl. Guidel May 2011 72 / 110

slide-81
SLIDE 81

Kelvin-Helmholtz Instability (10): Evolution of the Kinetic Energy in the x2-Direction t → 1

2ρu2 2dx1dx2

0.001 0.002 0.003 0.004 0.005 0.006 0.007 1 2 3 4 5 6 7 8 kinetic energy in the x2 direction (J) t (s)

upwind anti-diffusive

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 73 / 110

slide-82
SLIDE 82

Outline

5

Parallel Implementation Goals & Methods TRITON: Parallel Implementation Speed-Up Results

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 74 / 110

slide-83
SLIDE 83

Parallel Implementation: about Goals & Methods

Numerical Tools for Physical Modelization in an Ideal World

Taking advantage of the increasing CPU power and mature distributed computing techniques Series of “fine scale” simulations

Data Processing

“average scale” Models

Methodology / Guidelines

Large meshes / Scalability

“Reasonably Simple” Choices

The above features condition our choices regarding numerical methods but also regarding physical models. We hope that simplicity will provide us computational power through scalability.

slide-84
SLIDE 84

Parallel Algorithm

TRITON Code

TRITON: 3D parallel code developped at CEA Saclay (DM2S/SFME/LETR) dedicated to compressible with interface

Code History

A first 3D “Toy Code” developped in collaboration with R. Tuy Parallel version 0 by Ph. Fillion (CEA) and R. Tuy The present algorithm based on the work of Ph. Huynh and

  • M. Flores (CS software support team of the CCRT)

“Natural Choice”

Domain Decomposition Distributed memory

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 76 / 110

slide-85
SLIDE 85

Managing the Communications

8.2 Subdomain 2 Subdomain 1 Communication Process Fictitious Cell Physical Boundary Fictitious Cell 0.9 0.9 8.2 communication communication

1: Communication

Inter-subdomain non-blocking communications

2: Computation

Compute the inner fluxes in the subdomains

3: Communication

Wait until step 1 is

  • ver.

4: Computation

Compute the fluxes at the subdomains boundaries

slide-86
SLIDE 86

Speed Up Results

Preliminary Tests Only!!

These results must be confirmed and refined. Tests performed with the cluster PLATINE at CCRT.

Number of CPUs

1 2 50 100 200

Averaged Elapsed Time (s)

405.45 201.7 9.78 4.9 2.06

Speed-Up

1 2.01 41.46 82.74 196.82

Speed-Up (%)

100 100.51 82.91 82.74 98.41

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 78 / 110

slide-87
SLIDE 87

Outline

6

3D Simulation

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 79 / 110

slide-88
SLIDE 88

Example of 3D Simulation Performed with TRITON

Context of The Test

Safety Study: Acid Test (Engineer Study) Blind Test: no parameter tuning was allowed.

3D Gas Bulk Rising Towards a Free Surface

Domain restricted to a quarter of space (due to time constraints) 54 × 54 × 400 = 1 166 400 cells mesh Test performed on a 1024 nodes cluster (PLATINE) at CCRT “Wall clock” time: about 60 h

(Joint work with CEA coworkers: O. Gr´ egoire & P. Salvatore)

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 80 / 110

slide-89
SLIDE 89

3D Gas Bulk Rising (1)

slide-90
SLIDE 90

3D Gas Bulk Rising (2)

slide-91
SLIDE 91

3D Gas Bulk Rising (3)

slide-92
SLIDE 92

3D Gas Bulk Rising (4)

slide-93
SLIDE 93

3D Gas Bulk Rising (5)

slide-94
SLIDE 94

3D Gas Bulk Rising (6)

slide-95
SLIDE 95

3D Gas Bulk Rising (7)

slide-96
SLIDE 96

3D Gas Bulk Rising (8)

Averaged Volume Fraction Estimate

<z > (x3, t)=

  • z(x1, x2, x3, t)dx1dx2

Comparison with Theoretical Estimates

The gas bulk reaches its asymptotic velocity quasi-instantaneously The rising velocity measured on the 3D results provides a match with the theoretical results with a 2.6 × 10−2 relative error.

slide-97
SLIDE 97

3D Gas Bulk Rising (9)

Particle Dynamics within the Flow Use of the DSMC code (Lagrangian Particle Dynamics) for simulating the motion of particles within the two-phase flow. Chaining both codes allowed to precisely corroborate engineers estimates.

slide-98
SLIDE 98

3D Gas Bulk Rising (10)

Estimate of the global residual mass of particle within the gas bulk

slide-99
SLIDE 99

3D Gas Bulk Rising (11)

Estimate of the residual mass of particle within the gas bulk group by group

slide-100
SLIDE 100

Outline

7

High-Order Strategy

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 92 / 110

slide-101
SLIDE 101

Extension to High-Order Methods

CEMRACS 2010 — SimCapIAD project

  • M. Billaud,
  • B. Boutin,
  • F. Caetano,
  • G. Faccanoni,
  • S. Kokh,
  • F. Lagouti`

ere,

  • L. Navoret.

funding: Univ. Paris-Sud 11

Design of several anti-diffusive schemes based on second order numerical methods (with respect to space and/or time).

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 93 / 110

slide-102
SLIDE 102

“Second-Order” Anti-Diffusive Solver

0.2 0.4 0.6 0.8 1 0.2 0.4 0.6 0.8 1 pressure x exact

  • rder 2
  • rder 1
slide-103
SLIDE 103

“Second-Order” Anti-Diffusive Solver

0.2 0.4 0.6 0.8 1 0.2 0.4 0.6 0.8 1 density x exact

  • rder 2
  • rder 1
slide-104
SLIDE 104

“Second-Order” Anti-Diffusive Solver

0.2 0.4 0.6 0.8 1 0.2 0.4 0.6 0.8 1 z x exact

  • rder 2
  • rder 1
slide-105
SLIDE 105

“Second-Order” Anti-Diffusive Solver

0.2 0.4 0.6 0.8 1 0.2 0.4 0.6 0.8 1 velocity x exact

  • rder 2
  • rder 1
slide-106
SLIDE 106

Convergence Rate (for the Sod test-case) ρ u p Order 1 upwind 0.63 0.82 0.77 Order 1 anti-diff 0.75 0.82 0.78 Lagrange order 2 anti-diff 0.86 0.88 0.85 Lagrange-projection order 2 upwind 0.83 1.03 1.08 Lagrange-projection order 2 anti-diff 1.08 1.04 1.10 upwind → anti-diffusive : improve the order for ρ with the order 2 method, orders are improved but numerical order 1 (discontinuous solutions) Lagrange order 2 + projection of order 2 better than Lagrange order 2

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 98 / 110

slide-107
SLIDE 107

Convergence Rate (for the Sod test-case) ρ u p Order 1 upwind 0.63 0.82 0.77 Order 1 anti-diff 0.75 0.82 0.78 Lagrange order 2 anti-diff 0.86 0.88 0.85 Lagrange-projection order 2 upwind 0.83 1.03 1.08 Lagrange-projection order 2 anti-diff 1.08 1.04 1.10 upwind → anti-diffusive : improve the order for ρ with the order 2 method, orders are improved but numerical order 1 (discontinuous solutions) Lagrange order 2 + projection of order 2 better than Lagrange order 2

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 98 / 110

slide-108
SLIDE 108

Convergence Rate (for the Sod test-case) ρ u p Order 1 upwind 0.63 0.82 0.77 Order 1 anti-diff 0.75 0.82 0.78 Lagrange order 2 anti-diff 0.86 0.88 0.85 Lagrange-projection order 2 upwind 0.83 1.03 1.08 Lagrange-projection order 2 anti-diff 1.08 1.04 1.10 upwind → anti-diffusive : improve the order for ρ with the order 2 method, orders are improved but numerical order 1 (discontinuous solutions) Lagrange order 2 + projection of order 2 better than Lagrange order 2

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 98 / 110

slide-109
SLIDE 109

first order second order For the 2D shock/interface test: comparable accuracy between first and “second order” with a 25 times smaller grid.

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 99 / 110

slide-110
SLIDE 110

Outline

8

N-Compononent Flow

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 100 / 110

slide-111
SLIDE 111

Extensions to Interface Flow Between N Compononents

Joint work with M. Billaud-Friess (CEA/CELIA).

Generalization of the two-component Five-Equation Model to a general model that can handle an arbitrary number of component Generalization of the Anti-Diffusive Lagrange-Remap Algorithm based on the transport algorithm proposed by Jaouen and Lagouti` ere Simulation of a 3-component Kelvin-Helmholtz Instability

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 101 / 110

slide-112
SLIDE 112

3-Component Kelvin-Helmholtz Instability

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 102 / 110

slide-113
SLIDE 113

3-Component Kelvin-Helmholtz Instability

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 103 / 110

slide-114
SLIDE 114

3-Component Kelvin-Helmholtz Instability

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 104 / 110

slide-115
SLIDE 115

3-Component Kelvin-Helmholtz Instability

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 105 / 110

slide-116
SLIDE 116

GPU Implementation (1)

GPU Port of the TRITON code

CUDA achieved by the F. Dahm (CS CCRT Support Team) very constrained task: preserving the overall code structure Tesla S1070 : up to 3.4 faster than a single CPU test

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 106 / 110

slide-117
SLIDE 117

GPU Implementation (2)

GPU Code Written From Scratch

CUDA & OpenCL achieved by V. Michel (internship ENSIMAG) & A. Geay (CEA –

SFME/LGLS)

dedicated data structure architecture upwind version only GPU & multi-GPU implementation

CUDA: Results Overview

shock/bubble interaction test over a 100 × 50 × 50 grid Tesla C1050: up to 67.0 times faster than a single CPU test Fermi: untested but much better results are expected Preliminary test run over a 109-cell mesh : 100 time steps in 91 seconds!

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 107 / 110

slide-118
SLIDE 118

Outline

9

Conclusion & Perspectives

KOKH (CEA) Int MultiMat Fl. Guidel May 2011 108 / 110

slide-119
SLIDE 119

Conclusion & Perspectives(1)

Design of a Lagrange-Remap scheme for the Five-Equation system with isobaric closure The scheme is conservative for ρy, ρ, ρu, ρe Good treatment of the Riemann Invariants across the material interface The scheme works “out of the box”: no specific “numerical tuning” is required to optimize the scheme performance Anti-diffusive interface advection for both mass fraction y & color function z “Positivity” for both y & z variables no extra CPU cost The Despr´ es-Lagouti` ere approach is not restricted to its

  • riginating framework

Good scalability

slide-120
SLIDE 120

Conclusion & Perspectives (2)

. . . Conclusion

SimCapiad (Cemarcs 2010): “Second Order” Extension Extension of the model and the scheme for N-component flows (joint work with M. Billaud-Friess)

Perspectives

Similar strategy for unstructured meshes (Despr´ es & Lagouti` ere,

  • V. Faucher)

Fictitious boundaries (joint work with M. Belliard) Stable scheme for large time steps (Tran, Postel, Coquel) Capillarity Boundary Conditions (contact line, etc.)