• Nie Znaleziono Wyników

An unconditionally stable pressure correction scheme for barotropic compressible Navier-Stokes equations

N/A
N/A
Protected

Academic year: 2021

Share "An unconditionally stable pressure correction scheme for barotropic compressible Navier-Stokes equations"

Copied!
17
0
0

Pełen tekst

(1)

c

TU Delft, The Netherlands, 2006

AN UNCONDITIONALLY STABLE PRESSURE

CORRECTION SCHEME FOR BAROTROPIC

COMPRESSIBLE NAVIER-STOKES EQUATIONS

L. Gastaldo∗, F. Babik†, R. Herbin†† and J.-C. Latch´e†††

Institut de Radioprotection et de Sˆuret´e Nucl´eaire (IRSN), & Laboratoire d’Analyse, Topologie et Probabilit´es (LATP),

e-mail: laura.gastaldo@irsn.fr

Institut de Radioprotection et de Sˆuret´e Nucl´eaire (IRSN), e-mail: fabrice.babik@irsn.fr

†† Laboratoire d’Analyse, Topologie et Probabilit´es (LATP), e-mail: herbin@cmi.univ-mrs.fr

web page: http://cmi.univ-mrs.fr/∼herbin

†††Institut de Radioprotection et de Sˆuret´e Nucl´eaire (IRSN), e-mail: jean-claude.latche@irsn.fr

Key words: Compressible Navier-Stokes equations, pressure correction schemes

Abstract. We present in this paper a pressure correction scheme for barotropic com-pressible Navier-Stokes equations, which enjoys an unconditional stability property, in the sense that the energy and maximum-principle-based a priori estimates of the continuous problem also hold for the discrete solution. The stability proof is based on two independent results for general finite volume discretizations, both interesting for their own sake: the L2-stability of the discrete advection operator provided it is consistant, in somme sense,

with the mass balance and the estimate of the pressure work by means of the time derivative of the elastic potential. The proposed scheme is built in order to match these theoretical results, and combines a fractional-step time discretization of pressure-correction type to a space discretization associating low order non-conforming mixed finite elements and finite volumes. Numerical tests with a manufactured smooth solution show the convergence of the scheme.

1 INTRODUCTION

(2)

consequently, the chemical reactions between chemical species in the flow. They are also of wide concern in the framework of nuclear safety studies, either for the modelling of boiling of water in the primary coolant circuit in case of an accidental depressurization or for the simulation of the late phases of a core-melt accident, when the flow of molten core and vessel structures comes to chemically interact with the concrete of the containment floor. This is the context of the present work.

Within the rather large panel of models dealing with such flows, the simplest is the so-called drift-flux model, which consists in solving balance equations for an equivalent continuum representing both the gaseous and the liquid phase. For isothermal flows, such a model consists in a system of three balance equations, namely the overall mass, the gas mass and the momentum balance, which reads:

∂ ρ ∂t +∇ · (ρ u) = 0 (1) ∂ ρ Y ∂t +∇ · (ρ Y u) = −∇ · (ρ (1 − Y ) Y ur) +∇ · D∇Y (2) ∂ ∂t(ρ u) +∇ · (ρ u ⊗ u) + ∇p − ∇ · τ(u) = −∇ · (ρ (1 − Y ) Y ur⊗ ur) + f (3) where t stands for the time, ρ, u and p are the (average) density, velocity and pressure in the flow and Y stands for the gas mass fraction. The diffusion coefficient D represents in most applications small scale perturbations of the flow due to the presence of the dispersed phase, sometimes called ”diphasic turbulence”, and ur is the relative velocity between the

liquid and the gas phase (the so-called drift velocity), for which a phenomenologic relation must be supplied. The tensor τ (u) stands for the viscous forces; the forcing term f may represent, for instance, the gravity forces.

This system must be complemented by an equation of state, which takes the general form:

ρ = (1− αg)ρl+ αg%g(p) (4)

where αg stands for the void fraction and %g(p) expresses the gas density as a function

of the pressure; in the perfect gas approximation and for an isothermal flow, %g(p) is

simply proportional to the pressure. If the fluid density ρl is supposed not to depend on

(3)

Navier-Stokes equations, a sub-problem of (1-3) obtained by setting the gas mass fraction to one: ∂ ρ ∂t +∇ · (ρ u) = 0 (5) ∂ ∂t(ρ u) +∇ · (ρ u ⊗ u) + ∇p − ∇ · τ(u) = f (6) ρ = %(p) (7)

This system of equation must be supplemented by boundary conditions and by an initial condition for ρ and u. Our objective is here to design a numerical method for the solution of this system working in both compressible and incompressible regimes; following the work of many researchers and, in particular, Wesseling and co-workers [16, 2], we use as a starting point a scheme that is classical in the incompressible framework, namely a pressure correction scheme based on an inf-sup stable spatial discretization for the velocity and the pressure. With respect to this latter topic, we follow a slightly different line, as we use a low order mixed finite element approximation. In addition, we pay special attention to stability issues.

To be more specific, let us recall the a priori estimates associated to problem (5-7) in the homogeneous case, i.e. estimates which should be satisfied by any possible regular solution [12, 6, 14]: ρ(x, t) > 0, ∀x ∈ Ω, ∀t ∈ [0, T ] (8) Z Ω ρ(x, t) dx = Z Ω ρ(x, 0) dx, ∀t ∈ [0, T ] (9) 1 2 d dt Z Ω ρ(x, t)u(x, t)2dx + d dt Z Ω ρ(x, t) P (ρ(x, t))dx + Z Ω τ (u(x, t)) :∇u(x, t)dx = 0, ∀t ∈ [0, T ] (10) where Ω stands for the bounded computational domain, T for the finite duration of the transient regime under consideration and P , the ”elastic potential”, is an increasing function derived from the equation of state, the definition of which will be recalled further. For these estimates to hold, the first condition (8) must be satisfied by the initial condition; note that a non-zero forcing term f in the momentum balance would make an additional term appear at the right hand side of relation (10).

(4)

solution. Throughout this paper, we also discuss a perhaps more natural scheme, resulting from simplifications of the first one, giving up the theoretical assumptions required for the proof of the scheme’s stability for the benefit of potential computational cost. This latter scheme is very similar in the principle to the numerical method introduced by Wesseling and co-workers [16, 2], although it relies on different spatial discretizations.

2 TWO PRESSURE CORRECTION SCHEMES

The objective of this section is to present the two numerical schemes considered in this paper. We begin by a description in the time semi-discrete stetting, then the spatial approximation is presented.

2.1 Time semi-discrete formulation

The first scheme considered in this paper reads: 1 – Solve for ˜ρn+1 : ρ˜ n+1− ρn δt +∇ · (˜ρ n+1un) = 0 (11) 2 – Solve for ˜pn+1 : − ∇ ·  1 ˜ ρn+1∇˜p n+1  =−∇ · 1 p ˜ρn+1√ρ˜n∇p n ! (12) 3 – Solve for ˜un+1 : ˜ ρn+1u˜n+1− ρnun δt +∇ · (˜ρ n+1un ⊗ ˜un+1) +∇˜pn+1− ∇ · τ(˜un+1) = fn+1 (13) 4 – Solve for ¯un+1, pn+1, ρn+1 : ˜ ρn+1 u¯n+1− ˜un+1 δt +∇(p n+1− ˜pn+1) = 0 %(pn+1)− ρn δt +∇ · %(p n+1) ¯un+1 = 0 ρn+1 = %(pn+1) (14)

5 – Compute un+1 given by: pρn+1un+1=p ˜ρn+1u¯n+1 (15)

(5)

Likewise, the second step is a renormalization of the pressure the interest of which is clarified only by the stability analysis. A similar technique has already been introduced by Guermond and Quartapelle for variable density incompressible flows [10].

Step 3 consists in a classical semi-implicit solve of the momentum equation to obtain a predicted velocity.

Step 4 is a nonlinear pressure correction step, which degenerates in the usual projection step as used in incompressible flows solvers when the density is constant (e.g. [11]). Taking the divergence of the first relation of (14) and using the second one to eliminate the unknown velocity ¯un+1 yields a non-linear elliptic problem for the pressure. This

computation is formal in the semi-discrete formulation, but, of course, is necessarily made clear at the algebraic level, as described in section 4.1. Once the pressure is computed, the first relation yields the updated velocity and the third one gives the end-of-step density.

Searching directly for un+1 in the pressure correction step, by solving the following

system: %(pn+1) un+1− ˜ρn+1u˜n+1 δt +∇(p n+1− ˜pn+1) = 0 %(pn+1)− ρn δt +∇ · %(p n+1) un+1 = 0 (16)

seems appealing, for two reasons. First, it suppresses the last step of the algorithm, and hence seems to yield some simplification which, however, remains essentially conceptual, as the CPU cost of this step is low. Second, as the same term %(pn+1) un+1 appears

in both equations, the resulting elliptic problem for the pressure seems simpler at first glance. Unfortunately, this simplification is effective at the algebraic level only if one gives up the upwinding of the discretization of the mass balance, which warrants in (14) the positivity of the density (see remark in section 3.3). Finally, with the formulation (16), we are unable to prove the stability of the scheme. However, leaving these aspects aside, the following simplified scheme may appear rather more natural:

1 – Solve for ˜ρn+1 : ρ˜ n+1− ρn δt +∇ · (˜ρ n+1un) = 0 (17) 2 – Solve for ˜un+1 : ˜ ρn+1u˜n+1− ρnun δt +∇ · (˜ρ n+1un ⊗ ˜un+1) +∇pn− ∇ · τ(˜un+1) = fn+1 (18) 3 – Solve for un+1, pn+1, ρn+1 : %(pn+1) un+1− ˜ρn+1u˜n+1 δt +∇(p n+1− pn) = 0 %(pn+1)− ρn δt +∇ · %(p n+1) un+1= 0 ρn+1 = %(pn+1) (19)

(6)

2.2 Spatial discretization

The spatial discretization relies on the so-called ”rotated bilinear element”/P0 intro-duced by Rannacher and Turek [13]. This finite element is based on a quadrilateral or hexaedral mesh of the computational domain. The pressure is piecewise constant over each element. The approximation space is the same for each component of the veloc-ity. In two, respectively three dimensions, it is spanned on the reference element by the set of functions {1, x, y, x2 − y2}, respectively {1, x, y, z, x2 − y2, x2 − z2}; the mapping

to a generic element is performed by the standard Q1 mapping. Only the continuity of the integral over each edge of the mesh is imposed, so the velocities are discontinuous through each edge; the discretization is thus non-conforming in H1(Ω). The four linear

forms defining the degrees of freedom for each element are the integral over each edge. Each velocity degree of freedom can then be univoquely associated to an element edge; we will take benefit of this correspondence by using hereafter, somewhat improperly, the expression ”velocity on the edge σ” to name the velocity vector defined by the degrees of freedom of the velocity components associated to σ. This pair of approximation spaces for the velocity and the pressure is inf-sup stable; this point, combined to the fact that a classical projection scheme is recovered in the constant density limit, allows to hope a Mach-uniform convergence behaviour for the scheme.

We first begin by the description of the discretization of the momentum balance equa-tion. Standard finite element techniques are used to discretize the terms ∇˜pn+1− ∇ ·

τ (˜un+1).

For the unsteady term and the right hand side, the mass lumping technique is employed. At this point, it is important to note that the integral over an element K of the basis function associated to the edge σ is exactly the measure of the half-diamond associated to σ in K (see figure 1). As the pressure, the density is approximated by piecewise constant functions over each element. The application of the mass lumping to the term ρnun

thus leads, in the equations associated to the velocity on σ, to an expression of the form ρn

σunσ, where ρnσ results from an average of the values taken by the density in the two

elements adjacent to σ, weighted by the measure of the half-diamonds. To complete the discretization of the unsteady term, we have to build an approximation of ˜ρn+1. This

is performed by solving the mass balance equation (step 1 of the algorithm) by a finite volume technique, taking the diamonds as control volumes. The degrees of freedom for

˜

ρn+1are then the density on the edge, that is directly what is needed for the approximation

of ˜ρn+1u˜n+1. The discrete analogue for ρn in this equation is the integral of the unknown

ρn over each diamond, i.e. exactly the quantity ρn

σ introduced above. The velocity on the

diamonds edges is evaluated by the standard finite element interpolation formula.

Finally, the convection term in the momentum balance equation is discretized by the same finite volume approximation. This choice is crucial for the stability of the scheme (see section 3.3).

(7)

control volume K control volume L edge σ = K|L diamond Dσ 

Figure 1: Dual finite volume mesh: the so-called ”diamond cells”.

is consistent with the momentum balance one: mass lumping for the unsteady term and standard finite element formulation for the gradient of the pressure increment. As the pressure is piecewise constant, the transposed of the discrete gradient operator takes the form of the finite volume standard discretization of the divergence based on the primal (i.e. finite element) mesh; for the same reason, the approximation of the time derivative of the density in the mass balance will also look as a finite volume term. These points suggest a finite volume discretization of this latter equation, making use of an upwinding technique for the convection term to ensure the positivity of the density. We then obtain two algebraic relations; they are combined to build a discrete elliptic problem for the pressure (see section 4.1).

An extension of the present scheme to simplicial control volumes based on the so-called Crouzeix-Raviart element seems to be straightforward. Let us note that, for this last type of elements, a combined finite volume/finite element method, similar to the technique employed here for the discretization of the momentum balance, has already been analysed for an unstationary non-linear convection-diffusion equation by Feistauer and co-workers [1, 4, 7].

3 MATHEMATICAL ANALYSIS

(8)

3.1 Two fundamental results

The following result is a discrete analogue to the well known identity: Z Ω  ∂ρz ∂t +∇ · (ρzu)  z dx = 1 2 d dt Z Ω ρz2dx (20)

which holds for any sufficiently regular functions ρ and z provided that: ∂ρ

∂t +∇ · (ρu) = 0 (21)

Applying this identity to each component of the velocity yields the central argument of the proof of the kinetic energy theorem.

Proposition – Let (ρn

K) and (zKn) be two finite-volume time-varying discrete variables

(see [5] for a precise definition). We suppose that (ρK) is the solution to a discrete

advection equation with an advection field a vanishing on ∂Ω, which reads: |K|ρ n+1 K − ρnK δt + X σ=K|L

|σ| ρn+1σ aσ· nσ = 0 for all control volume K (22)

where K|L stands for the edge separating the control volumes K and L. The quantity ρn+1 σ

is an approximation of (ρn+1K ) on σ, which may be upwind or centered; we nevertheless suppose that both families (ρn

K) and (ρn+1K ) are strictly positive. Then the following bound

holds: X K zKn+1  |K| ρn+1K zKn+1− ρn KzKn δt + X σ=K|L |σ| ρn+1σ zn+1σ aσ · nσ  ≥ 1 2 δt X K |K|ρn+1 K (zKn+1)2− ρnK(zKn)2  (23) where zn+1

σ may be centered or upwind; in the latter case, somme additional positive

terms appear in the right hand side of the inequality.

The control of the work of the pressure forces in compressible flows relies on the fol-lowing arguments. Let P (.) be defined from the equation of state by:

P (z) = Z z

1

%−1(s)

s2 ds (24)

The function P is referred to in the literature as the elastic potential. Then one can deduce from the mass balance that:

(9)

The following estimate is a discrete analogue of this bound.

Proposition – Let P , the elastic potential defined by (24), be such that the function z 7→ z P (z) is increasing and convex. Let (ρn

K) and pnK satisfy the second and third

equation of the pressure correction step (14), with an upwind discretization of the mass balance. We denote by uσ the value on σ of the advection field used in this latter equation.

Then the following estimate holds: X K −pn+1K X σ=K|L |σ| uσ · nσ ≥ 1 δt X K |K|ρn+1 K P (ρn+1K )− ρnKP (ρnK)  (26)

3.2 Existence of a solution to each step of the scheme

Steps 1, 2 and 3 of the algorithm are linear, and the existence and uniqueness of the solution easily follows from stability estimates: in step 1, upwinding yields ˜ρn+1> 0; step

2 is a Poisson problem, the well-posedness of which is standard (recall that ˜ρn+1 > 0); in

step 3, the stability of the linear operator follows from inequality (23).

The proof of the existence of the solution to step 4 is more intricate. It follows from a topological degree argument, linking by a homotopy the problem at hand to an incom-pressible Darcy problem regularized by an artificial compressibility term. The estimate (26), which applies for the particular discretization considered here as both the divergence operator and the mass balance equation are discretized in a finite volume way, is central to obtain the necessary a priori estimates. Note that for (26) to hold, it is only required that the function z 7→ z P (z) be increasing and convex; this is satisfied for instance for relations of the type p = %−1(ρ) = c ργ where γ ≥ 1 and c is a positive constant; hence,

we obtain the existence of a solution to the scheme even in the case of the isothermal flow of an ideal gas (γ = 1), a case for which the existence of a solution to the continuous problem is not known, neither in two nor in three dimensions [12, 6, 14].

3.3 Stability analysis

We are now in position to state the stability of the scheme (11)-(15). To this purpose, we define the following discrete norm and semi-norm:

||ρ u||2h = X σ |Dσ| ρσu2σ (27) |p|21,ρ = X σ=K|L d ρσ |σ| hσ (pK− pL)2 (28)

In the first relation, ρσ stands for the density associated to the edge σ, as u2σ stands for

the square of the Euclidian norm of the velocity on σ; definitions are precised in section 2.2, for both the densities and velocities discrete fields. In the second one, d = 2 or 3 is the physical space dimension and hσ is the Euclidian distance between the two vertices

(10)

The quantity ||ρ u||h is equivalent to the L2 norm of √ρ u. The function | · |1,ρ can be

seen as a weighted (by d/ρσ) version of the H1 semi-norm classical in the finite volume

context [5], which can be proven to be in some sense equivalent to the H1 continuous

semi-norm.

The stability of the scheme is stated in the following result.

Proposition – Let u, p and ρ be the solution to the scheme (11)-(15), whith homogeneous Dirichlet boundary conditions for the velocity and a zero forcing term. Let P be the elastic potential defined by (24). We suppose that the equation of state is such that the function z 7→ z P (z) is convex. Then the following bound holds for any valid n:

1 2 ||ρ n+1un+1||2 h + Z Ω ρn+1P (ρn+1) + δt n+1 X k=1 Z Ω,h ∇˜uk : τ (˜uk) dx + δt2 2 |p n+1|2 1,˜ρn+1 ≤ 12 ||ρ0u0||2h + Z Ω ρ0P (ρ0) + δt 2 2 |p 0 |21,˜ρ0 (29) where R Ω,h· dx stands for P K R

K· dx (usual modification to deal with non-conforming

approximation spaces).

Sketch of the proof – Multiplying each equation of the step 3 of the scheme (13) by the corresponding unknown (i.e the corresponding component of the velocity ˜un+1 on the

corresponding edge σ) and summing over the edges and the components yield, by virtue of the stability of the discrete advection operator:

1 2δt||˜ρ n+1u˜n+1||2 h − 1 2δt||ρ nun||2 h + Z Ω ˜ un+1: τ (˜un+1) dx− Z Ω,h ˜ pn+1∇ · ˜un+1dx≤ 0 (30)

On the other hand, the first equation of the pressure-correction step (14) reads, in an algebraic setting:

1

δtMρ˜n+1(¯u

n+1− ˜un+1) + Bt(pn+1− ˜pn+1) = 0 (31)

where Mρ˜n+1 is the weighted by ˜ρn+1 lumped mass matrix and Bt is the discrete gradient

operator. Reordering and multiplying by M−1/2ρ˜n+1 (recall that Mρ˜n+1 is diagonal) yields:

1 δtM 1/2 ˜ ρn+1u¯ n+1+ M−1/2 ˜ ρn+1B tpn+1= 1 δtM 1/2 ˜ ρn+1u˜ n+1+ M−1/2 ˜ ρn+1B tp˜n+1 (32)

(11)

For the particular discretization used here, the following identity holds for any discrete pressure p:

(B M−1ρ˜n+1B

tp, p) =|p|2

1,˜ρn+1 (34)

The quantity −(˜un+1, Btp˜n+1) is nothing more than the opposite of the termR

Ω,hp˜n+1∇ ·

˜

un+1dx in (30), so summing (30) and (33) will make these terms disappear. Finally,

(¯un+1, Btpn+1) is precisely the pressure work which can be bounded by the time derivative

of the elastic potential, as stated above. The proof then ends by taking benefit of the renormalization steps (step 2 and 5 of the algorithm) and summing over the time steps. Remark : on the upwinding of the mass balance discretization, the inf-sup stability of the discretization and the appearance of spurious pressure wiggles.

In the scheme considered in this section, the upwinding in the discretization of mass balance controls the onset of density oscillations. As long as the pressure and the density are linked by an increasing function, that is as long as the flow remains compressible with a reasonable state law, it will be sufficient to prevent from pressure oscillations.

Besides, the fourth term of the left hand side of (29), i.e. the term involving|pn+1|2 1,˜ρn+1,

provides a control on the discrete H1 semi-norm of the pressure, at least for large time

steps, and therefore also produces an additional pressure smearing. However, it comes up in the analysis as the composition of the discrete divergence with the discrete gradient; consequently, one will obtain such a smoothing effect only for inf-sup stable discretizations. This may explain why some authors claim that the use of stable approximation space pairs is mandatory to avoid pressure wiggles [3, 9].

Considering now the pressure correction step of the second scheme (system (16)), one may be tempted by the following line of thought: choosing qn+1 = %(pn+1) un+1as variable,

taking the discrete divergence of the first equation and using the second one will cause the convection term of the mass balance to disappear from the discrete elliptic problem for the pressure, whatever the discretization of this term may be. Consequently, the equation for the pressure will be free of the non-linearities induced by the upwinding and the dependency of the convected density on the pressure, while one still may hope to obtain a positive upwind (with respect to the density) scheme. In fact, this last point is incorrect. To be valid, it would necessitate that, from any solution (qn+1, pn+1), one

be able to compute a velocity field un+1 by dividing qn+1 by the density of the control

volume located upstream with respect to un+1. Unfortunately, it is not always possible to

obtain this upstream value; for instance, if for two neighbouring control volumes K and L, ρK < 0, ρL> 0 and qn+1·nK|L > 0, neither the choice of K nor L for the upstream control

(12)

4 NUMERICAL RESULTS 4.1 Implementation

The implementation of the three first steps (11)-(13) of the numerical scheme is stan-dard, and we therefore only describe here in details the fourth step, that is the projection step.

The precise algebraic formulation of the system (14) reads: 1 δtMρ˜n+1(¯u n+1 − ˜un+1) + Bt(pn+1− ˜pn+1) = 0 1 δtR(%(p n+1)− ρn)− BQ ρn+1 up u¯ n+1= 0 (35) where Mρ˜n+1 and Qρn+1

up are two diagonal matrices; for the first one, the entry corresponding

to an edge σ = K|L is computed by multiplying the measure of the diamond associated to σ by the predicted density (at the edge center) ˜ρn+1

σ ; in the second one, the same

entry is obtained by just taking the density at tn+1 in the element located upstream

of σ with respect to ¯un+1, i.e. either % (pn+1

K ) or % (p n+1

L ). Note that these definitions

can be extended in a straightforward way for the boundary edges, if the velocity is not prescribed to zero on the boundary of the computational domain. The matrix Bt stands

for the discrete gradient and, consequently, the opposite of its transposed matrix,−B, is the discrete (finite element or finite volume) divergence. The matrix R is diagonal and its entries are the measure of the elements. For the sake of simplicity, we suppose for the moment that the equation of state is linear:

%(pn+1) = ∂% ∂p p

n+1 (36)

The elliptic problem for the pressure is obtained by multiplying the first relation of (35) by B Qρn+1

up (Mρ˜

n+1)−1 and using the second one. This equation reads:

L pn+1+ ∂% ∂p 1 δt2R p n+1 = L ˜pn+1+ 1 δt2Rρ n+ 1 δtB Qρnup+1u˜ n+1 (37) where L = B Qρn+1 up (Mρ˜

n+1)−1Bt can be viewed, for the discretization at hand, as a

fi-nite volume discrete approximation of the Laplacian with Neumann boundary conditions (when the velocity is prescribed at the boundary), multiplied by the space dimension d and the densities ratio. This matrix can be evaluated directly in the ”finite volume way”, by the following relation, valid for each element K:

(L pn+1)K = X L∈N (K), σ=K|L d ρup,σ ˜ ρn+1 σ |σ| hσ (pK − pL) (38)

whereN (K) is the set of elements sharing an edge with K and ρup,σ stands for the upwind

(13)

Provided that pn+1 is known, the first relation of (35) give us the updated value of the velocity: ¯ un+1 = ˜un+1− δt (M ˜ ρn+1)−1Bt(pn+1− ˜pn+1) (39)

As, to preserve the positivity of the density, we want to use in the mass balance the value of the density upwinded with respect to ¯un+1, equations (37) and (39) are not decoupled,

by contrast with what happens in usual projection methods. We thus implement the following iterative algorithm:

Initialization: pn+1 0 = ˜pn+1 and ¯un+10 = ˜un+1 (40)

Step 4.1: solve for pn+1k+1/2 :  L + ∂% ∂p 1 δt2R  pn+1k+1/2 = L˜pn+1+ 1 δt2Rρ n+ 1 δtB Qρnup+1u˜ n+1

where the density in L and Qρn+1

up is evaluated at p

n+1

k and the upwinding

in Qρn+1

up is performed with respect to ¯u

n+1 k Step 4.2: compute pn+1k+1 as pn+1k+1 = α pn+1k+1/2+ (1− α) pn+1k Step 4.3: compute ¯un+1k+1 as : ¯ un+1k+1 = ˜un+1− δt (Mρ˜n+1)−1Bt(pn+1 k+1− ˜p n+1)

Convergence criteria: max ||pn+1

k+1− pn+1k ||L2 , ||un+1k+1 − un+1k ||L2 < ε

The second step of the previous algorithm is a relaxation step which can be performed to ensure convergence; however, in the tests presented here, we use α = 1 and obtain convergence in few iterations (typically less than 5).

When the equation of state is nonlinear, step 4.1 is replaced by one iteration of Newton’s algorithm.

4.2 Numerical experiments

(14)

1.e-4 1.e-3 1.e-2

Time step

1.e-3 1.e-2 1.e-1

Error norm Mesh 20x20

Mesh 40x40 Mesh 80x80

Figure 2: velocity error as a function of the time step for the five-steps scheme.

We consider the case Ω = (0, 1)× (−1 2,

1

2), and choose for the momentum and density the following expressions:

ρ u =−1 4cos(πt)  sin(πx(1)) cos(πx(2))  (41) ρ = 1 + 1 4 sin(πt) cos(πx (1)) − sin(πx(2)) (42) These functions satisfy the mass balance equation; for the momentum balance, we add the corresponding right hand side. In this latter equation, the stress tensor is given by:

∇ · τ(u) = µ∆u +µ

3∇ ∇ · u, µ = 10

−2

The pressure is linked to the density by the following equation of state: p = %(ρ) = ρ− 1

γ Ma2, γ = 1.4, Ma = 0.5 (43)

The parameter Ma corresponds to the characteristic Mach number.

(15)

1.e-4 1.e-3 1.e-2

Time step

1.e-3 1.e-2 1.e-1

Error norm Mesh 20x20

Mesh 40x40 Mesh 80x80

Figure 3: pressure error as a function of the time step for the five-steps schemes.

gradient is indeed a discrete gradient (i.e. if the forcing term f can be recast under the form f =∇g, the discrete right hand side of the momentum balance belongs to the range of Bt).

Velocity and pressure errors obtained at t = 0.5 with the five-steps scheme, in re-spectively L2 and discrete L2 norms and as a function of the time step, are drawn on

respectively figure 2 and figure 3, for 20× 20, 40 × 40 and 80 × 80 uniform meshes. For large time steps, these curves show a decrease corresponding to approximately a first order convergence for the velocity and the pressure, until a plateau is reached, due to the fact that errors are bounded from above by the residual spatial discretization error. For both velocity and pressure, the value of the errors on this plateau show a spatial convergence order (in L2 norm) close to 2.

For this test, the three-steps scheme gives similar results, and is even slightly more accurate.

5 CONCLUSION

We have presented in this paper a numerical scheme for the barotropic Navier-Stokes compressible equations, which enjoys an unconditional stability property: irrespectively of the time step, the discrete solution obeys the a priori estimates associated to the continuous problem, i.e. strict positivity of the density, bounds in L∞-in-time norm of

the quantityR

Ωρ u2dx and

R

Ωρ P (ρ) dx and in L2-in-time norm of the viscous dissipation

R

Ωτ (u) : u dx. This scheme is based on a pressure-correction time stepping algorithm.

(16)

with finite volumes; in the incompressible limit, one recovers a classical projection scheme based on an inf-sup stable pair of approximation spaces for the velocity and the pressure. The stability analysis is based on two fundamental results valid for general finite volume discretizations. The first one states that the discrete advection operator is L2-stable,

provided it is in some sense consistent with the mass balance; the second one is a discrete equivalent of the bound of the pressure work by the time-derivative of the elastic potential. Numerical experiments show an almost optimal convergence of the scheme. These nu-merical experiments should certainly be completed by tests against less regular solutions. This work is the first step in the development of a scheme for a drift-flux model for bubbly flows. Our hope is thus to be able to extend the present techniques to cope with the particular form taken in such problems by the state law, which depends on both the gas mass fraction and the pressure and degenerates to a constant density constraint in pure liquid zones.

REFERENCES

[1] Ph. Angot, V. Dolejˇs´ı, M. Feistauer and J. Felcman. Analysis of a Combined Barycen-tric Finite Volume- Nonconforming Finite Element Method for Nonlinear Convection-Diffusion Problems. Applications of Mathematics, 4, 263–310, (1998).

[2] H. Bijl and P. Wesseling. A Unified Method for Computing Incompressible and Com-pressible Flows in Boundary-Fitted Coordinates. Journal of Computational Physics, 141, 153–173, (1998).

[3] M.O. Bristeau, R. Glowinski, L. Dutto, J. P´eriaux and G. Rog´e. Compressible Viscous Flow Calculations Using Compatible Finite Element Approximations. International Journal for Numerical Methods in Fluids, 11, 719–749, (1990).

[4] V. Dolejˇs´ı, M. Feistauer, J. Felcman and A. Klikov´a. Error Estimates for Barycentric Finite Volumes Combined with Nonconforming Finite Elements Applied to Nonlinear Convection-Diffusion Problems. Applications of Mathematics, 47, 301–340, (2002). [5] R. Eymard, T. Gallou¨et and R. Herbin. Finite Volume Methods, Handbook of

Nu-merical Analysis, Vol. VII, North Holland, (2000).

[6] E. Feireisl. Dynamics of Viscous Compressible Flows, Oxford Lecture Series in Math-ematics and its Applications, Vol. 26, (2004).

(17)

[9] M. Fortin, H. Manouzi and A. Soulaimani. On Finite Element Approximation and Stabilization Methods for Compressible Viscous Flows. International Journal for Nu-merical Methods in Fluids, 17, 477–499, (1993).

[10] J.-L. Guermond and L. Quartapelle. A Projection FEM for Variable Density Incom-pressible Flows. Journal of Computational Physics, 165, 167–188, (2000).

[11] M. Marion and R. Temam. Navier-Stokes Equations: Theory and Approximation, Handbook of Numerical Analysis, Vol. VI, North Holland, (1998).

[12] P.-L. Lions. Mathematical Topics in Fluid Mechanics – Volume 2 – Compressible Models, Oxford Lecture Series in Mathematics and its Applications, Vol. 10, (1998). [13] R. Rannacher and S. Turek. Simple Nonconforming Quadrilateral Stokes Element.

Numerical Methods for Partial Differential Equations, 8, 97–111, (1992).

[14] A. Novotn´y and I. Straˇskraba. Introduction to the Mathematical Theory of Com-pressible Flow, Oxford Lecture Series in Mathematics and its Applications, Vol. 27, (2004).

[15] C. Wall, C.D. Pierce and P. Moin. A Semi-implicit Method for Resolution of Acoustic Waves in Low Mach Number Flows. Journal of Computational Physics, 181, 545–563, (2002).

Cytaty

Powiązane dokumenty

In the case of a direct solver, the ordering of the unknowns suggested in (29), that is, first all velocity unknowns and then all pressure unknowns appears to be very inefficient,

Pierw szym źródłem jest więc podróż, traktow ana jako eksploracja, odkryw anie, w ysiłek badawczy.. Z obaczyć ją, poznać,

W oryginale rodzajnik przy pierw szym tytule „Jüngster Tag” jest w trzecim przy­ p ad k u (jego tyczy się przyim ek aus), co jest autom atycznie wskazówką dla

The capability of the adjoint approach to handle problems with large number of design parameters has been first demonstrated for the optimization of the

Note that this additional term does not change the stencil size at the grid point (/, J) i n the compact finite difference medio- dology. Higher-order RBF-FD methods were earlier

Section 3 describes a discretization of the Navier-Stokes equations with the aid of DGFE method and a linearization of the inviscid and the viscous fluxes, which yields to a

The space-time discretization results in an implicit time discretization which requires the solution of a large system of nonlinear equations. This can be done either with a Newton

Hence, the upwind preconditioner code is about four times slower per iteration than the implicit residual smoothing code even though we use three symmetric Gauss-Seidel sweeps to