Coupling algorithms for hyperbolic systems

Size: px
Start display at page:

Download "Coupling algorithms for hyperbolic systems"

Transcription

1 Coupling algorithms for hyperbolic systems Edwige Godlewski Laboratoire Jacques-Louis Lions Université Pierre et Marie Curie (Paris) Cemracs, July 2011

2 Collaborations with Frédéric Coquel ( CMAP, Cnrs), Christophe Chalons (Cea Saclay, U. Paris Diderot), Frédéric Lagoutière ( U. Paris Sud-Orsay), Pierre-Arnaud Raviart, Nicolas Seguin (LJLL-UPMC), Annalisa Ambroso (CEA Saclay Areva), Jean-Marc Hérard, Olivier Hurisse (Edf R&D) + young people (PhD): Benjamin Boutin ( Irma, U. Rennes), Filipa Caetano ( U. Paris Sud-Orsay), Thomas Galie working group LJLL-Cea-Saclay LRC with Cea-Saclay

3 Content 0. Introduction: why algorithms to couple hyperbolic systems? 1.1. Systems of balance and conservation laws (some model systems, solution of the Riemann problem) 1.2. Finite volume methods (definition, 1d case, some usual schemes, specific properties) 2. Introduction to the boundary value problem, and to interface coupling 3.1. Interface coupling, examples, coupling algorithm 3.2. Interface coupling, further topics

4 Interface coupling: main features Framework: given two codes two (compressible) fluid codes simulating fluid flow of the same nature, taking into account different specificities not coupled phenomena (monophysics) fixed interface (multidomain) thin interface, the codes interact exchange of information at the interface (strong coupling) need of a robust procedure understand the physics at the interface ( intelligent coupling) use existing codes few modifications in each domain give a numerical coupling procedure to couple the codes. First: what is the mathematical model?

5 mathematical model the codes simulate compressible fluid flows, modelled by systems of PDE: hyperbolic systems of balance laws the fixed interface is considered as a boundary (artificial, not physical) give a numerical coupling procedure and understand what it really computes understand how to model the exchange of information at the interface at both continuous and discretized levels need to recall some notions about hyperbolic systems of conservation laws (HSCL) or balance laws (HSBL), finite volume schemes (FV), boundary conditions

6 Coupling model t IBVP in x<0!#&!'(%!#&*'(% IBVP in x>0 system with flux system with flux ) ) L R!""#$%!""#$% 0 0 x 0 interface x=0

7 1.1. Introduction. Conservation and balance laws Hyperbolic systems, entropy, characteristic fields, genuinely nonlinear / linearly degenerate Main example: gas dynamics. Euler system in d = 3, d = 1, barotropic model, Lagrange, p system, linearized (acoustic) Discontinuities, weak solutions, Rankine-Hugoniot condition, entropy inequality Rarefactions, shocks and contact discontinuities Solution of the Riemann problem

8 Hyperbolic system of balance laws HSBL: set of p balance laws (pde) u d t + f j (u) = s(u), t > 0, (1) x j j=1 HSCL: hyperbolic system of conservation laws if s = 0 u = (u 1, u 2,..,u p ) T Ω (in R p ) set of states, f(u) = (f j (u)) flux (each f j (u)) R p ), s(u) source, we will also have latter s(u,x). we study first Cauchy problem: x = (x 1,...,x d ) R d, (1) + initial condition u(x, 0) = u 0 (x) then IBVP (initial boundary value problem): x O R d, (1) + initial condition + boundary condition (weak)

9 hyperbolicity Definition: the homogeneous system is strongly hyperbolic if for any direction n the p p matrix A(u,n) = d A j (u)n j, where A j (u) = f j(u) j=1 is diagonizable with real eigenvalues λ k (u,n), eigenvectors r k (u,n),1 k p, basis of R p λ 1 (u,n) λ 2 (u,n) λ p (u,n) (2) (ranked in increasing order), λ k (u,n) is a velocity (wavelike solution). In 1D, t u + x f(u) = 0, A(u) = f (u), λ k (u), r k (u)

10 entropy for HSBL Other conservation laws? Assume Ω convex, a convex function U : Ω R is called an entropy for the system (1) if d functions F j : Ω R,1 j d, called entropy fluxes, such that U (u)f j (u) = F j(u), (3) then smooth solutions satisfy an additional (scalar) companion law d t U(u) + F j (u) = U (u).s(u) (4) x j j=1 U (u) = ( u1 U, u2 U,.., up U). Admissible discontinuous solutions satisfy an inequality ( in (4). Existence of U? comes from physics, not from solving (3), p equations 2 unknowns (U, F).

11 Example: gas dynamics Euler system of compressible gas dynamics writes (neglecting heat conduction and viscosity) t ( u i) + 3 j=1 3 t + ( u j ) = 0, x j j=1 x j ( u i u j + pδ i,j ) = 0, 1 i 3 (5) 3 t ( e) + ( e + p)u j = 0, x j j=1 density, u = (u 1,u 2, u 3 ) T velocity, p pressure, e = ε + u 2 /2 specific total energy, ε internal energy, u 2 = u u2 2 + u2 3. The equations express the conservation of mass, momentum and energy.

12 Example: gas dynamics Conservative variables U = (, u, e) T. Need of a closure law for the pressure p = p(u). In fact, p = p(, ε) for instance γ-law: p = (γ 1) ε for an ideal gas, ε = e u 2 /2,u i = u i / In (6) the fluxes f j (U) are then easily expressed. The set of states is Ω = { > 0,u R 3, ε = e u 2 /2 > 0}. Primitive variables V = (,u,p) T are useful for computing the eigenvalues: u n ± cn (c speed of sound, c 2 = γp/ for a γ-law) and u n which is an eigenvalue of multiplicity 3. A(U,n) is diagonalizable and one can compute the eigenvectors. If U V = φ(u) is an admissible change of variables, V satisfies a non conservative system, for instance in d = 1 t V + B(V) x V = 0 with matrix B(V) similar to A(U), equivalent for smooth solutions, not for discontinuous solutions.

13 Example: gas dynamics The thermodynamic specific entropy s is defined through the fundamental relation Tds = dε + pdτ, where T = T(, ε) temperature, T = ε/c v for a γ-law, τ = 1/, S = s is a mathematical entropy in the sense of Lax (3) with entropy flux F i = u i s and for smooth solutions d t s + su j = 0. (6) x j j=1 In general, not an equality, entropy inequality d t s + su j 0. (7) x j j=1

14 In dimension d = 2 Example: gas dynamics t + x ( u) + ( v) = 0, y t ( u) + x ( u2 + p) + ( uv) = 0, y t ( v) + x ( uv) + y ( v2 + p) = 0, t ( e) + ( e + p)u + (( e + p)v) = 0. x y The eigenvalues of A(u,n) are u n ± c (acoustic or pressure waves) and u n is a double eigenvalue (entropy and shear waves). Euler equations are invariant under rotation: important for the numerical approximation (project in direction n = (1, 0) study the 1d system)

15 Example: gas dynamics Assuming a barotropic pressure law p = p( ) we can ignore the energy equation t + x u + v = 0, y t u + x ( u2 + p( )) + uv = 0, (8) y t v + x uv + y ( v2 + p( )) = 0. Linearized acoustic: we study small perturbations u = u 0 + ũ of a uniform flow 0,u 0,v 0 and linearize (8) t + x v y = 0, t x ( u 2 + p) + uv y = 0, (9) t x y ( v 2 + p) = 0.

16 Example: gas dynamics:linearized acoustic In primitive variables Ũ = ( p,ũ,ṽ)t p( 0 + ) p 0 + p p = p ( 0), 0u 0 + u ( 0 + )(u 0 + ũ) u = u 0 + 0ũ. Simple computations lead to the linear hyperbolic system tũ + A 0 x Ũ + B 0 y Ũ = 0, with constant matrices (c0 2 = p ( 0)) u 0 0c v 0 0 0c 2 0 A 0 = 1/ 0 u 0 0, B 0 = 0 v u 0 1/ 0 0 v 0 When u 0 = v 0 = 0, one can derive the wave equation by differentiating the first equation wrt t, the second wrt x and the third one wrt y and substracting 2 t 2 c2 0 = 0.

17 Example: gas dynamics, d = 1 Euler system in dimension d = 1 with p = 3 conservation laws t + x ( u) = 0 t ( u) + x ( u2 + p) = 0 (10) t ( e) + ( e + p)u = 0 x The eigenvalues of A(u) are u ± c and u, computed using the primitive formulation in variables v = (, u,p), c 2 = p (, s) u 0 B(v) = 0 u 1/ 0 c 2 u The system is endowed with a family of entropies U = Φ(s) with entropy fluxes F = Φ(s)u where Φ is such that U is convex in the conservative variables (Φ 0,Φ 0).

18 Example: gas dynamics, d = 1,Lagrangian frame Euler system in Lagrangian variables writes t τ m u = 0, t u + P = 0, (11) m t e + m (Pu) = 0 where m is a mass variable, τ = 1/ is the specific volume P(τ,ε) = p(1/τ,ε). In case of a barotropic pressure law (or an isentropic flow) we get the classical P system t τ m u = 0, t u + P = 0, (12) m where P = P(τ) is a given function satisfying P < 0,P > 0.

19 Weak solutions of balance laws Even if u 0 is smooth, discontinuities may develop in finite time (ex of scalar case: a smooth u is constant on characteristics) Definition of weak solution: u 0 (x) initial data given in L (R d ) p for any test function ϕ C 1 c(r d [0, )) p + 0 R d { u ϕ d t + f j (u) ϕ } dxdt x j j=1 u 0 (x) ϕ(x,0) dx = s(u)(x,t) ϕ(x, t) dxdt R d 0 R d Rankine-Hugoniot condition: the jumps [u] u + u and [f j (u)] are linked across a surface of discontinuity with normal (n t,(n xj )) [u]n t + d [f j (u)]n xj = 0 j=1 this is a system of p equations (if the system has no differential source term s does not change R.H. relations)

20 Entropy weak solution Non uniqueness of weak solution. Entropy criteria associated to an entropy pair (U, F = (F i )) Definition of entropy weak solution: u 0 (x) initial data given in L (R d ) p, for any test function ϕ Cc(R 1 d [0, )) p,ϕ 0 { U(u) ϕ d 0 R d t + F j (u) ϕ } dxdt x j j=1 + U(u 0 (x)) ϕ(x,0) dx+ R d in D (R d (0, )) p, 0 R d U (u)s(u)(x, t) ϕ(x,t) dxdt 0 d t U(u) + F j (u) U (u)s(u) x j j=1 The sign is not arbitrary: by the vanishing viscosity method u ε d t + f j (u ε ) s(u ε ) = ε (u ε ) x j j=1

21 Entropy weak solution because U convex, U 0 and neglect εu (u)( xi u, xi u) 0 t U(u ε) + d j=1 x j F j (u ε ) U (u ε )s(u ε ) ε d xi (U (u ε ) xi u)) As for Rankine-Hugoniot condition: entropy jump inequality [U(u)]n t + j=1 d [F j (u)] n xj 0 j=1 (if source term s = s(u), it does not change entropy jump inequality). Characterization of a piecewise smooth entropy solution: classical solution in the domain where it is C 1 satisfies Rankine-Hugoniot and entropy inequality across a discontinuity. In d=1, Lax-entropy condition with k characteristics entering a shock.

22 Source term In dimension d, x = (x 1,...,x d ), for a general scalar balance law t u + d xi (f i (u,x,t)) + g(u, x, t) = 0,(t, x) Π T i=1 Π T =]0,T] R d. Existence and uniqueness of Kruzkov s generalized solution : test function ϕ 0, Π T ( u(x,t) k t ϕ+sgn(u(x, t) k) d (f i (u(x, t),x,t) f i (k, x,t)) xi ϕ i=1 ) sgn(u(x, t) k)( xi f i (k,x,t) + g(u, x,t))ϕ dxdt 0 not relevant if x f (u,x,t) is discontinuous.

23 Different kind of source terms production/destruction terms; external forces, body forces (gravitational); heat flux (energy equation) damping type: Euler with friction t + x ( u) = 0, t ( u) + x ( u 2 + p) = (g αϕ(u)), t ( e) + x (( e + p)u) = (gu αψ(u)) geometrical source term: shallow water with topography { t h + x (hu) = 0, t (hu) + x (hu gh2 ) = ghb (x) relaxation { t u + x v = 0 t v + a 2 x u = 1 ε (f (u) v) measure (link with space-varying flux), not of the type s(u) t u + x f (u,x) = Mδ 0, Dirac

24 Influence of source term: a simple example Linear equations with damping t u + a x u = αu along line dx dt = a, the solution ũ(t) = u(x(t), t) satisfies = αũ, if λ > 0, ũ(t) is no longer constant, decreases if α > 0 dũ dt Burgers equation with damping u(x,t) = e αt u 0 (x at) u 2 t u + x 2 = αu Along a line dx dt (t) = u(x(t),t), ũ(t) = u(x(t),t) satisfies dũ dt = αũ, if α 0, ũ no longer constant, the characteristics are no longer straight lines. If x(0) = x 0, then ũ(t) = u 0 (x 0 )e αt, then from dx dt (t) = u 0(x 0 )e αt, we get x(t) = u 0(x 0 ) α (e αt 1) + x 0

25 Influence of a measure source term The Rankine-Hugoniot condition for t u + x f(u) = 0 is where σ = dξ dt [f(u)] = σ[u], across x = ξ(t), = speed of propagation of the discontinuity. For t u + x f(u) = Mδ 0 M weight, δ 0 Dirac measure concentrated on x = 0, R.H. becomes across x = 0 [f(u)] = M this remark is useful in the framework of interface coupling: f = f (u,a) = (1 a)f L (u) + af R (u), a Heaviside, [f ] x=0 = f R (u(0+)) f L (u(0 )), M = f R (u) f L (u), state u continuous, M = 0, flux f continuous

26 Riemann problem for HSCL From now on d = 1 The Riemann problem corresponds to a special Cauchy data u t + f(u) = 0, t > 0, (13) x u(x,0) = u 0 (x) where u 0 (x) is piecewise constant { ul, x < 0 u 0 (x) = u R, x > 0. (14) Self similar solution u(x,t) = W R (x/t;u L,u R ) (if source s = 0). Invariance by translation: Riemann problem at any (x 0,t 0 ) has solution u(x, t) = W R ((x x 0 )/(t t 0 );u L,u R ) Importance: gives explicit solutions (for tests) used in constructing numerical approximations; general u 0 (x) approached by piecewise constant u 0 i on (x i 1/2, x i+1/2 ): juxtaposition of RP.

27 Solution of the Riemann problem for linear HSCL Linear system: A constant p p matrix, diagonalizable on R t u + A x u = 0 Decouples in p scalar transport equations: u = p i=1 v ir i t v i + λ i x v i = 0, 1 i p solution: v i (x, t) = v i (x λ i t,0), u L/R = p i=1 v L/R,ir i { vl,i, x < 0 v i (x, 0) = v R,i, x > 0 Initial discontinuity at x = 0 gives p discontinuities propagating with characteristic speed λ i, separating constant states (say w i, i = 0,p, and w i w i 1 = (v R,i v L,i )r i. Solution of the Riemann problem is explicit.

28 RP for linear system t x/t = λ 2 x/t = λ 1 w2 w p 1 x/t = λ p w 1 w0 = u L 0 w p = u R x

29 Solution of the Riemann problem for convex HSCL -Scalar case (strictly convex) case: rarefaction or shock -Linear system: p contact discontinuities propagating at speed λ k Mix both ingredients: propagation of p elementary waves (rarefaction, shock, contact) according to the nature of the characteristic field (λ k,r k ). The analysis needs: Definition of Genuinely Non Linear (GNL) and Linearly Degenerate (LD) characteristic fields Smooth elementary k waves: k rarefaction (GNL), rarefaction curve R k (u L ) Discontinuous: k shock wave (k GNL) or k contact discontinuity (k LD), discontinuity curve C k (u L ) Lax entropy condition: admissible shocks, shock curve S k (u L ) From u L, path in Ω following piecewise curves R k (u k ) or S k (u k ) if k GNL, C k (u k ) if k LD, u L = u 0 and intermediate states u k, 1 k p. Aim: reach u R. Solution of the Riemann problem: Lax theorem for convex HSCL.

30 Solution of the Riemann problem (rarefaction) Smooth self similar solutions u(x, t) = v(x/t) satisfy x t 2v + 1 t A(v)v = 0 Set ξ = x/t k {1,2,..,p} (A(v) ξi)v = 0 (1) v (ξ) = r k (v(ξ)), and (2) λ k (v(ξ)) = ξ (1) will give an integral curve of r k, condition (2) implies k GNL field Dλ k (v(ξ))v (ξ) = Dλ k (v(ξ))r k (v(ξ))= 1 whereas Dλ k (v)r k (v) 0 for LD field. Solving (1)+ (2) with v(ξ 0 ) = u 0 gives the k rarefaction curve from state u 0 : R k (u 0 ).

31 Solution of the Riemann problem (discontinuities) Discontinuous solutions. Write 1 d f(u) f(u 0 ) = 0 ds f(u 0 + s(u u 0 ))ds develop and use Rankine-Hugoniot condition 1 A(u 0 + s(u u 0 )ds(u u 0 ) = σ(u 0,u)(u u 0 ) 0 define the p p matrix A(u 0,u) = 1 0 A(u 0 + s(u u 0 )ds, it is such that A(u 0,u 0 ) = A(u 0 ). Then speed of discontinuity σ(u 0,u) is an eigenvalue, and u u 0 an eigenvector. The eigenvalues of A(u) are known: λ k (u), by continuity, for u near u 0, A(u,u 0 ) has p real distinct eigenvalues λ k (u 0,u), eigenvectors r k (u 0,u) and left eigenvectors l k (u 0,u) T A(u 0,u) = λ k (u 0,u)l T k (u,u 0) u u 0 = r k (u 0,u) will give a curve (the proof needs some development). S k (u 0 ) entropy part of the curve if k GNL.

32 Solution of the Riemann problem (wave curves) Wave curves: k field GNL R k (u 0 ) can be parametrized: ε Φ k (ε) Ω Φ k (ε) = u 0 + εr k (u 0 ) + ε2 2 Dr k(u 0 ).r k (u 0 ) + O(ε 3 ), 0 ε ε 0 S k (u 0 ) can be parametrized: ε Ψ k (ε) Ω Ψ k (ε) = u 0 + εr k (u 0 ) + ε2 2 Dr k(u 0 ).r k (u 0 ) + O(ε 3 ), ε 0 < ε 0 σ k (ε) = λ k (u 0 ) + ε 2 Dλ k(u 0 ).r k (u 0 ) + O(ε 2 ), ε 0 < ε 0 The k wave curve C k (u 0 ) is thus a C 2 curve ε χ k (ε) χ k (ε) = u 0 + εr k (u 0 ) + ε2 2 Dr k(u 0 ).r(u 0 ) + O(ε 3 ), ε 0 < ε ε 0 Same equation valid for k field LD, only σ k (ε) λ k (u 0 )

33 Solution of the Riemann problem ( convex case) Assume all fields are either GNL or LD. Find p elementary waves, and intermediate states: u L = u 0 u 1... u p u 1 = χ 1 (ε 1 ;u 0 ),u 2 = χ 2 (ε 2 ;u 1 ),...u p = χ p (ε p ;u p 1 ) Solve the RP means reach u R = u p u p = χ p (ε p ;χ p 1 (ε p 1 ;χ p 2 (ε p 2 ;...χ 1 (ε 1 ;u 0 ))...) χ(ε) ε = (ε 1,...,ε p ) R p. Find ε such that χ(ε) = u R. χ k (ε) = u L + εr k (u L ) + O(ε 2 ), ε ε 0, χ k (0) r k(u L ) Local inversion theorem: χ : R p V, V neighborhood of u L in R p, χ (0) (r 1 (u L ),..,r p (u L )) is invertible (basis of R p ). Lax theorem: V(u L ), u R V, the Riemann problem has a unique solution built with elementary k waves.

34 RP for p system p system has 2 GNL fields, only shocks or rarefactions in the solution of the Riemann problem. Example: 1-shock and 2-rarefaction u 2(w 0 ) III 2 L w 0 w L x/t = σ 1 t w 0 x/t = λ 2 (v 0 ) x/t = λ 2 (v R ) v 1 L w L 0 w R x

35 Example of RP for Euler system: shock tube t 1-rarefaction 2-c.d. 3-shock ρ L L 0 ρ R x ρ I ρ II ρ R u x u * u L p L 0 p u R x p * p R x

36 Coupled Riemann problem coupled Riemann problem (CRP) = Cauchy problem for coupled systems with Riemann data u L,u R Take CRP for two Euler systems in Lagrangian frame t σ 1,L λ = 0 2 u(0 ) u(0+) σ 3,R u L u R 0 x Example: solution of a CRP with two shocks 1 L and 3 R, one stationary wave u(0 ), u(0+) (easy because λ 1,L (u) < 0 < λ 3,R (u), no change of sign)

37 Coupling algorithms for hyperbolic systems Edwige Godlewski Laboratoire Jacques-Louis Lions Université Pierre et Marie Curie (Paris) Cemracs, July 2011

38 1.2. Introduction to finite volume methods Finite volume methods: definition, conservation, consistency 1d conservative schemes; monotone schemes simple schemes: Lax-Friedrichs, Lax-Wendroff Godunov scheme Roe scheme Approximate Riemann solver Some required properties for applications

39 Definition 3 principles in the derivation of a FV method for approximating the solution of a pde (space derivative) partition of Ω by cells Ω i or finite volumes 1 unknown per cell u i 1 u(x)dx Ω i Ω i Ω i measure of Ω i (length if d = 1, surface if d = 2, volume if d = 3) integrate the pde on Ω i to derive the scheme for computing u i Here pde in time too: u(x, t). Above lines give an ODE in u i (t), method of line; add a scheme for advancing in time. Same formalism for a system: u i has p components.

40 Definition Start from ui 0 = 1 u(x,0)dx Ω i Ω i define exact ũ i (t) = 1 u(x,t)dx, u i (t) ũ i (t) Ω i Ω i integrate the equation ( u + divf (u(x,t)))dx = 0 Ω i t u(x,t)dx + f (u(x,t)).n dx = 0 t Ω i Ω i f (u(x,t)).n dx = f (u(x,t)).n i,j dx Ω i Ω i Ω j j N(i) (N(i) neighbors of Ω i ). Replace t Ω i u(x,t)dx = Ω i t ũ i (t) Ω i t u i (t), replace the exact normal flux through an edge e i,j = Ω i Ω j by a numerical one.

41 Definition On e i,j approach the exact normal flux using only the unknown values (u k (t)); simplest: use only u i (t),u j (t) e i,j f (u(x,t)).n i,j dx e i,j Φ(u i (t),u j (t), n i,j ) method of line Ω i t u i(t) + j N(i) e i,j Φ(u i (t), u j (t),n i,j ) = 0 ODE; for a first order scheme, use Euler method. Fully discretized scheme Ω i t (un+1 i ui n ) + e i,j Φ(ui n,uj n,n i,j ) = 0 j N(i) Φ(u,v,n) is a numerical flux Consistency with exact flux: Φ(u, u, n) = f (u).n Conservation: Φ(u i,u j, n i,j ) = Φ(u j,u i, n i,j ) Same formalism for a system: Φ(u,u, n) has p components.

42 Definition of the numerical flux In dimension d = 2: along an infinite edge e = e i,j, axis (n,n ), the independent variables are noted (ζ,τ), given a constant on each side of the edge, the solution does not depend on the tangent variable τ, only on the variable ζ along n, the normal axis. Solve a 1d Riemann problem for f.n with Riemann data (u i,u j ). In dimension d = 3: the same with an infinite face, depends only on the variable on the normal axis. Example: vertical edge, n = (1,0), n = (0,1), (ζ,τ) = (x,y): use a one-dimensional numerical flux g(u i,u j ) which approaches the exact flux. In general, use this one-dimensional flux for the projected equation with continuous flux f.n ( simple if the equations are rotational invariant). Conclusion: derive good numerical fluxes for 1d problems! Test ideas on scalar conservation laws. Try to extend to systems.

43 1d numerical schemes Ω i = (x i 1/2,x i+1/2 ), x i = (x i 1/2 + x i+1/2 )/2, Ω i = x i. Finite volume schemes, numerical flux g : R 2 R u n+1 i ui n x i + g(ui n,u n t i+1) g(ui 1,u n i n ) = 0 sign expresses conservation; g consistent with f : g(u, u) = f (u) u n+1 i = u n i t x i (g(u n i,u n i+1) g(u n i 1, u n i )) Theorem (Lax-Wendroff): IF converges (in a reasonable way), the limit is a weak solution. Finite difference form: x i = x, λ = t/ x u n+1 i ui n + g(un i,un i+1 ) g(un i 1,un i ) u t x t (x i,t n )+ x f (u(x i, t n )) set g i+1/2 = g(u i,u i+1 ) 3-point scheme. More generally, g i+1/2 = g(u i 1,u i,u i+1,u i+2 ) 5-point scheme (necessary for higher order methods)...

44 Examples of 1d numerical schemes Different types 1. finite difference type schemes 2. using the properties of the HSCL: exact or approximate Riemann solver, FVS (flux vector splitting) 3. using other approaches: Lagrange-projection, relaxation, kinetic Examples 1. Lax-Friedrichs, Lax-Wendroff 2. Godunov, Roe, HLLE, Osher 3. relaxation schemes, kinetic schemes Links between 1, 2 and 3, for instance: Lax-Friedrichs and Rusanov, Rusanov and relaxation, kinetic and flux vector splitting, relaxation and Godunov-type schemes...

45 upwind, Godunov and Roe scheme linear case: in the scalar case t u + a x u = 0, upwind scheme g(u,v) = a + u + a v; for a system, same in characteristic var. nonlinear case if f (u) (p = 1) or λ i (u) (system) changes sign: Godunov s scheme. Discretize u 0 (x) by averaging on each cell: u 0 (x) u 0 i = 1 x Ω i u 0 (x)dx 1. (u 0 i ) u (x,0) piecewise constant 2. solve exactly the HSCL with i.c. u (x,0): t ]0, t] + CFL, is a juxtapositon of Riemann problems, gives u(x, t) 3. project back u(x, t) on piecewise constant functions u 1 i solve a Riemann problem at each interface x i+1/2, gives: g(u i,u i+1 ) = f (w R (0±;u i,u i+1 ))= Godunov s flux if too complex! solve a linear Riemann problem at each interface x i+1/2 with some matrix A i+1/2 (Roe s matrix) more generally, use an approximate Riemann solver (HLL)

46 Usual properties Order of accuracy. Taylor expansion: 3-point schemes are first order (if monotone) or second order (Lax-Wendroff) Stability. L 2 linear stability: use Fourier transform or normal modes L stability (convex combination) monotone schemes: scalar property u 0 v 0 u n v n monotonicity preserving, TVD (scalar) t CFL condition for explicit schemes: x max f (u) cfl 1 for system becomes t x max λ i(u) cfl 1 Entropy : discrete entropy inequality with entropy U and consistent numerical entropy flux G U(u n+1 i ) U(ui n ( ) + λ i G(u n i, ui+1) n G(ui 1,u n i n ) ) Monotone schemes are L stable, TVD, Entropy satisfying... but only first order accurate. Example: Godunov, Lax-Friedrichs, Osher...

47 Required properties in applications stability: -preservation of invariant domains, keep the approximate solution in the physical set of states, for instance preserve the positivity of,p, α [0,1] for a volume fraction... -discrete entropy inequalities, maximum principle for the specific entropy satisfied by Godunov, HLLE accuracy: -exactly resolve stationary contact discontinuity (satisfied by Godunov, Roe, VFRoe, not by HLLE) -capture stationary discrete shocks with at most two intermediate states (satisfied by Godunov, Roe) some specific problems: - well-balanced: preserve equilibria at the discrete level - asymptotic preserving: when the continuous equation has some asymptotic behavior, mimic that at the discrete level - compute low-mach, slowly moving shocks (σ/ max i λ i << 1)

48 Some tools entropy fix choice of variables: non conservative VFRoenc entropy variables add diffusion/antidiffusion

49 Example: positivity of,p for Godunov Positivity of and p satisfied by Godunov (not by Roe) at least for a γ law p = (γ 1) ε: if 0i 0, p 0 i 0, then n > 0, ni 0,p n i 0. Proof: u n i = ( ni,( u)n i, ( e)n i ) is the mean value of the solution of an exact evolution step: u n i = 1 xi+1/2 x i x u(x, t)dx. i 1/2 It yields ni 0, i Z, because u(x,t) = (, u, e)(x,t) is an admissible physical state. The expression for pi n is less straightforward. We have p n i = (γ 1) ( ( e) n i 1 2 ni (u n i ) 2), u n i = ( u)n i ni The energy component is given by x i ( e) n i = xi+1/2 x i 1/2 ε(x, t)dx then by Cauchy-Schwarz inequality xi+1/2 x i 1/2 u 2 (x, t)dx,.

50 ( x i+1/2 x i 1/2 gives by definition of u n i thus since we get x i p n i (γ 1) = positivity of p for Godunov ) 2 ( x i+1/2 u dx dx )( xi+1/2 u 2 dx ) x i 1/2 x i 1/2 xi+1/2 ni (u n i ) 2 x i 1/2 ε dx xi+1/2 x i 1/2 xi+1/2 u 2 dx x i 1/2 u 2 dx 1 2 ni (u n i ) 2 pi n (γ 1) 1 xi+1/2 ε dx 0 x i x i 1/2 this last integral is positive since ε 0 again because u(x,t) is an admissible physical state.

51 Roe scheme Roe-type linearization: A(u,v) Roe matrix if A(u,v) is a p p matrix satisfying f(v) f(u) = A(u,v)(v u) A(u,v) has real eigenvalues a k (u,v) and a corresponding set of eigenvectors, basis of R p : r k (u,v). Theoretical result: if the system has a strictly convex entropy U, A(u,v) exists. in practice: A(u, v) = A(m(u, v)), find an averaging operator, exists for Euler. The scheme is given by xu n+1 j = w l R x/2 0 w l R ( x t ;un j 1,u n j )dx+ 0 x/2 w l R ( x t ;un j,u n j+1)dx exact solution of a linear Riemann problem associated resp. to A n j 1/2 = A(un j 1,un j ) on (x i 1,x i ) and A n j+1/2 = A(un j,un j+1 ) on (x i,x i+1 ).

52 The scheme is Roe scheme u n+1 j = u n j λ 2( (A n j+1/2 A n j+1/2 )(un j+1 u n j )+(A n j 1/2 + An j 1/2 )(un j u n j 1 matrix upwind form u n+1 j = u n j λ ( (A n 2 j+1/2 ) (u n j+1 u n j ) + (A n j 1/2 )+ (u n j u n j 1) ) eigenvector decomposition: α k coefficient of u on r k, a ± k eigenvalues of A ± u n+1 j = u n j λ p ( (αk a k r k) n j+1/2 + (α ka + k r k) n j 1/2) k=1 conservative form with numerical flux g(u,v) = 1 2 (f(u) + f(v)) 1 A(u,v) (v u) 2 the viscosity matrix is A(u,v).

53 Roe matrix for Euler A(u L,u R ) = A(m(u L,u R )), m mean operator computed by parameter vector = change of variables u w(u) such that we get homogeneous quadratic functions of w: u(w) and g(w) = f (u(w)) g = g ((w + w + )/2) w, u = u ((w + w + )/2) w then m(u,u + ) = u((w + w + )/2). H = e + p/ total specific enthalpy ( e + p)u = Hu w = (, u, H) T,u = (w 2 1,w 1 w 2,w 1 w 3 p,) T g(w) = (w 1 w 2, w p,w 2 w 3 ) T for an ideal gas p = (γ 1)/2γw (γ 1)/γw 1w 3, also OK for Gruneisen law, not possible for any real gas equation of state. Note u the Roe average state of u L,u R u = Lu L + Ru R,H = LH L + RH R L + R L + R comes from u = w 2 /w 1, H = w 3 /w 1.

54 Roe scheme for Euler Coefficients α k of u on r k given by nice formulas For a more general equation of state p = p(, ε), possible to define A(u) if one can find mean values of κ, χ such that p = χ + κ ( ) Properties of Roe s scheme. Accuracy: solves exactly pure discontinuities (shocks and contacts). Drawbacks:,p are not necessarily positive (in case of the interaction of strong shocks) and no entropy inequality, needs an entropy correction near sonic points, for instance diagonalize Q(u,v) = λ A(u, v) in the basis r k (u,v) λdiag( a k ) and add some entropy by a smooth quadratic regularization of x near 0 { λ x, x δ Q δ (x) = λ(x 2 (1) /2δ + δ/2), x δ δ chosen in function of spectral radius of A, δ = α( u + c), α constant depends on the applications.

55 Extensions Replace Q(u,v) by a diagonal matrix α(u,v) λ I gives a Lax-Friedrichs type scheme g Roe (u,v) = 1 2 (f(u) + f(v)) 1 2 ARoe (u,v) (v u) g(u,v) = 1 1 (f(u) + f(v)) α(u,v)(v u) 2 2λ Stability: α 1, LF for α = 1. Rusanov: α(u,v) = λmax(max i ( λ i (u),max i ( λ i (v) ) and CFL 1/2 Extensions of Godunov s scheme: - using shock curve decomposition, associated to a path f(v) f(u) = A(u,v)(v u) A(u,v) = 1 0 A(u + s(v u))ds extends to nonconservative systems - linearization at another state: VFRoe scheme A VFR (u,v) = A((u + v)/2).

56 Extension: VFROEnc VFRoe scheme in nonconservative variables: w = w(u) t w + B(w) x w = 0 linearization t w + B(ŵ) x w = 0 ŵ = (w(u L ) + w(u R )/2), B(w L,w R ) = B((w L + w R )/2) then A VF (u L,u R ) = A(u(ŵ)). Simple, no theoretical good properties (can produce negative ), but gives practical good results with a good choice of w. Example: for isentropic gas dynamics, p = p( ) = κ γ t + x u = 0 t u + x ( u 2 + p) = 0

57 VFROEnc Choose w = (ϕ( ),u), where ϕ is involved in Riemann invariant w, w ± = u ± ϕ( ), ϕ ( ) = p ( )/, quasilinear formulation t ϕ + u x ϕ + p ( ) x u = 0, t u + u x u + p ( ) x u = 0 diagonalizable with w ±. Vacuum appears if u R u L ϕ R + ϕ L Linearize with û = (u L + u R )/2, ˆϕ = (ϕ( L) + ϕ( L))/2, p (ˆ ) Linear Riemann problem has an intermediate state for λ 1 = û p (ˆ ) < x/t < λ 2 = û + p (ˆ ) u = (u L + ϕ L + u R ϕ R )/2, ϕ = (u L + ϕ L u R + ϕ R )/2, ϕ defines 0 only if u L + ϕ L u R + ϕ R 0, take ϕ + might ensure > 0 (no vacuum).

58 Second order extension Use the same numerical flux on more accurate values (MUSCL approach), in time use RK or some 2nd order scheme -piecewise constant reconstruction, one value per mesh is first order u i = 1 x i xi+1/2 x i 1/2 u(x)dx -define two values per mesh u i+1/2, u i+1/2+ (using u i±1,u i ) such that both u i+1/2± = u(x i+1/2 ) + O( x) 2, and define the new numerical flux: g i+1/2 = g(u i,u i+1 ) replaced by g(u i+1/2,u i+1/2+ ) -second order accurate reconstruction operator: scalar piecewise linear u δ (x) = u i + δ i (x x i ) in Ω i with slope δ i computed from nearby values and limited, u i 1/2+ = u δ (x i 1/2 ) = u i x i δ i /2 u i+1/2 = u δ (x i+1/2 ) = u i + x i δ i /2

59 Muscl approach TVD property need of limiter, for example δ i = minmod ( 2 u i u i 1 x i 1 + x i,2 u i+1 u i x i+1 + x i ) for systems, which variables are piecewise linear (+limited): conservative / primitive? second order needs slopes, in 2d, approximating the gradient is less obvious than in 1d.

60 Introduction to the treatment of source terms Treatment depends on the nature of the source. External force, gravity: explicit treatment need of upwinding in some cases stiff source terms (reacting flow, relaxation): implicit treatment or frequent tool: operator splitting geometric source terms: well-balanced schemes = preserve some discrete steady states friction like source terms: asymptotic preserving schemes = preserve asymptotic behavior higher order terms: diffusion, dispersion...

61 Introduction to operator splitting A simple example t u + a x u = αu u(x,t) = e αt u 0 (x at), if a > 0, an upwind method and explicit treatment of source term give u n+1 j = u n j λa(u n j u n j 1) α tu n j An operator splitting consists in solving in two steps (in time) 1. t u + a x u = 0 with upwind: u n+1 j = uj n λa(uj n uj 1 n ) = u n+1 j 2. t u = αu gives with Euler: u n+1 j results in a first order accurate (setting ν = λa) u n+1 j u n+1 j α tu n+1 j = u n j λa(u n j u n j 1) α tu n j + aαλ t(u n j u n j 1) = u n j ν(u n j u n j 1) α t(u n j (1 ν) + νu n j 1) 1. t u + a x u = 0 u(x,t) = u 0 (x at) 2. t u = αu u(x, t) = e αt u 0 (x) each solved on a time step gives u(x, t + t) = e α t u(x a t,t)= exact solution

62 operator splitting In general t u + (A + B)u = 0 where A,B are operators (differential or not, previous example: Au = x u,bu = αu); in general advection (differential) and source (may be stiff). Solve t u + Au = 0 on one time step, from i.c. u(x,t) gives ũ(x,t + t) = e ta u(x,t) t u + Bu = 0 on one time step, from i.c. ũ(x,+ t) gives ˇũ(x,t + t) = e tb ũ(x,t + t) = e tb e ta u(x,t) exact solution would be u(x,t + t) = e t(a+b) u(x,t) If A and B do not commute, there is a splitting error, it results in a first order method. Can be improved by Strang s splitting.

63 Strategy Both schemes (splitting, upwinding) converge towards the same solution, as the mesh size vanishes, and with the same rate. When the mesh is given, which is best? Answer: problem dependent relaxation scheme: splitting with instantaneous relaxation preserve equilibria (A + B)u = 0 (steady solutions) at the discrete level, in general, by balancing exactly flux gradient and source term: well balanced scheme (or interface Riemann solver). If source terms exactly balance convective effects, source terms have to be upwinded in accordance with upwinded convective fluxes. Splitting gives poor accuracy on coarse meshes. The first step may introduce non equilibrium states (ex. simulating atmosphere at rest may create catastrophic behavior). compute unsteady flows, with some external time scale; splitting behaves better, well balanced scheme should be improved.

64 Introduction to relaxation schemes Consider a simple example t u + x v = 0, t v + x p(u) = λ(f (u) v), (2) with p(u) = au, a > 0 constant, satisfying Whitham a < f (u) < a. Appropriate discretization of (2) will approximate the solution u of the conservation law t u + x f (u) = 0 for λ large enough. Diagonalize (2), with Riemann invariants w = v au, z = v + au propagating with speed ± a, and use upwind scheme. Inverse relations u = (z w)/2 a,v = (w + z)/2

65 a simple example of relaxation scheme Flux of (2) is (v,au), numerical flux g i+1/2 = (v i+1/2, au i+1/2 ). Upwind scheme in (w, z) gives fluxes (w i+1/2 = w i+1, z i+1/2 = z i ), hence w i+1/2 = (v au) j+1/2 = v j+1 au j+1 z i+1/2 = (v + au) j+1/2 = v j + au j and u j+1/2 = 1 2 (u j + u j+1 ) 1 2 a (v j+1 v j ) v j+1/2 = 1 2 (v j + v j+1 ) 1 2 a(uj+1 u j ). For the fully discrete first order scheme, this gives with ν = t/ x u n+1 j v n+1 j u n j + ν 2 (vn j+1 vn j 1 ) ν 2 a(u n j+1 2u n j + u n j 1 ) = 0 v n j + ν a 2 (un j+1 un j 1 ) ν 2 a (vn j+1 2vn j + v n j 1 ) = λ t(f (u n j ) vn j ).

66 a simple example of relaxation scheme Since the system is linear, the upwind scheme for the first order system is the exact Godunov solver in variables (w,z) W R (x/t; (w l,z l ),(w r,z r )) = (w l,z l ) x t < a (w r,z l ) c < x t < a (w r,z r ) x t > a The relaxed spatial discretization with v = f (u) gives a Lax-Friedrichs type scheme u n+1 j = u n j ν 2 (f (un j+1) f (u n j 1)) + ν 2 a(u n j+1 2u n j + u n j 1) associated with the approximate Riemann solver and projection on the equilibrium variety (u = (w + z)/2, v = f (u)) u l ξ < a u l + u r w R (ξ;u l,u r ) = f (u r) f (u l 2 2, a < ξ < a a ξ > a u r

67 Jin-Xin relaxation scheme and thus the numerical flux g(u l,u r ) = 1 a 2 (f (u l) + f (u r )) 2 (u r u l ) Remark : the Rusanov scheme is obtained by optimizing the choice of a, under the subcharacteristic constraint a = sup f (u). u l,u r Generalization to a system of p equations gives 2p equations t u + x v = 0, t v + A u = λ(f(u) v), (3) x where A is now a constant diagonal matrix with positive entries. The choice of a in Rusanov scheme is now a = sup sup λ j (u). u l,u r j

68 2d FV schemes some remarks grid effects possible on a cartesian grid for a given mesh (T i ), choice of cells Ω i : cell-center Ω i = T i or cell-vertex scheme Ω i = T i dual mesh some difficulties to obtain bounds (TVD?), consistency attempts to construct truly 2d FV schemes second order needs slopes, approximating the gradient is less obvious than in 1d implementation...

69 Coupling algorithms for hyperbolic systems Edwige Godlewski Laboratoire Jacques-Louis Lions Université Pierre et Marie Curie (Paris) Cemracs, July 2011

70 Our coupling model the interface is a boundary for both (left and right) systems: two IBVP t IBVP in x<0!#&!'(%!#&*'(% IBVP in x>0 system with flux system with flux ) ) L R!""#$%!""#$% 0 0 x 0 interface x=0

71 2. Introduction to the boundary value problem, introduction to interface coupling introduction to the IBVP simple examples: linear 1d and 2d (scalar, system) scalar nonlinear nonlinear system modeling numerical approach introduction to interface coupling

72 Introduction to the boundary value problem HSCL: set of p conservation laws u d t + f j (u) = 0, t > 0, (1) x j j=1 u = (u 1, u 2,..,u p ) T Ω in R p set of states, f(u) = (f j (u)) flux (each f j (u)) R p ). Initial condition, u(x, 0) = u 0 (x) on the boundary t = 0, and for an IBVP (initial boundary value problem) x O, + boundary condition g on O (0,T) Problems at all levels theoretical modeling numerical approach

73 Introduction: linear case, advection equation u t + a u = 0, x (0,1), t > 0, (2) x u(x,0) = u 0 (x), x (0,1), (3) solutions are constant along characteristic lines x at =const. If a > 0, they enter the domain from x = 0, leave it from x = 1. One needs to prescribe the solution on the boundary x = 0, u(0,t) = g(t), t > 0 (4) where g is some given function. If M = (x,t) is any point in the domain (0, 1) R +, the value of u at M is then uniquely determined. One cannot prescribe the solution on the boundary x = 1. The solution u of (2), (3) (4) is then given for t > 0 by u(x,t) = u 0 (x at) if at < x < 1, ( ) u(x,t) = g t x a if 0 < x < min(at,1)

74 Scalar transport in 2d The solution of the pure Cauchy problem u t + a u x + b u y = 0, (x, y,t) R R R +, u(x,y,0) = u 0 (x, y), x,y R R (5) is u(x, y, t) = u 0 (x at,y bt), and is constant on the characteristic lines x at = cst, y bt = cst, advection direction C = (c,1), c = (a,b) T. For an I.B.V.P., (x, y,t) Q = O R + of R 2 R +, with boundary Σ; Q is a cylinder and two different kinds of data are given on the surface Σ: (i) initial data on the set O of the plane t = 0, (ii) boundary data on the remaining part Γ of Σ (Γ is the side of the cylinder): Γ = O R +. On this surface Γ, n t = 0 Let n = (n x,n y ) T be the outward normal to O in the plane t = 0.

75 Scalar transport in 2d One says that the boundary of O is characteristic at a point if an x + bn y = c n = 0 at this point. Boundary data have to be prescribed on the part Γ of the boundary that corresponds to incoming characteristics O = {(x,y) O;c n(x,y) < 0}, (6) u(,t) = g(, t) on O u = g on Γ = O R +, (7) and not on the part O + = {(x,y) O;c n(x,y) 0} where they are outgoing. Note that if O is characteristic at m 0 = (x 0, y 0 ), u cannot be specified on the corresponding line of Γ.

76 Linear system in 1d t u + A x u = 0, x (0,1), t > 0 First if A = Λ = diag(a i ) constant diagonal p p matrix and a i 0 assume q positive eigenvalues a i > 0 A = A + + A, A + = diag(a i +) Λ I, A = diag(a i ) Λ II, u = (u I,u II ). Boundary conditions are u I (0,t) = g I (t),u II (1,t) = g II (t) i such that a i = 0 is in II for x = 0, in I for x = 1. More generally u I (0,t) = g I (t) + S I u II (0,t),u II (1,t) = g II (t) + S II u I (1, t) S I,S II rectangular matrices (allow reflection of the outgoing wave)

77 Linear system in 1d if A diagonalizable A = TΛT 1, characteristic variables w = T 1 u, w = (w I,w II ) R q R p q. Boundary conditions are w I (0,t) = g I (t) + S I w II (0,t),w II (1,t) = g II (t) + S II w I (1,t) In conservative variables u? Can we prescribe Eu(0,t) = g(t), E is a N p matrix, g(t) R N given (prescribe N linear combinations of the conservative variables). It requires N = q (number of > 0 eigenvalues) and if T = (T I,T II ) (T I matrix of eigenvectors assoc. to a i > 0, and T II to a i < 0), ET I must be a q q invertible matrix

78 Linear system in 1d Example: linearized acoustic in 1d given by the linear system tu + A 0 xu = 0, x [a, b] U = (p, u) with constant matrix (assume u 0 = 0) A 0 = ( 0 0c 2 0 1/ 0 0 Characteristic variables are w 1 = ( p + 0c 0 u)/2 0c 0, w 2 = (p + 0c 0 u)/2 0c 0, resp. propagate at c 0 and c 0, p = 0c 0 (w 2 w 1 ),u = w 1 + w 2. Can we prescribe u(a,t) = u(b,t) = 0? E = (0,1), T I = r 1 = ( 0c 0,1) T, T II = r 2 = ( 0c 0,1) T, ET I = ET II = 1 invertible. At x = a means w 2 (a, t) = w 1 (a,t) (known from initial data), at x = b means w 1 (b,t) = w 2 (a, t). ).

79 Linear system in 2d t u + A x u + B y u = 0, x > 0,y R, t > 0 u(x,y,0) = u 0 (x,y), Eu(0,y, t) = g(y,t). Much more difficult! assume A invertible (x = 0, n = ( 1,0) non characteristic boundary), even assume A diagonal with q > 0 eigenvalues. Necessary condition: q boundary conditions prescribed on x = 0 u I (0,y,t) = g I (y,t). Not sufficient! other necessary condition: uniform Kreiss condition (Kreiss-Lopatinski) says det EN(η,s) 0, η R,Re(s) > 0 Use Laplace transform, D(η,s) = A 1 (si iηb) has q eigenvalues ξ i with Re < 0, normal modes u(x,y,t) = ϕ(x)e iηy st, N matrix of eigenvectors of D (cor. to ξ i ), the condition excludes the modes that yield an ill-posed problem.

80 Nonlinear equation (scalar) t u + xi f i (u) = 0, x O, t > 0 d = 1 already difficult! Theoretical result (vanishing viscosity method) Bardos-LeRoux-Nédelec (1979): there exists a unique entropy (weak) solution u in BV(O (0,T)) in a sense well-defined with Kruzkov s entropy (formulation with test functions) ϕ C0 2 (O [0,T[), ϕ 0 and any k R T { u k ϕ d 0 O t + sgn(u k) (f i (u) f i (k)) ϕ } dx dt x i i=1 T d + sgn(b k)( (f i (k) f i (γu))ν i )ϕ(s,t)dsdt, 0 O i=1 + ϕ(x,0) u 0 (x) k dx 0, (8) O where ν is the unit outward normal to O, γu is the trace of u and u(x,0) = u 0 (x) a.e. in O, b boundary data

81 Nonlinear equation (scalar) In 1d, domain x > 0 boundary x = 0, easy characterization: given a boundary value b(t), the solution is such that u(0,t) satisfies f (u) f (k) u k 0, k between u = u(0,t) and b = b(t) slope of the chord [(u,f (u)),(b,f (b))] negative. If f > 0, forces u(0,t) = b(t), if f < 0, no condition. If f may vanish, nonlinear effects are possible. Example with Burgers: u 0 = 1, f (u 0 ) > 0, b = 2, f (b) < 0, rarefaction, u(0,t) = 0. u 0 = 1, f (u 0 ) < 0, b = 2 f (b) > 0, shock entering, with speed σ = 1/2, u(0,t) = b = 2 u 0 = 1, f (u 0 ) < 0, b = 1/2 f (b) > 0, shock leaving, with speed σ = 1/4, u(0, t) = 1.

82 Nonlinear system t u + x f(u) = 0, x > 0,t > 0 Theoretical results: given boundary data g, necessary condition in the form u(0,t) E(g(t)) (residual boundary condition, result of Gisclon-Serre) Easy characterization with Riemann problem: u(0,t) V(g(t)), where V = set of traces at 0 of all possible Riemann problems with given left data g (Dubois-LeFloch) u(0,t) = W R (0;g,v) for some v Ω E = V for scalar (nonlinear) equations and also for linear systems: if g = cst, a 1 a 2.. a r 0, r = p q non positive eigenvalues r V(g) = {u, α i R r,u = g + α i r i } i=1

83 Modeling and numerics Different types of boundaries: physical / artificial boundary Solid boundary: rigid wall. Boundary condition is u.n = 0: the fluid cannot cross the wall (u = 0 in d=1, slip boundary conditions in d = 2, the flow moves tangentially to the boundary) Fluid boundary: linearization. Example in 1d: supersonic inflow: u 0 > c 0, q = 3, 3 boundary conditions (the whole state must be prescribed), subsonic inflow: 0 < u 0 < c 0, q = 2, 2 conditions. Prescribe any linear combination in conservative variables, in primitive variables, (, u), (, p), not (u,p) subsonic inflow: q = 1, c 0 < u 0 < 0, 1 condition, or u or p supersonic inflow: q = 0 no condition choice of the prescribed condition given by modeling

84 modeling and numerics Artificial boundary For computation, need of a bounded domain, if part of an infinite domain (example: exterior flow) absorbing boundary or nonreflecting conditions: easy in 1d, less in 2d (unless flow normal to the boundary) other approach: PML (perfectly matched layer)

85 Numerical treatment: some items For a finite difference scheme, you need the whole boundary state (u I,u II ) even if only u I is prescribed. Use interpolation techniques, or an upwind scheme to compute these values from the interior known values. For a solid wall, use mirror state. In 1d, for a finite volume monotone scheme, the boundary is an interface, say x = 0, you need a flux at the interface. You may use the whole boundary state b even if only part of it is used : g(b, u 1/2 ) where is g is a monotone numerical flux, it picks up the relevant data. same idea in 2d in the normal direction Scalar case: theorem of convergence to the entropy solution of the IBVP (convergence of the traces in some cases) Some result also exists for Godunov scheme for a convex system (non characteristic boundary).

86 Numerical treatment For a system, usual treatment: if you have a known state U ext satisfying the linearized condition, use it in the flux Φ(U int,u ext ), where U int is the known state in the interior cell adjacent to the boundary. If nonlinear effects are possible, solve partial Riemann problems. What is required is that U ext belongs to a manifold with codimension q = number of specified conditions = number of positive eigenvalues. Example: supersonic outflow V ext with subsonic internal computed state V i. Look for one (q = 0) supersonic (or sonic) state V 0 that can be connected to V i by 4-wave in d = 2 (a 3-wave in d = 1). Since a 4 (V 0, n) = u n0 + c 0 0 a 4 (V i, n) = u ni + c i, this wave is a 4-rarefaction (3-rarefaction in d = 1).

87 Interface coupling: (theoretical) introduction 2 hyperbolic systems of conservation laws : u Ω R p u t + x f L(u) = 0, x < 0, t > 0 (9) u t + x f R(u) = 0, x > 0, t > 0 (10) u(x,0) = u 0 (x), and a coupling condition at x = 0 x R u(0,t) V L (u(0+,t)), u(0+,t) V R (u(0, t)) (11) which says that the 2 IBVP are well posed. u(0+, t) V R (b) means for some u R p, u(0+,t) = W R (0+;b,u) W R solution of the Riemann problem for f R (sim. for V L and f L )

88 Interface coupling t IBVP in x<0 u(0,t) u(0+,t) IBVP in x>0 system with flux system with flux f f L R u (x) u (x) 0 0 x 0 interface x=0

89 Interface coupling: scalar case characteristic interface: difficulties are possible! t t f (u ) L L u(0 ) u(0+) f (u ) R R f (u ) L L u(0 ) f (u ) L R u R u(0+) f (u ) R L u L f (u ) R R u L u R x u L u R x

90 The coupling condition transmission u(0,t) V L (u(0+,t)), u(0+, t) V R (u(0, t)) often leads to the continuity u(0+,t) = u(0,t): the conservative variables are transmitted Is it possible to transmit other variables (primitive)? Change of dependent variables : u Ω v Ω v v u = ϕ α (v);α = L,R admissible i.e. ϕ α(v) isomorphism of R p c a given boundary physical data, set b α = ϕ α (c), define V L (b L ) = {w = W L (0 ;u,b L );u Ω} V R (b R ) = {w = W R (0+;b R ),u + );u + Ω} are admissible boundary sets for L,R transmission of variable v obtained by u(0,t) V L (ϕ L (v(0+,t))) u(0+,t) V R (ϕ R (v(0,t))) often yields continuity: v(0, t) = v(0+, t)

91 Numerical interface coupling Finite volume method: x, t, µ = t x, t n = n t, n N cell (x j,x j+1 ), center x j+1/2 = ( j + 1 2) x, j Z, u 0 j+1/2 = 1 xj+1 x x j u 0 (x)dx, j Z. 2 numerical fluxes g L, g R, g α consistent with f α 3-point monotone ( scheme )(under CFL condition): gα,j n = g α u n j 1/2,un j+1/2 ) u n+1 j 1/2 = un j 1/2 (g µ L,j n gn L,j 1, j 0 ) u n+1 j+1/2 = un j+1/2 (g µ R,j+1 n gn R,j, j 0 2 fluxes at x = 0: gl,0 n, gn R,0

92 Numerical interface coupling t g L,0 g R,0 x 2 x 1 u x 1 x 1/2 u 1/2 2 x=0 x 2 (numerical) fluxes at the interface: g L,0 = g L (u 1/2,u 1/2 ), g R,0 = g R (u 1/2,u 1/2 ) need of a state u 1/2 for g L,0, u 1/2 for g R,0

93 Coupling algorithms for hyperbolic systems Edwige Godlewski Laboratoire Jacques-Louis Lions Université Pierre et Marie Curie (Paris) Cemracs, July 2011

94 Interface coupling, coupling algorithm, examples Interface coupling: main features, examples Mathematical model: coupling condition State coupling / flux coupling Numerical interface coupling Father model, interface model

95 Interface coupling: main features Recall the framework: given two codes two (compressible) fluid codes simulating fluid flow of the same nature, taking into account different specificities not coupled phenomena (monophysics) fixed interface (multidomain) thin interface, the codes interact exchange of information at the interface (strong coupling) need of a robust procedure understand the physics at the interface ( intelligent coupling) use existing codes few modifications in each domain give a numerical coupling procedure to couple the codes. The real problem is difficult; try some simpler situations, identifying some specificities on simpler cases.

96 Examples Real examples of coupling codes in thermohydraulics homogeneous models: HEM-HRM (assuming thermodynamic equilibrium or not) 1D - 2D, 1D - 3D models (taking into account symmetry or keeping multidimensional effects) bifluid - drift flux models (1 velocity per fluid or algebraic closure for the drift) Some (theoretical) mathematical models for coupling (scalar) conservation laws linear systems (of the same dimension) relaxation (2x2) system / relaxed (scalar) conservation law Euler systems in Lagrangian coordinates systems: barotropic (2x2)/ with energy (3x3) coupled Riemann problem for two Euler systems linearly degenerate systems (relaxing to Euler)

97 Mathematical model for interface coupling Two hyperbolic systems of conservation laws (possibly nonconservative) u t + x f α(u) = 0,u R α, α = L,x < 0,R, x > 0, t > 0 possibly u R p left, U R q right compatibility between systems (or not): either p = q or p q but (if say p < q) L (lift), P (projection), u U = Lu and U u = PU 1. plasma models: same equations, only one flux component is discontinuous 2. models 1D-2D: 2D system reduces to the 1D system 3. p system coupled with Euler (in Lagrangian coord.) are compatible 4. multiphase models: 7 equations (2 velocities) and drift - flux two boundary value problems, one on each side of the interface x = 0 (thin interface, no interface model ) coupling model through the choice of transmitted variables (1)

98 Coupling Condition Given b, IBVP in x > 0, one cannot impose u(0+,t) = b weak formulation of the boundary condition: u(0+,t) O R (b) means u(0+,t) = W R (0+;b,u) for some u R p W R (0+;u l,u r ) solution of the Riemann problem(rp) with f R O R (b) = traces at x = 0 of all possible RP between b and a right state (sets O previouly noted V) define the sets O L (PU(0+, t)), O R (Lu(0, t)) coupling condition (CC): u(0,t) O L (PU(0+, t))), U(0+,t) O R (Lu(0,t)) state coupling transmission possible with other (primitive) variables u v and U V

99 Comments Why a thin interface? why this mathematical model? several levels of answer codes should not be modified: only the (boundary) data need to understand what a natural scheme computes in case of non uniqueness, instability linked to resonance is avoided (ex. plasma) if one regularizes, for large time, behaves like a coupled problem (CRP) thickening requires more physics When p = q, there is another natural conservative approach.

100 State coupling / Flux coupling 1. A natural link exists with equations with discontinuous coefficients (p = q): conservative approach t u + x ( (1 H(x))fL (u) + H(x)f R (u) ) = 0 yields f L (u(0,t)) = f R (u(0+,t)) flux coupling as opposed to state coupling A conservative form (given by physics) involves some natural entropy condition 2. Even for identical systems (f L = f R ), the conservative formulation is a choice for transmission: one decides to transmit the flux. In some cases, it is not physical (ex. nozzles with discontinuous but constant section, the rate of flow is not conserved) we choose to study all possibilities: state and flux coupling 3. One can model the transmission of other variables

On a simple model of isothermal phase transition

On a simple model of isothermal phase transition On a simple model of isothermal phase transition Nicolas Seguin Laboratoire Jacques-Louis Lions Université Pierre et Marie Curie Paris 6 France Micro-Macro Modelling and Simulation of Liquid-Vapour Flows

More information

Model adaptation in hierarchies of hyperbolic systems

Model adaptation in hierarchies of hyperbolic systems Model adaptation in hierarchies of hyperbolic systems Nicolas Seguin Laboratoire J.-L. Lions, UPMC Paris 6, France February 15th, 2012 DFG-CNRS Workshop Nicolas Seguin (LJLL, UPMC) 1 / 29 Outline of the

More information

Équation de Burgers avec particule ponctuelle

Équation de Burgers avec particule ponctuelle Équation de Burgers avec particule ponctuelle Nicolas Seguin Laboratoire J.-L. Lions, UPMC Paris 6, France 7 juin 2010 En collaboration avec B. Andreianov, F. Lagoutière et T. Takahashi Nicolas Seguin

More information

Numerical Solutions to Partial Differential Equations

Numerical Solutions to Partial Differential Equations Numerical Solutions to Partial Differential Equations Zhiping Li LMAM and School of Mathematical Sciences Peking University Introduction to Hyperbolic Equations The Hyperbolic Equations n-d 1st Order Linear

More information

Couplage de modèles en thermohydraulique. Troisième rapport de synthèse

Couplage de modèles en thermohydraulique. Troisième rapport de synthèse Couplage de modèles en thermohydraulique. Troisième rapport de synthèse Annalisa Ambroso, Benjamin Boutin, Christophe Chalons, Frédéric Coquel, Thomas Galié Edwige Godlewski, Frédéric Lagoutière, Pierre-Arnaud

More information

Hyperbolic Systems of Conservation Laws. in One Space Dimension. I - Basic concepts. Alberto Bressan. Department of Mathematics, Penn State University

Hyperbolic Systems of Conservation Laws. in One Space Dimension. I - Basic concepts. Alberto Bressan. Department of Mathematics, Penn State University Hyperbolic Systems of Conservation Laws in One Space Dimension I - Basic concepts Alberto Bressan Department of Mathematics, Penn State University http://www.math.psu.edu/bressan/ 1 The Scalar Conservation

More information

arxiv: v2 [math.ap] 1 Jul 2011

arxiv: v2 [math.ap] 1 Jul 2011 A Godunov-type method for the shallow water equations with discontinuous topography in the resonant regime arxiv:1105.3074v2 [math.ap] 1 Jul 2011 Abstract Philippe G. efloch 1 and Mai Duc Thanh 2 1 aboratoire

More information

Numerical Methods for Conservation Laws WPI, January 2006 C. Ringhofer C2 b 2

Numerical Methods for Conservation Laws WPI, January 2006 C. Ringhofer C2 b 2 Numerical Methods for Conservation Laws WPI, January 2006 C. Ringhofer ringhofer@asu.edu, C2 b 2 2 h2 x u http://math.la.asu.edu/ chris Last update: Jan 24, 2006 1 LITERATURE 1. Numerical Methods for Conservation

More information

Hyperbolic Systems of Conservation Laws. in One Space Dimension. II - Solutions to the Cauchy problem. Alberto Bressan

Hyperbolic Systems of Conservation Laws. in One Space Dimension. II - Solutions to the Cauchy problem. Alberto Bressan Hyperbolic Systems of Conservation Laws in One Space Dimension II - Solutions to the Cauchy problem Alberto Bressan Department of Mathematics, Penn State University http://www.math.psu.edu/bressan/ 1 Global

More information

Finite Volume Schemes: an introduction

Finite Volume Schemes: an introduction Finite Volume Schemes: an introduction First lecture Annamaria Mazzia Dipartimento di Metodi e Modelli Matematici per le Scienze Applicate Università di Padova mazzia@dmsa.unipd.it Scuola di dottorato

More information

FDM for wave equations

FDM for wave equations FDM for wave equations Consider the second order wave equation Some properties Existence & Uniqueness Wave speed finite!!! Dependence region Analytical solution in 1D Finite difference discretization Finite

More information

A Godunov-type method for the diphasic Baer-Nunziato model

A Godunov-type method for the diphasic Baer-Nunziato model A Godunov-type method for the diphasic Baer-Nunziato model C. Chalons Joint work with : A. Ambroso, P.-A. Raviart with benefit from discussions with F. Coquel (CNRS, Ecole Polytechnique/CMAP) N. Seguin

More information

Annalisa Ambroso 1, Christophe Chalons 2, Frédéric Coquel 3 and Thomas. Introduction

Annalisa Ambroso 1, Christophe Chalons 2, Frédéric Coquel 3 and Thomas. Introduction Mathematical Modelling and Numerical Analysis Modélisation Mathématique et Analyse Numérique Will be set by the publisher RELAXATION AND NUMERICAL APPROXIMATION OF A TWO-FLUID TWO-PRESSURE DIPHASIC MODEL

More information

AA214B: NUMERICAL METHODS FOR COMPRESSIBLE FLOWS

AA214B: NUMERICAL METHODS FOR COMPRESSIBLE FLOWS AA214B: NUMERICAL METHODS FOR COMPRESSIBLE FLOWS 1 / 43 AA214B: NUMERICAL METHODS FOR COMPRESSIBLE FLOWS Treatment of Boundary Conditions These slides are partially based on the recommended textbook: Culbert

More information

Existence Theory for Hyperbolic Systems of Conservation Laws with General Flux-Functions

Existence Theory for Hyperbolic Systems of Conservation Laws with General Flux-Functions Existence Theory for Hyperbolic Systems of Conservation Laws with General Flux-Functions Tatsuo Iguchi & Philippe G. LeFloch Abstract For the Cauchy problem associated with a nonlinear, strictly hyperbolic

More information

Riemann Solvers and Numerical Methods for Fluid Dynamics

Riemann Solvers and Numerical Methods for Fluid Dynamics Eleuterio R Toro Riemann Solvers and Numerical Methods for Fluid Dynamics A Practical Introduction With 223 Figures Springer Table of Contents Preface V 1. The Equations of Fluid Dynamics 1 1.1 The Euler

More information

NUMERICAL SOLUTION OF HYPERBOLIC PARTIAL DIFFERENTIAL EQUATIONS

NUMERICAL SOLUTION OF HYPERBOLIC PARTIAL DIFFERENTIAL EQUATIONS NUMERICAL SOLUTION OF HYPERBOLIC PARTIAL DIFFERENTIAL EQUATIONS JOHN A. TRANGENSTEIN Department of Mathematics, Duke University Durham, NC 27708-0320 Ш CAMBRIDGE ЩР UNIVERSITY PRESS Contents 1 Introduction

More information

CapSel Roe Roe solver.

CapSel Roe Roe solver. CapSel Roe - 01 Roe solver keppens@rijnh.nl modern high resolution, shock-capturing schemes for Euler capitalize on known solution of the Riemann problem originally developed by Godunov always use conservative

More information

The RAMSES code and related techniques I. Hydro solvers

The RAMSES code and related techniques I. Hydro solvers The RAMSES code and related techniques I. Hydro solvers Outline - The Euler equations - Systems of conservation laws - The Riemann problem - The Godunov Method - Riemann solvers - 2D Godunov schemes -

More information

Numerical Solutions for Hyperbolic Systems of Conservation Laws: from Godunov Method to Adaptive Mesh Refinement

Numerical Solutions for Hyperbolic Systems of Conservation Laws: from Godunov Method to Adaptive Mesh Refinement Numerical Solutions for Hyperbolic Systems of Conservation Laws: from Godunov Method to Adaptive Mesh Refinement Romain Teyssier CEA Saclay Romain Teyssier 1 Outline - Euler equations, MHD, waves, hyperbolic

More information

Math 660-Lecture 23: Gudonov s method and some theories for FVM schemes

Math 660-Lecture 23: Gudonov s method and some theories for FVM schemes Math 660-Lecture 3: Gudonov s method and some theories for FVM schemes 1 The idea of FVM (You can refer to Chapter 4 in the book Finite volume methods for hyperbolic problems ) Consider the box [x 1/,

More information

AA214B: NUMERICAL METHODS FOR COMPRESSIBLE FLOWS

AA214B: NUMERICAL METHODS FOR COMPRESSIBLE FLOWS AA214B: NUMERICAL METHODS FOR COMPRESSIBLE FLOWS 1 / 59 AA214B: NUMERICAL METHODS FOR COMPRESSIBLE FLOWS The Finite Volume Method These slides are partially based on the recommended textbook: Culbert B.

More information

AA214B: NUMERICAL METHODS FOR COMPRESSIBLE FLOWS

AA214B: NUMERICAL METHODS FOR COMPRESSIBLE FLOWS AA214B: NUMERICAL METHODS FOR COMPRESSIBLE FLOWS 1 / 31 AA214B: NUMERICAL METHODS FOR COMPRESSIBLE FLOWS Linearization and Characteristic Relations 1 / 31 AA214B: NUMERICAL METHODS FOR COMPRESSIBLE FLOWS

More information

Info. No lecture on Thursday in a week (March 17) PSet back tonight

Info. No lecture on Thursday in a week (March 17) PSet back tonight Lecture 0 8.086 Info No lecture on Thursday in a week (March 7) PSet back tonight Nonlinear transport & conservation laws What if transport becomes nonlinear? Remember: Nonlinear transport A first attempt

More information

Integrodifferential Hyperbolic Equations and its Application for 2-D Rotational Fluid Flows

Integrodifferential Hyperbolic Equations and its Application for 2-D Rotational Fluid Flows Integrodifferential Hyperbolic Equations and its Application for 2-D Rotational Fluid Flows Alexander Chesnokov Lavrentyev Institute of Hydrodynamics Novosibirsk, Russia chesnokov@hydro.nsc.ru July 14,

More information

Lecture 5.7 Compressible Euler Equations

Lecture 5.7 Compressible Euler Equations Lecture 5.7 Compressible Euler Equations Nomenclature Density u, v, w Velocity components p E t H u, v, w e S=c v ln p - c M Pressure Total energy/unit volume Total enthalpy Conserved variables Internal

More information

0.3.4 Burgers Equation and Nonlinear Wave

0.3.4 Burgers Equation and Nonlinear Wave 16 CONTENTS Solution to step (discontinuity) initial condition u(x, 0) = ul if X < 0 u r if X > 0, (80) u(x, t) = u L + (u L u R ) ( 1 1 π X 4νt e Y 2 dy ) (81) 0.3.4 Burgers Equation and Nonlinear Wave

More information

Existence result for the coupling problem of two scalar conservation laws with Riemann initial data

Existence result for the coupling problem of two scalar conservation laws with Riemann initial data Existence result for the coupling problem of two scalar conservation laws with Riemann initial data Benjamin Boutin, Christophe Chalons, Pierre-Arnaud Raviart To cite this version: Benjamin Boutin, Christophe

More information

Numerical Methods for Hyperbolic Conservation Laws Lecture 4

Numerical Methods for Hyperbolic Conservation Laws Lecture 4 Numerical Methods for Hyperbolic Conservation Laws Lecture 4 Wen Shen Department of Mathematics, Penn State University Email: wxs7@psu.edu Oxford, Spring, 018 Lecture Notes online: http://personal.psu.edu/wxs7/notesnumcons/

More information

Hyperbolic Systems of Conservation Laws. I - Basic Concepts

Hyperbolic Systems of Conservation Laws. I - Basic Concepts Hyperbolic Systems of Conservation Laws I - Basic Concepts Alberto Bressan Mathematics Department, Penn State University Alberto Bressan (Penn State) Hyperbolic Systems of Conservation Laws 1 / 27 The

More information

Numerische Mathematik

Numerische Mathematik Numer. Math. (2007 106:369 425 DOI 10.1007/s00211-007-0069-y Numerische Mathematik Hyperbolic balance laws: Riemann invariants and the generalized Riemann problem Matania Ben-Artzi Jiequan Li Received:

More information

Lecture Notes on Hyperbolic Conservation Laws

Lecture Notes on Hyperbolic Conservation Laws Lecture Notes on Hyperbolic Conservation Laws Alberto Bressan Department of Mathematics, Penn State University, University Park, Pa. 16802, USA. bressan@math.psu.edu May 21, 2009 Abstract These notes provide

More information

Non-linear Wave Propagation and Non-Equilibrium Thermodynamics - Part 3

Non-linear Wave Propagation and Non-Equilibrium Thermodynamics - Part 3 Non-linear Wave Propagation and Non-Equilibrium Thermodynamics - Part 3 Tommaso Ruggeri Department of Mathematics and Research Center of Applied Mathematics University of Bologna January 21, 2017 ommaso

More information

A Bound-Preserving Fourth Order Compact Finite Difference Scheme for Scalar Convection Diffusion Equations

A Bound-Preserving Fourth Order Compact Finite Difference Scheme for Scalar Convection Diffusion Equations A Bound-Preserving Fourth Order Compact Finite Difference Scheme for Scalar Convection Diffusion Equations Hao Li Math Dept, Purdue Univeristy Ocean University of China, December, 2017 Joint work with

More information

Inverse Lax-Wendroff Procedure for Numerical Boundary Conditions of. Conservation Laws 1. Abstract

Inverse Lax-Wendroff Procedure for Numerical Boundary Conditions of. Conservation Laws 1. Abstract Inverse Lax-Wendroff Procedure for Numerical Boundary Conditions of Conservation Laws Sirui Tan and Chi-Wang Shu 3 Abstract We develop a high order finite difference numerical boundary condition for solving

More information

CapSel Euler The Euler equations. conservation laws for 1D dynamics of compressible gas. = 0 m t + (m v + p) x

CapSel Euler The Euler equations. conservation laws for 1D dynamics of compressible gas. = 0 m t + (m v + p) x CapSel Euler - 01 The Euler equations keppens@rijnh.nl conservation laws for 1D dynamics of compressible gas ρ t + (ρ v) x = 0 m t + (m v + p) x = 0 e t + (e v + p v) x = 0 vector of conserved quantities

More information

Notes: Outline. Shock formation. Notes: Notes: Shocks in traffic flow

Notes: Outline. Shock formation. Notes: Notes: Shocks in traffic flow Outline Scalar nonlinear conservation laws Traffic flow Shocks and rarefaction waves Burgers equation Rankine-Hugoniot conditions Importance of conservation form Weak solutions Reading: Chapter, 2 R.J.

More information

Relevant self-assessment exercises: [LIST SELF-ASSESSMENT EXERCISES HERE]

Relevant self-assessment exercises: [LIST SELF-ASSESSMENT EXERCISES HERE] Chapter 6 Finite Volume Methods In the previous chapter we have discussed finite difference methods for the discretization of PDEs. In developing finite difference methods we started from the differential

More information

Coupling conditions for transport problems on networks governed by conservation laws

Coupling conditions for transport problems on networks governed by conservation laws Coupling conditions for transport problems on networks governed by conservation laws Michael Herty IPAM, LA, April 2009 (RWTH 2009) Transport Eq s on Networks 1 / 41 Outline of the Talk Scope: Boundary

More information

AMath 574 February 11, 2011

AMath 574 February 11, 2011 AMath 574 February 11, 2011 Today: Entropy conditions and functions Lax-Wendroff theorem Wednesday February 23: Nonlinear systems Reading: Chapter 13 R.J. LeVeque, University of Washington AMath 574, February

More information

Various lecture notes for

Various lecture notes for Various lecture notes for 18311. R. R. Rosales (MIT, Math. Dept., 2-337) April 12, 2013 Abstract Notes, both complete and/or incomplete, for MIT s 18.311 (Principles of Applied Mathematics). These notes

More information

Hyperbolic Conservation Laws Past and Future

Hyperbolic Conservation Laws Past and Future Hyperbolic Conservation Laws Past and Future Barbara Lee Keyfitz Fields Institute and University of Houston bkeyfitz@fields.utoronto.ca Research supported by the US Department of Energy, National Science

More information

PDEs, part 3: Hyperbolic PDEs

PDEs, part 3: Hyperbolic PDEs PDEs, part 3: Hyperbolic PDEs Anna-Karin Tornberg Mathematical Models, Analysis and Simulation Fall semester, 2011 Hyperbolic equations (Sections 6.4 and 6.5 of Strang). Consider the model problem (the

More information

Math Partial Differential Equations 1

Math Partial Differential Equations 1 Math 9 - Partial Differential Equations Homework 5 and Answers. The one-dimensional shallow water equations are h t + (hv) x, v t + ( v + h) x, or equivalently for classical solutions, h t + (hv) x, (hv)

More information

Waves in a Shock Tube

Waves in a Shock Tube Waves in a Shock Tube Ivan Christov c February 5, 005 Abstract. This paper discusses linear-wave solutions and simple-wave solutions to the Navier Stokes equations for an inviscid and compressible fluid

More information

Finite volume method for conservation laws V

Finite volume method for conservation laws V Finite volume method for conservation laws V Schemes satisfying entropy condition Praveen. C praveen@math.tifrbng.res.in Tata Institute of Fundamental Research Center for Applicable Mathematics Bangalore

More information

Numerical schemes for short wave long wave interaction equations

Numerical schemes for short wave long wave interaction equations Numerical schemes for short wave long wave interaction equations Paulo Amorim Mário Figueira CMAF - Université de Lisbonne LJLL - Séminaire Fluides Compréssibles, 29 novembre 21 Paulo Amorim (CMAF - U.

More information

A Very Brief Introduction to Conservation Laws

A Very Brief Introduction to Conservation Laws A Very Brief Introduction to Wen Shen Department of Mathematics, Penn State University Summer REU Tutorial, May 2013 Summer REU Tutorial, May 2013 1 / The derivation of conservation laws A conservation

More information

On a class of numerical schemes. for compressible flows

On a class of numerical schemes. for compressible flows On a class of numerical schemes for compressible flows R. Herbin, with T. Gallouët, J.-C. Latché L. Gastaldo, D. Grapsas, W. Kheriji, T.T. N Guyen, N. Therme, C. Zaza. Aix-Marseille Université I.R.S.N.

More information

13 PDEs on spatially bounded domains: initial boundary value problems (IBVPs)

13 PDEs on spatially bounded domains: initial boundary value problems (IBVPs) 13 PDEs on spatially bounded domains: initial boundary value problems (IBVPs) A prototypical problem we will discuss in detail is the 1D diffusion equation u t = Du xx < x < l, t > finite-length rod u(x,

More information

WELL-BALANCED SCHEMES TO CAPTURE NON-EXPLICIT STEADY STATES. PART 1: RIPA MODEL

WELL-BALANCED SCHEMES TO CAPTURE NON-EXPLICIT STEADY STATES. PART 1: RIPA MODEL WELL-BALANCED SCHEMES TO CAPTURE NON-EXPLICIT STEADY STATES. PART 1: RIPA MODEL VIVIEN DESVEAUX, MARKUS ZENK, CHRISTOPHE BERTHON, AND CHRISTIAN KLINGENBERG Abstract. The present paper concerns the derivation

More information

Dedicated to the 70th birthday of Professor Lin Qun

Dedicated to the 70th birthday of Professor Lin Qun Journal of Computational Mathematics, Vol.4, No.3, 6, 39 5. ANTI-DIFFUSIVE FINITE DIFFERENCE WENO METHODS FOR SHALLOW WATER WITH TRANSPORT OF POLLUTANT ) Zhengfu Xu (Department of Mathematics, Pennsylvania

More information

ENO and WENO schemes. Further topics and time Integration

ENO and WENO schemes. Further topics and time Integration ENO and WENO schemes. Further topics and time Integration Tefa Kaisara CASA Seminar 29 November, 2006 Outline 1 Short review ENO/WENO 2 Further topics Subcell resolution Other building blocks 3 Time Integration

More information

Differentiability with respect to initial data for a scalar conservation law

Differentiability with respect to initial data for a scalar conservation law Differentiability with respect to initial data for a scalar conservation law François BOUCHUT François JAMES Abstract We linearize a scalar conservation law around an entropy initial datum. The resulting

More information

Linear Hyperbolic Systems

Linear Hyperbolic Systems Linear Hyperbolic Systems Professor Dr E F Toro Laboratory of Applied Mathematics University of Trento, Italy eleuterio.toro@unitn.it http://www.ing.unitn.it/toro October 8, 2014 1 / 56 We study some basic

More information

Block-Structured Adaptive Mesh Refinement

Block-Structured Adaptive Mesh Refinement Block-Structured Adaptive Mesh Refinement Lecture 2 Incompressible Navier-Stokes Equations Fractional Step Scheme 1-D AMR for classical PDE s hyperbolic elliptic parabolic Accuracy considerations Bell

More information

2D compressible vortex sheets. Paolo Secchi

2D compressible vortex sheets. Paolo Secchi 2D compressible vortex sheets Paolo Secchi Department of Mathematics Brescia University Joint work with J.F. Coulombel EVEQ 2008, International Summer School on Evolution Equations, Prague, Czech Republic,

More information

The Discontinuous Galerkin Method for Hyperbolic Problems

The Discontinuous Galerkin Method for Hyperbolic Problems Chapter 2 The Discontinuous Galerkin Method for Hyperbolic Problems In this chapter we shall specify the types of problems we consider, introduce most of our notation, and recall some theory on the DG

More information

The first order quasi-linear PDEs

The first order quasi-linear PDEs Chapter 2 The first order quasi-linear PDEs The first order quasi-linear PDEs have the following general form: F (x, u, Du) = 0, (2.1) where x = (x 1, x 2,, x 3 ) R n, u = u(x), Du is the gradient of u.

More information

Conservation Laws and Finite Volume Methods

Conservation Laws and Finite Volume Methods Conservation Laws and Finite Volume Methods AMath 574 Winter Quarter, 2011 Randall J. LeVeque Applied Mathematics University of Washington January 3, 2011 R.J. LeVeque, University of Washington AMath 574,

More information

Positivity-preserving high order schemes for convection dominated equations

Positivity-preserving high order schemes for convection dominated equations Positivity-preserving high order schemes for convection dominated equations Chi-Wang Shu Division of Applied Mathematics Brown University Joint work with Xiangxiong Zhang; Yinhua Xia; Yulong Xing; Cheng

More information

Advection / Hyperbolic PDEs. PHY 604: Computational Methods in Physics and Astrophysics II

Advection / Hyperbolic PDEs. PHY 604: Computational Methods in Physics and Astrophysics II Advection / Hyperbolic PDEs Notes In addition to the slides and code examples, my notes on PDEs with the finite-volume method are up online: https://github.com/open-astrophysics-bookshelf/numerical_exercises

More information

Lecture Notes on Numerical Schemes for Flow and Transport Problems

Lecture Notes on Numerical Schemes for Flow and Transport Problems Lecture Notes on Numerical Schemes for Flow and Transport Problems by Sri Redeki Pudaprasetya sr pudap@math.itb.ac.id Department of Mathematics Faculty of Mathematics and Natural Sciences Bandung Institute

More information

Lecture Notes on Numerical Schemes for Flow and Transport Problems

Lecture Notes on Numerical Schemes for Flow and Transport Problems Lecture Notes on Numerical Schemes for Flow and Transport Problems by Sri Redeki Pudaprasetya sr pudap@math.itb.ac.id Department of Mathematics Faculty of Mathematics and Natural Sciences Bandung Institute

More information

The Euler Equation of Gas-Dynamics

The Euler Equation of Gas-Dynamics The Euler Equation of Gas-Dynamics A. Mignone October 24, 217 In this lecture we study some properties of the Euler equations of gasdynamics, + (u) = ( ) u + u u + p = a p + u p + γp u = where, p and u

More information

Characteristics for IBVP. Notes: Notes: Periodic boundary conditions. Boundary conditions. Notes: In x t plane for the case u > 0: Solution:

Characteristics for IBVP. Notes: Notes: Periodic boundary conditions. Boundary conditions. Notes: In x t plane for the case u > 0: Solution: AMath 574 January 3, 20 Today: Boundary conditions Multi-dimensional Wednesday and Friday: More multi-dimensional Reading: Chapters 8, 9, 20 R.J. LeVeque, University of Washington AMath 574, January 3,

More information

Two-Dimensional Riemann Solver for Euler Equations of Gas Dynamics

Two-Dimensional Riemann Solver for Euler Equations of Gas Dynamics Journal of Computational Physics 167, 177 195 (2001) doi:10.1006/jcph.2000.6666, available online at http://www.idealibrary.com on Two-Dimensional Riemann Solver for Euler Equations of Gas Dynamics M.

More information

The Center for Astrophysical Thermonuclear Flashes. FLASH Hydrodynamics

The Center for Astrophysical Thermonuclear Flashes. FLASH Hydrodynamics The Center for Astrophysical Thermonuclear Flashes FLASH Hydrodynamics Jonathan Dursi (CITA), Alan Calder (FLASH) B. Fryxell, T. Linde, A. Mignone, G. Wiers Many others! Mar 23, 2005 An Advanced Simulation

More information

Comparison of Approximate Riemann Solvers

Comparison of Approximate Riemann Solvers Comparison of Approximate Riemann Solvers Charlotte Kong May 0 Department of Mathematics University of Reading Supervisor: Dr P Sweby A dissertation submitted in partial fulfilment of the requirement for

More information

Introduction to Partial Differential Equations

Introduction to Partial Differential Equations Introduction to Partial Differential Equations Partial differential equations arise in a number of physical problems, such as fluid flow, heat transfer, solid mechanics and biological processes. These

More information

A New Fourth-Order Non-Oscillatory Central Scheme For Hyperbolic Conservation Laws

A New Fourth-Order Non-Oscillatory Central Scheme For Hyperbolic Conservation Laws A New Fourth-Order Non-Oscillatory Central Scheme For Hyperbolic Conservation Laws A. A. I. Peer a,, A. Gopaul a, M. Z. Dauhoo a, M. Bhuruth a, a Department of Mathematics, University of Mauritius, Reduit,

More information

Numerical Analysis of Differential Equations Numerical Solution of Parabolic Equations

Numerical Analysis of Differential Equations Numerical Solution of Parabolic Equations Numerical Analysis of Differential Equations 215 6 Numerical Solution of Parabolic Equations 6 Numerical Solution of Parabolic Equations TU Bergakademie Freiberg, SS 2012 Numerical Analysis of Differential

More information

Solutions in the sense of distributions. Solutions in the sense of distributions Definition, non uniqueness

Solutions in the sense of distributions. Solutions in the sense of distributions Definition, non uniqueness Solutions in the sense of distributions Definition, non uniqueness 1. Notion of distributions In order to build weak solutions to the Hopf equation, we need to define derivatives of non smooth functions,

More information

CHAPTER 7 SEVERAL FORMS OF THE EQUATIONS OF MOTION

CHAPTER 7 SEVERAL FORMS OF THE EQUATIONS OF MOTION CHAPTER 7 SEVERAL FORMS OF THE EQUATIONS OF MOTION 7.1 THE NAVIER-STOKES EQUATIONS Under the assumption of a Newtonian stress-rate-of-strain constitutive equation and a linear, thermally conductive medium,

More information

Non-linear Scalar Equations

Non-linear Scalar Equations Non-linear Scalar Equations Professor Dr. E F Toro Laboratory of Applied Mathematics University of Trento, Italy eleuterio.toro@unitn.it http://www.ing.unitn.it/toro August 24, 2014 1 / 44 Overview Here

More information

Anti-diffusive finite difference WENO methods for shallow water with. transport of pollutant

Anti-diffusive finite difference WENO methods for shallow water with. transport of pollutant Anti-diffusive finite difference WENO methods for shallow water with transport of pollutant Zhengfu Xu 1 and Chi-Wang Shu 2 Dedicated to Professor Qun Lin on the occasion of his 70th birthday Abstract

More information

PDEs, part 1: Introduction and elliptic PDEs

PDEs, part 1: Introduction and elliptic PDEs PDEs, part 1: Introduction and elliptic PDEs Anna-Karin Tornberg Mathematical Models, Analysis and Simulation Fall semester, 2013 Partial di erential equations The solution depends on several variables,

More information

Numerical Methods for Differential Equations Mathematical and Computational Tools

Numerical Methods for Differential Equations Mathematical and Computational Tools Numerical Methods for Differential Equations Mathematical and Computational Tools Gustaf Söderlind Numerical Analysis, Lund University Contents V4.16 Part 1. Vector norms, matrix norms and logarithmic

More information

Chp 4: Non-linear Conservation Laws; the Scalar Case. By Prof. Dinshaw S. Balsara

Chp 4: Non-linear Conservation Laws; the Scalar Case. By Prof. Dinshaw S. Balsara Chp 4: Non-linear Conservation Laws; the Scalar Case By Prof. Dinshaw S. Balsara 1 4.1) Introduction We have seen that monotonicity preserving reconstruction and iemann solvers are essential building blocks

More information

Finite difference method for elliptic problems: I

Finite difference method for elliptic problems: I Finite difference method for elliptic problems: I Praveen. C praveen@math.tifrbng.res.in Tata Institute of Fundamental Research Center for Applicable Mathematics Bangalore 560065 http://math.tifrbng.res.in/~praveen

More information

On universality of critical behaviour in Hamiltonian PDEs

On universality of critical behaviour in Hamiltonian PDEs Riemann - Hilbert Problems, Integrability and Asymptotics Trieste, September 23, 2005 On universality of critical behaviour in Hamiltonian PDEs Boris DUBROVIN SISSA (Trieste) 1 Main subject: Hamiltonian

More information

Computational Fluid Dynamics. PHY 688: Numerical Methods for (Astro)Physics

Computational Fluid Dynamics. PHY 688: Numerical Methods for (Astro)Physics Computational Fluid Dynamics Hydrodynamics When we discussed PDEs, we focused so far on scalar PDEs Often we wish to study systems of PDEs. Here we'll look at the equations of hydrodynamics Nonlinear system

More information

Projection Dynamics in Godunov-Type Schemes

Projection Dynamics in Godunov-Type Schemes JOURNAL OF COMPUTATIONAL PHYSICS 142, 412 427 (1998) ARTICLE NO. CP985923 Projection Dynamics in Godunov-Type Schemes Kun Xu and Jishan Hu Department of Mathematics, Hong Kong University of Science and

More information

The Riemann problem. The Riemann problem Rarefaction waves and shock waves

The Riemann problem. The Riemann problem Rarefaction waves and shock waves The Riemann problem Rarefaction waves and shock waves 1. An illuminating example A Heaviside function as initial datum Solving the Riemann problem for the Hopf equation consists in describing the solutions

More information

Sung-Ik Sohn and Jun Yong Shin

Sung-Ik Sohn and Jun Yong Shin Commun. Korean Math. Soc. 17 (2002), No. 1, pp. 103 120 A SECOND ORDER UPWIND METHOD FOR LINEAR HYPERBOLIC SYSTEMS Sung-Ik Sohn and Jun Yong Shin Abstract. A second order upwind method for linear hyperbolic

More information

Friedrich symmetric systems

Friedrich symmetric systems viii CHAPTER 8 Friedrich symmetric systems In this chapter, we describe a theory due to Friedrich [13] for positive symmetric systems, which gives the existence and uniqueness of weak solutions of boundary

More information

Variational formulation of entropy solutions for nonlinear conservation laws

Variational formulation of entropy solutions for nonlinear conservation laws Variational formulation of entropy solutions for nonlinear conservation laws Eitan Tadmor 1 Center for Scientific Computation and Mathematical Modeling CSCAMM) Department of Mathematics, Institute for

More information

AA214B: NUMERICAL METHODS FOR COMPRESSIBLE FLOWS

AA214B: NUMERICAL METHODS FOR COMPRESSIBLE FLOWS AA214B: NUMERICAL METHODS FOR COMPRESSIBLE FLOWS 1 / 29 AA214B: NUMERICAL METHODS FOR COMPRESSIBLE FLOWS Hierarchy of Mathematical Models 1 / 29 AA214B: NUMERICAL METHODS FOR COMPRESSIBLE FLOWS 2 / 29

More information

All-regime Lagrangian-Remap numerical schemes for the gas dynamics equations. Applications to the large friction and low Mach coefficients

All-regime Lagrangian-Remap numerical schemes for the gas dynamics equations. Applications to the large friction and low Mach coefficients All-regime Lagrangian-Remap numerical schemes for the gas dynamics equations. Applications to the large friction and low Mach coefficients Christophe Chalons LMV, Université de Versailles Saint-Quentin-en-Yvelines

More information

Affordable, entropy-consistent, Euler flux functions

Affordable, entropy-consistent, Euler flux functions Affordable, entropy-consistent, Euler flux functions (with application to the carbuncle phenomenon) Phil Roe Aerospace Engineering University 0f Michigan Ann Arbor Presented at HYP 2006 1 Entropy pairs

More information

Zonal modelling approach in aerodynamic simulation

Zonal modelling approach in aerodynamic simulation Zonal modelling approach in aerodynamic simulation and Carlos Castro Barcelona Supercomputing Center Technical University of Madrid Outline 1 2 State of the art Proposed strategy 3 Consistency Stability

More information

Alexei F. Cheviakov. University of Saskatchewan, Saskatoon, Canada. INPL seminar June 09, 2011

Alexei F. Cheviakov. University of Saskatchewan, Saskatoon, Canada. INPL seminar June 09, 2011 Direct Method of Construction of Conservation Laws for Nonlinear Differential Equations, its Relation with Noether s Theorem, Applications, and Symbolic Software Alexei F. Cheviakov University of Saskatchewan,

More information

Finite volume method on unstructured grids

Finite volume method on unstructured grids Finite volume method on unstructured grids Praveen. C praveen@math.tifrbng.res.in Tata Institute of Fundamental Research Center for Applicable Mathematics Bangalore 560065 http://math.tifrbng.res.in/~praveen

More information

Conservation Laws and Finite Volume Methods

Conservation Laws and Finite Volume Methods Conservation Laws and Finite Volume Methods AMath 574 Winter Quarter, 2017 Randall J. LeVeque Applied Mathematics University of Washington January 4, 2017 http://faculty.washington.edu/rjl/classes/am574w2017

More information

Relaxation approximation of the Euler equations

Relaxation approximation of the Euler equations Relaxation approximation of the Euler equations Christophe Chalons, Jean-François Coulombel Laboratoire Jacques-Louis Lions and Université Paris 7 Boîte courrier 87, 2 place Jussieu, 75252 PARIS CEDEX

More information

Modeling of two-phase flow > Direct steam generation in solar thermal power plants

Modeling of two-phase flow > Direct steam generation in solar thermal power plants Modeling of two-phase flow > Direct steam generation in solar thermal power plants Pascal Richter RWTH Aachen University EGRIN Pirirac-sur-Mer June 3, 2015 Novatec Solar GmbH Direct steam generation Solar

More information

Well-balanced central finite volume methods for the Ripa system

Well-balanced central finite volume methods for the Ripa system Well-balanced central finite volume methods for the Ripa system R. Touma a C. Klingenberg b a Lebanese American University, Beirut, Lebanon b Würzburg University, Würzburg, Germany This paper is dedicated

More information

Simple waves and a characteristic decomposition of the two dimensional compressible Euler equations

Simple waves and a characteristic decomposition of the two dimensional compressible Euler equations Simple waves and a characteristic decomposition of the two dimensional compressible Euler equations Jiequan Li 1 Department of Mathematics, Capital Normal University, Beijing, 100037 Tong Zhang Institute

More information

7 Hyperbolic Differential Equations

7 Hyperbolic Differential Equations Numerical Analysis of Differential Equations 243 7 Hyperbolic Differential Equations While parabolic equations model diffusion processes, hyperbolic equations model wave propagation and transport phenomena.

More information

What is a flux? The Things We Does Know

What is a flux? The Things We Does Know What is a flux? Finite Volume methods (and others) (are based on ensuring conservation by computing the flux through the surfaces of a polyhedral box. Either the normal component of the flux is evaluated

More information