• Aucun résultat trouvé

Convergence of the mac scheme for variable density flows

N/A
N/A
Protected

Academic year: 2021

Partager "Convergence of the mac scheme for variable density flows"

Copied!
7
0
0

Texte intégral

(1)

HAL Id: hal-01483467

https://hal.archives-ouvertes.fr/hal-01483467

Submitted on 9 Mar 2017

HAL

is a multi-disciplinary open access archive for the deposit and dissemination of sci- entific research documents, whether they are pub- lished or not. The documents may come from teaching and research institutions in France or abroad, or from public or private research centers.

L’archive ouverte pluridisciplinaire

HAL, est

destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des établissements d’enseignement et de recherche français ou étrangers, des laboratoires publics ou privés.

Convergence of the mac scheme for variable density flows

Thierry Gallouët, Raphaele Herbin, Jean-Claude Latché, K Mallem

To cite this version:

Thierry Gallouët, Raphaele Herbin, Jean-Claude Latché, K Mallem. Convergence of the mac scheme

for variable density flows. Finite Volume for Complex Applications 8, Jun 2017, Lille, France. �hal-

01483467�

(2)

CONVERGENCE OF THE MAC SCHEME FOR VARIABLE DENSITY FLOWS

T. GALLOU¨ET, R. HERBIN, J.C. LATCH´E, AND K. MALLEM

Abstract. We prove in this paper the convergence of an semi-implicit MAC scheme for the time-dependent variable density Navier-Stokes equations.

1. Introduction

Let Ω be a parallelepiped ofRd, withd∈ {2,3}and T >0, and consider the following variable density Navier-Stokes equations posed on Ω×(0, T):

tρ¯+ div(¯ρu) = 0,¯ (1a)

t(¯ρu) + div(¯¯ ρu¯⊗u)¯ −∆¯u+∇p¯=f, (1b)

div ¯u= 0, (1c)

where ¯ρ, ¯uand ¯pare the density, the velocity and the pressure of the flow andf ∈L2(0, T;L2(Ω)d). This system is complemented with initial and boundary conditions ¯u|∂Ω= 0,u¯|t=0 =u0, ¯ρ|t=00, which are such thatρ0∈L(Ω), 0< ρmin< ρ0≤ρmax andu0∈L2(Ω)d. A pair (¯ρ,u) is a weak solution of problem¯ (1) if it satisfies the following properties:

– ρ¯∈ {ρ∈L(Ω×(0, T)), ρ >0 a.e.in Ω×(0, T)}.

– u¯ ∈ {u∈L(0, T;L2(Ω)d)∩L2(0, T;H01(Ω)d), div u= 0a.e.in Ω×(0, T)}. – For allϕinCc(Ω×[0, T)),

(2) −

Z T 0

Z

¯

ρ∂tϕ+ ¯ρu¯· ∇ϕdxdt= Z

ρ0(x)ϕ(x,0) dx.

– For allv in{w∈Cc(Ω×[0, T))d,divw= 0}, (3)

Z T 0

Z

−ρ¯u¯·∂tv−(¯ρu¯⊗u) :¯ ∇v+∇u¯ :∇v

dxdt= Z

ρ0u0·v(·,0) dx+ Z T

0

Z

f ·v dxdt.

The existence of such a weak solution was proven in [9]; convergence results exist for the discontinuous Galerkin approximation [8] and for a finite volume/finite element scheme [7]. Here we prove the convergence of the MAC scheme.

2. The numerical scheme

LetM be a MAC mesh (see e.g. [4] and Figure 1 for the notations). The discrete pressure and density unknowns are associated with the cells of the mesh M, and are denoted by

ρK, K ∈M and

pK, K ∈ M . The discrete velocity unknowns approximate the normal velocity to the mesh faces, and are denoted (uσ)σ∈E(i),i∈

|1, d|

, whereEis the set of the faces of the mesh, andE(i) the subset of the faces orthogonal to the i-th vector of the canonical basis of Rd. We define Eext = {σ ∈ E, σ ⊂ ∂Ω}, Eint = E\Eext, E(i)

int=Eint∩E(i)andE(i)

ext =Eext∩E(i). The regularity of the mesh is defined by:

ηM= max|σ|

|, σ∈E(i), σ ∈E(j), i, j∈

|1, d|

, i6=j ,

and we denote byhM the space step. The discrete spaceLM for the scalar unknowns (i.e. the pressure and the density) is defined as the set of piecewise constant functions over each of the grid cellsK ofM, and the

2000Mathematics Subject Classification.

1

(3)

Dσ

K

L

σ=K|L σ′′

×

×

× xσ

xσ xσ′′

ǫ2 ǫ3

σ ǫ1=σ|σ

∂Ω

dǫ3

Dǫ3

dǫ2

dǫ1

Figure 1. Notations for control volumes and dual cells.

discrete space for theith velocity component, HE(i), as the set of piecewise constant functions over each of the grid cells Dσ, σ ∈ E(i). The set of functions of LM with zero mean value is denoted byLM,0. As in the continuous case, the Dirichlet boundary conditions are (partly) incorporated into the definition of the velocity spaces:

HE(i),0=n

u∈HE(i), u(x) = 0 ∀x∈Dσ, σ∈E(i)

ext

o, for 1≤i≤d (i.e. we imposeuσ = 0 for allσ∈Eext). We then setHE,0=Qd

i=1HE(i),0.

Let 0 = t0 < t1 < · · · < tN =T be a partition of the time interval (0, T), with δt = tn+1−tn. Let {un+1σ , σ∈E(i),0≤n≤N−1, 1≤i≤d},{pn+1K , K ∈M, 0≤n≤N−1}and{ρn+1K , K ∈M,0≤n≤N−1} be the sets of discrete velocity, pressure and density unknowns. Defining the characteristic function1A of any subsetA⊂Ω by 1A(x) = 1 if x∈A and 1A(x) = 0 otherwise, the corresponding piecewise constant functions for the velocities are of the form:

ui=

N−1X

n=0

X

σ∈E(i)

int

un+1σ 1Dσ1]tn,tn+1],

andXi,E,δtdenotes the set of such piecewise constant functions on time intervals and dual cells; we then set XE,δt=Qd

i=1Xi,E,δt. The pressure and density discrete functions are defined by:

p=

NX−1

n=0

X

K∈M

pn+1K 1K1]tn,tn+1], ρ=

N−1X

n=0

X

K∈M

ρn+1K 1K1]tn,tn+1],

andYM,δt denotes the space of such piecewise constant functions. The numerical scheme reads:

Initialization: u(0)=ePEu0, ρ(0) =PMρ0. (4a)

For 0≤n≤N−1, solve for un+1∈HE,0, ρn+1∈LM andpn+1∈LM,0: ðtρn+1+ divMn+1un) = 0,

(4b)

ðt(ρu)n+1+CEn+1un)un+1−∆Eun+1+∇E pn+1=fn+1E , (4c)

divMun+1= 0, (4d)

with the interpolators and discrete operators defined as follows.

2

(4)

Grid interpolators– The Fortin interpolator is defined by PeEu = (PeE(i))i=1,...,d with PeE(i) : H01(Ω) −→

HE(i),0and

vi7−→PeE(i)vi= X

σ∈E(i)

vσ 1Dσ withvσ= 1

|σ| Z

σ

vi dγ(x), σ∈E(i).

Forq∈L2(Ω), PMq∈LM is defined byPMq(x) = 1

|K| Z

K

q dxforx∈K.

Discrete time derivative – Forρ∈YM,δt, ðtρ∈YM,δt is defined by:

ðtρ(x, t) =

N−1X

n=0

ðtρn+1(x)1]tn,tn+1](t) with ðtρn+1= X

K∈M

1

δt (ρn+1K −ρnK)1K.

Discrete divergence– Let uK,σ be defined as uK,σ=uσnK,σ·ei for any faceσ∈E(i),i= 1, . . . , d. The discrete (upwind finite volume) divergence operator divM is defined by:

divM: LM×HE,0−→LM, (ρ,u)7→divM(ρu) = X

K∈M

1

|K| X

σ∈E(K)

FK,σ 1K,

withFK,σ=|σ|ρσuK,σ forK∈M, σ=K|L∈E(K), andρσK ifuK,σ≥0,ρσL otherwise. For all K∈M, we set (divu)K = div(1×u)K.

Pressure gradient operator– The discrete pressure gradient operator is defined as the transpose of the divergence operator, so∇E: LM−→HE,0, p7→ ∇E(p) with:

(5) ∇Ep= X

σ=K|L∈E(i)

int

(ðp)σnK,σ 1Dσ, with (ðp)σ= |σ|

|Dσ|(pL−pK).

Discrete Laplace operator – The discrete diffusion operator ∆E is defined in [4] and is coercive in the sense that−R

Ev·v dx=kvk21,E,0for anyv∈HEm,0, wherek · k1,E,0 is the usual discrete H1-norm ofu (see [4]). This inner product may also be formulated as theL2-inner product of adequately chosen discrete gradients [4].

Discrete convection operator – The numerical convection fluxes and the approximations of ρ in the momentum equation are chosen so as ensure that a discrete mass balance holds on the dual cells, in order to recover a discrete kinetic energy inequality. This idea was first introduced in [3, 1] for the Crouzeix-Raviart and Rannacher-Turek scheme, in [6] for the MAC scheme and was adapted to a DDFV scheme [5]. For ǫ=σ|σ, the convection fluxR

ǫρuiu·nσ,ǫ dγ(x) is approximated byFσ,ǫuǫ, where uǫ = (uσ+uσ)/2 and Fσ,ǫ is the numerical mass flux throughǫ outwardDσ defined as follows:

- First case – The vectorei is normal to ǫ, and ǫ is included in a primal cellK. Then the mass flux throughǫ=σ|σ is given by:

Fσ,ǫ= 1

2 FK,σ nDσ·nK,σ+FK,σ nDσ·nK,σ

.

- Second case – The vectorei is tangent toǫ, andǫis the union of the halves of two primal facesτ and τ such thatσ=K|Lwithτ ∈E(K) andτ ∈E(L). Then:

Fσ,ǫ= 1

2 (FK,τ +FL,τ).

Remark 2.1. In both cases, for ǫ = σ|σ, the mass flux Fσ,ǫ may be written as Fσ,ǫ = |ǫ|ρǫǫ, with ρǫ= (ρσσ)andǫ= (ρσuσσuσ)/(ρσσ) in the first case, andρǫ= (|τ|ρτ+|ττ)/(|τ|+|τ|) andǫ= (|τ|ρτuτ+|ττuτ)/(|τ|ρτ+|ττ)in the second case.

3

(5)

With this expression of the flux, we may define a discrete divergence operator on the dual cells:

divE(i)(ρ,v) : LM×HE,0−→LE

(ρ,v)7−→divE(i)(ρ,v) = X

σ∈E(i)

int

divDσ(ρv)1Dσ, with divDσ(ρ,v) = 1

|Dσ| X

ǫ∈eE(Dσ)

Fσ,ǫ, ∀σ∈E(i)

int.

For the definition of the time-derivativeðt(ρu), an approximation of the density on the dual cellρDσ is defined as:

|DσDσ =|DK,σK+|DL,σL, σ∈Eint, σ=K|L.

With the above definitions, if (ρ,u)∈LM×XE,δtsatisfies the mass balance equation (4b), then the following mass balance on the dual cells holds:

(6) 1

δt(ρn+1Dσ −ρnDσ) + divDσn+1un) = 0.

Note that a discrete duality property also holds, in the sense that, for 1≤i≤d, (7) ∀ρ∈LM,∀v∈HE,0,∀w∈HE(i),0,

Z

divE(i)(ρ,v)w dx= Z

ρv· ∇E(i)wdx, where (ρv)E(i) and∇E(i)ware vector valued functions of components:

[(ρv)E(i)]j= X

ǫ∈Ee(i,j)

ρǫ˜vǫ1Dǫ, [(∇w)E(i)]j = X

ǫ∈eE(i,j),σ=−−→

σ|σ

uσ−uσ

dǫ 1Dǫ,

withρǫ and ˜vǫ defined in Remark 2.1 andEe(i,j)={ǫ∈eE(i);ǫ⊥e(j)}. We finally define thei-th component CE(i)(ρu) of the non linear convection operator by:

CE(i)(ρ,u) : HE(i),0−→HE(i),0

v7−→CE(i)(ρ,u)v= X

σ∈eE(i)

int

1

|Dσ| X

ǫ∈E˜(Dσ) ǫ=σ|σ

Fσ,ǫ

vσ+vσ

2 1Dσ.

and the full (i.e. for all the velocity components) discrete convection operatorCE(ρ,u), HE,0−→HE,0 by CE(ρ,u)v = (CE(1)(ρ,u)v1, . . . , CE(d)(ρu)vd)t. Let EE be the subspace of HE,0 of divergence-free functions (with respect to the discrete divergence operator). By H¨older’s inequality and [4, Lemma 3.9], there exists CηM >0 (depending only onηM) such that,∀(ρ,u,v,w)∈LM×EE×HE2,0,

|CE(ρu)v·w| ≤CηMkρkL(Ω)kukL4(Ω)dkvkL4(Ω)dkwk1,E,0

and |CE(ρu)v·w| ≤CηMkρkL(Ω)kuk1,E,0kvk1,E,0kwk1,E,0. 3. Estimates and convergence analysis

Since the velocity is divergence-free, the mass equation is a transport equation on ρ, so that, thanks to the upwind choice, the following estimate holds:

(8) ρmin≤ρn+1≤ρmax,

and theL2-norm ofρn+1 is lower than the L2-norm of the initial dataρ0, for 0≤n≤N −1. In addition, thanks to (6), any solution to the scheme (4) satisfies the following discrete kinetic energy balance, for 1≤i≤d,σ∈E(i), 0≤n≤N−1,

(9) 1 2δt

ρn+1Dσ (un+1σ )2−ρnDσ(unσ)2

+ 1

2|Dσ| X

ǫ∈E˜(Dσ) ǫ=σ|σ

Fσ,ǫn+1, un)un+1σ un+1σ

−(∆u)n+1σ un+1σ + (ðp)n+1σ un+1σ −fσn+1un+1σ =− 1

2δtρnDσ un+1σ −unσ2

.

4

(6)

From this inequality, we obtain estimates on the velocity. For u∈XE,δt satisfying (4), there existsC >0 depending onu0, ρ0 andf such that,

(10) kukL2(HE,0)=

NX−1

n=0

δtkun+1k21,E,0≤C andkukL(L2)= max

0≤n≤N−1kun+1kL2(Ω)d≤C.

These estimates yields the existence of a unique solution to the scheme: indeed, the first equation may be solved separately for ρn+1 and is linear with repect to this unknown and, once ρn+1 is known, the last two equations are a linear generalized Oseen problem for un+1 and pn+1, which is uniquely solvable thanks to theinf-supstability of the MAC discretization. The convergence of the scheme requires some time compactness. Contrary to the constant density case [4], there is no uniform estimate on the time derivative, and compactness is obtained thanks to the following lemma together with the Fr´echet-Kolmogorov theorem.

Lemma 3.1 (Estimate on the time translates of the velocity). Let u∈XE,δt andρ∈YM,δt and letτ >0 then

(11)

Z T−τ 0

Z

|u(x, t+τ)−u(x, t)|2 dx dt≤CηM,T

ρmax

ρmin

(kuk3L2(HE,0)+ 1)√ τ+δt whereCηM,T >0 only depends onΩ,T,f and on the regularity of the mesh ηM.

Proof. In the continuous case, see e.g. [2, pages 444-452], the estimate (11) is obtained by bounding the termRT−τ

0

R

(ρ(x, t)u(x, t+τ)−ρ(x, t)u(x, t))·w(x, t) dtwithw(x, t) =u(x, t+τ)−u(x, t). However, in the context of the MAC scheme, the components of u are piecewise constant on different meshes so we need to treat the space indices separately. For a giveni= 1, . . . , d, we denote byuandwthei-th component ofu andw, and byρethe piecewise constant function defined by ρ(x, t) =e ρn+1Dσ for (x, t)∈Dσ×[tntn+1).

We then wish to bound the terms A(i)=

Z T−τ 0

(A(i)1 (t) +A(i)2 (t)) dt, with A(i)1 (t) =

Z

(ρ(x, te +τ)u(x, t+τ)−ρ(x, t)u(x, t))e w(x, t) dx, A(i)2 (t) =

Z

(ρ(x, t)e −ρ(x, te +τ))u(x, t+τ)w(x, t) dx.

For lack of space, we only deal here with the termA(i)2 (t). Thanks to the mass balance on the dual cells (6) and to the discrete duality formula (7) we have:

A(i)2 (t) =

NX−1

n=1

δt1(t,t+τ)(tn) Z

divE(i)(˜ρn+1un)u(·, t+τ)w(·, t) dx

=

NX−1

n=1

δt1(t,t+τ)(tn) Z

n+1un)E(i)E(i)(u(·, t+τ)w(·, t)) dx.

Using H¨older’s inequalities and the fact that

NX−1

n=1

δt1(t,t+τ)(tn)≤τ+δt,

A(i)2 (t)≤ρmaxδtNX−1

n=1

kunkL6

12 NX−1

n=1

1(t,t+τ)(tn)12

k∇E(i)(u(t+τ)w(t))kL65

≤ |Ω|16ρmaxkukL212(L6)(δt+τ)12k∇E(i)(u(t+τ)w(t))kL32. Now, by H¨older’s inequality,

k∇E(i)(u(·, t+τ)w(·, t))kL32 ≤ k(∇E(i)u(·, t+τ))w(·, t)kL32 +ku(·, t+τ)∇E(i)(w(·, t))kL32

≤ k∇E(i)u(·, t+τ)k2L2+kw(·, t)k2L6+k∇E(i)w(·, t)k2L2+ku(·, t+τ)k2L6.

5

(7)

Therefore, integrating over (0, T −τ) yields that Z T−τ

0

A(i)2 (t) dt≤ |Ω|16ρmax[τ+δ]12kukL2(L6)[kukL2(L6)+kwkL2(HE(i),0)+kwkL2(L6)+kukL2(HE(i),0)].

Similar computations for the termRT−τ

0 A(i)1 (t) dtyield the result.

Theorem 3.2 (Convergence of the scheme). Let (δtm)m∈Nand (Mm)m∈N be a sequence of time steps and MAC grids such that δtm → 0 and hMm → 0 as m → +∞ ; assume that there exists η > 0 such that ηMm ≤η for anym∈N. Letm,um) be a solution to (4) forδt=δtmandM=Mm. Then there existsρ¯ withρmin≤ρ¯≤ρmax andu¯ ∈L2(0, T;E(Ω))such that, up to a subsequence:

- the sequence (um)m∈Nconverges toinL2(0, T;L2(Ω)d), - the sequencem)m∈N converges to ρ¯in∈L2(0, T;L2(Ω)), - (¯ρ,u)¯ is a solution to the weak formulation (2) and (3).

Sketch of proof:

– Thanks to (8), there exists a subsequence of (ρm)m∈N star-weakly converging to some ¯ρin L(Ω× (0, T)); thanks to (10) and (11), there exists a subsequence of (um)m∈N converging to some ¯u in L2(0, T; (L2(Ω)d).

– Passing to the limit in (4b) yields that (¯ρ,¯u) satisfies (2).

– The strong convergence of the approximate densities is then obtained thanks to theL2estimates for ρin both the discrete and continuous case [7, Proposition 8.7].

– Passing to the limit in (4c) yields that (¯ρ,u) satisfies (3).¯

– We finally obtain that ¯u∈L2(0, T;E(Ω)), whereE(Ω) ={v∈H01(Ω) s.t. divv = 0}, as in [4, Proof of Theorem 4.3].

References

[1] G. Ansanay-Alex, F. Babik, J.-C. Latch´e, and D. Vola. An L2-stable approximation of the Navier-Stokes convection operator for low-order non-conforming finite elements.International Journal for Numerical Methods in Fluids, 66:555–580, 2011.

[2] Franck Boyer and Pierre Fabrie.Mathematical tools for the study of the incompressible Navier-Stokes equations and related models, volume 183 ofApplied Mathematical Sciences. Springer, New York, 2013.

[3] T. Gallou¨et, L. Gastaldo, R. Herbin, and J.-C. Latch´e. An unconditionnally stable pressure correction scheme for compress- ible barotropic Navier-Stokes equations.Mathematical Modelling and Numerical Analysis, 42:303–331, 2008.

[4] Thierry Gallou¨et, Raphaele Herbin, J-C Latch´e, and K Mallem. Convergence of the MAC scheme for the incompressible Navier-Stokes equations.Found Comput Math, 2016.

[5] Thierry Goudon and Stella Krell. A DDFV scheme for incompressible Navier-Stokes equations with variable density. In Finite volumes for complex applications. VII. Elliptic, parabolic and hyperbolic problems, volume 78 of Springer Proc.

Math. Stat., pages 627–635. Springer, Cham, 2014.

[6] R. Herbin and J.-C. Latch´e. Kinetic energy control in the MAC discretization of the compressible Navier-Stokes equations.

Int. J. Finite Vol., 7(2):6, 2010.

[7] J.-C. Latch´e and K. Saleh. A convergent staggered scheme for variable density incompressible Navier-Stokes equations.

Mathematics of Computation, accepted for publication, 2016.

[8] Chun Liu and Noel J. Walkington. Convergence of numerical approximations of the incompressible Navier-Stokes equations with variable density and viscosity.SIAM J. Numer. Anal., 45(3):1287–1304 (electronic), 2007.

[9] Jacques Simon. Nonhomogeneous viscous incompressible fluids: existence of velocity, density, and pressure.SIAM J. Math.

Anal., 21(5):1093–1117, 1990.

I2M UMR 7373, Aix-Marseille Universit´e, CNRS, ´Ecole Centrale de Marseille.

E-mail address:[email protected]

I2M UMR 7373, Aix-Marseille Universit´e, CNRS, ´Ecole Centrale de Marseille.

E-mail address:[email protected]

Institut de Radioprotection et de Sˆuret´e Nucl´eaire (IRSN), Saint-Paul-lez-Durance, 13115, France.

E-mail address:[email protected] University of Skikda, Algeria.

E-mail address:[email protected]

6

Références

Documents relatifs

Section 3 is devoted to secfvslin the linear steady problem (Stokes problem), for which the finite volume scheme is given and convergence analysis and error estimates are detailed..

An essential feature of the studied scheme is that the (discrete) kinetic energy remains controlled. We show the compactness of approximate sequences of solutions thanks to a

We provide in Subsection 3.3 the proof of convergence for the implicit regularization method for general total variation functionals, and treat the linearized algorithm in

It is proved in [5] that all of them are gradient discretisation methods for which general properties of discrete spaces and operators are allowing common convergence and

Let us recall (see in particular [13] and the textbooks [3, 20]) that, roughly, from the qualitative viewpoint the classical results for the homogeneous Navier-Stokes equations

Adapting at the discrete level the arguments of the recent theory of compressible Navier-Stokes equations [17, 6, 20], we prove the existence of a solution to the discrete

We show the stability of the scheme and that the pressure and velocity converge towards a limit when the penalty parameter ε, which induces a small divergence and the time step δt

In this paper, we investigate the time decay behavior to Lions weak solution of 2D incompressible density-dependent Navier-Stokes equations with variable viscosity..