• Aucun résultat trouvé

The multi-slopes MUSCL method

N/A
N/A
Protected

Academic year: 2022

Partager "The multi-slopes MUSCL method"

Copied!
9
0
0

Texte intégral

(1)

Stéphane Clain

*

Vivien Clauzon

**

*Université Paul Sabatier clain@mip.ups-tlse.fr

**Université Blaise Pascal

vivien.clauzon@math.univ-bpclermont.fr

ABSTRACT. A new class of finite volume MUSCL-type method for unstructured mesh using the cell centered approach introduced by Buffard and Clain [3] is extended to the 3D case. Numerical tests are performed in order to compare the accuracy, numerical viscosity and efficiency of the new multi-slopes methods with the first order method and the standard gradient MUSCL method.

KEYWORDS:MUSCL method, multi-slope, unstructured meshes

2e soumission àFinite Volumes for Complex Applications, le fev 04, 2007.

(2)

in [5] and in [7].

Roughly speaking, the MUSCL technique consists in providing new approxima- tion of the unknow on both side of each interface between two elements. To this end, a predicted vectorial slope representing the gradient of the approximated solution at the centroid point of the control volume is computed and a correction factor is introduced to maintain the monotonicity of the reconstruction. The unknowns are evaluated at a point on each interface.

We propose a new MUSCL technique where a scalar slope is introduced for each direction leading to a one-dimensional MUSCL method where each slope is computed independently. The revealant points of the presented method are the simplicity, since we only use one-dimensional MUSCL reconstructions, and the stability.

2. The classical MUSCL methods

Let us consider a bounded domainΩ⊂R3etνdenotes the outward normal vector on the boundary∂Ω. LetF(s)aR3-valued regular function, for any scalar function ub(x, t)withx∈∂Ωandt∈[0, T], we define

Γ(ub) ={(x, t); x∈∂Ω, t∈[0, T]such thatF(ub(x, t)).ν(x)<0}.

We consider the scalar conservation equation :

tu(x, t) +∇.F u(x, t)

= 0 x∈Ω, t∈]0, T[, (1)

u(x,0) =u0(x) x∈Ω, (2)

u(x, t) =ub(x, t) x, t∈Γ(ub), (3) with u0 a prescribed initial function andub the Dirichlet condition. Assuming Ω polygonal, we denote byTha discretization ofΩwith tetrahedronKiof centroidBi. For each volumeKi,V(i)is the set of index of all the neighbour elementsKj with a common sideSij (see Figure 1 for a 2D configuration for the sake of simplicity). In the sequel for anyKi ∈Thandj ∈V(i)we denote by|Ki|,|Sij|and|BiBj|the volume, the area and the length. Moreover,nij stands for the exterior normal ofKi

on interfaceSij.

(3)

Figure 1.Geometry, 2D case.

Let(tn)n∈[0,N] be a partition of[0, T]and∆tn = tn+1−tn the time step, Uin represents an approximation of the mean value of u(x, t) on Ki at time tn and a generic explicite finite volume scheme writes

Uin+1 =Uin−∆tn X

j∈V(i)

|Sij|

|Ki|Fij(Uin, Ujn).nij, (4)

where we assume that the numerical fluxGij(U, V) =Fij(U, V).nijis monotone in order to provideLstability under the CFL condition [4].

In order to get a better approximation, the MUSCL technique consists in providing new valuesUijnandUjinon both side of the interfaceSijand the second order scheme then writes

Uin+1=Uin−∆tn X

j∈V(i)

|Sij|

|Ki|Fij(Uijn, Ujin).nij, (5) such that we satisfy a maximum principle, for instance

min(Uin, Ujn)≤Uijn, Ujin ≤max(Uin, Ujn). (6) The valuable point is that the numerical flux has not to be modified but only its argu- ments leading to a numerical method easy to implement: the flux and the reconstruc- tion are indeed independent.

2.1. Classical mono-slope methods

Classical MUSCL technique is based on the following local reconstruction

eui(x) =Ui+ai.Bix,

(4)

2.2. Multi-slope methods

We now consider a new MUSCL method where the scalar slopepij in direction BiXij is evaluated for each pointXij:

Uij =Ui+pij|BiXij|. (8) We name this class of MUSCL methodmulti-slope methodas we compute a specific slope for each direction.

REMARK. — A mono-slope method can be formulated using the multi-slope frame- work. Indeed, for a given slopeaiand a pointXij ∈Sij, we set

pij=ai. BiXij

|BiXij|

and relation (7) becomes (8) provided thatφi= 1. Consequently, the MUSCL multi- slope method can be considered as an extention of the classical MUSCL method.

Two particular choices are of importance (see Figure 1): in one hand the intersection pointQijbetweenSijand the segment[BiBj]for geometrical reason (interpolation) and, in the other hand, the median point Mij of Sij to provide the best numerical integration of the flux.

3. Multi-slope method at pointQ

We use pointQijto evaluateUijwith formula (8) and outline the construction of slopepij. We shall only consider inner tetrahedraKisuch that#V(i) = 4. Let us denotetij = BiBj/|BiBj|the nomalized neighbour directions. Since we assume

|Ki|>0we have the fundamental decomposition tij= X

k∈V(i) k6=j

βijk tik. (9)

whereβijkare real constants. MeshThis required to respect the following properties

(5)

–(P1):Qij is a point belonging to the sideSij,

–(P2):Biis strictly inside the tetrahedra delimited by pointsBj, j∈V(i).

Under assumption(P2)we get thatβijk < 0since the barycentric coordinates of Biwith respect toBj,j ∈ V(i)are positive. We now define the forward slopes in directiontij,j ∈V(i)setting

p+ij =Uj−Ui

|BjBi|. (10)

Using the fondamental decomposition (9), we build the backward slopes pij= X

k∈V(i) k6=j

βijk p+ik. (11)

At last, we obtain the slopepij =minmod(p+ij, pij)and the reconstructed values are Uij=Ui+pij|BiQij|.

REMARK. — Other one dimensional limiter are available, for exemple the Sweeby or the Van-Leer limiter. For a general discution on the limiter choice see [4].

3.1. Properties of the reconstruction

Property 3.1 We list here some basic properties of the multi-slopeQreconstruction.

1) We have a second order method in the sense that for any linear functionU(x):

Uij=Uji=U(Qij).

2) The scheme is first order at the extrema.

To prove the first assertion, let us consider a linear functionU(x) =U0+L.x, then we havep+ij =L.tij. Moreover, we write thanks to definition (11)

pij = X

k∈V(i) k6=j

βijkp+ik= X

k∈V(i) k6=j

βijkL.tik

= L. X

k∈V(i) k6=j

βijktik=L.tij =p+ij.

We deducepij =minmod(p+ij, pij)=minmod(p+ij, p+ij) =p+ijand thusUij =U(Qij).

To prove the second assertion, let assume that Uiis a local extremum. Then all the slopes p+ij have the same sign and since theβijk coefficients are non positive, the slopespij have the opposite sign. Consequentlyp+ijpij ≤0and theminmodlimiter yields topij= 0, henceUij =Ui.

REMARK. — ALstability result is proved in [4] based on a sharp analysis of coef- ficientsβijk.

(6)

and the decompositionsijij tij+ 1−αij2 tij,withαij =sij.tij, where the orthogonal vector is given by the unique representation

tij= X

k∈V(i) k6=j

πijk tik. (13)

Coupling the above relations, we draw the combinaition sijij tij+q

1−α2ij X

k∈V(i) k6=j

πijktik. (14)

Thanks to relation (14), we define the forward slope insijdirection by qij+ij p+ij+q

1−α2ij X

k∈V(i) k6=j

πijkp+ik. (15)

To compute the backward slope, we use the fundamental decomposition sij= X

k∈V(i) k6=j

βijk0 sik, (16)

where coefficientsβijk0 are unique and negative and we set qij= X

k∈V(i) k6=j

βijk0 qik+. (17)

We obtain the slope in directionsijwithqij =minmod(q+ij, qij)and the reconstructed values areUij =Ui+qij|BiMij|.

REMARK. — It is important to note that both in theM method and theQmethod, all introduced coefficients depend only on the mesh caracteristics and should be com- puted in a preprocessing step. Only the slope evaluation and the limitation process have to be performed to compute the approximation. It results in a very simplified method and the computational cost is then strongly reduced with regard to the classi- cal MUSCL technique.

(7)

Property 4.1 For any linear functionU(x), using the multi-slopeMreconstruction, we haveUij =Uji=U(Mij).

To prove the assertion, let us consider a linear functionU(x) =U0+L.x. Then we havep+ij =L.tij. Thanks to the relation (14), we get

q+ij = αij p+ij+q

1−α2ij X

k∈V(i) k6=j

πijkp+ik

= αij L.tij+q

1−α2ij X

k∈V(i) k6=j

πijkL.tik

= L.

αij tij+q

1−α2ij X

k∈V(i) k6=j

πijktik

=L.sij.

Moreover, as in proposition (3.1), the fundamental decomposition (16) yieldsqij = qij=qij+and thusUij=U(Mij).

5. Numerical tests

We present some numerical tests in the case of a linear convection problem to show the performance of the MUSCL multi-slope method. The setΩis the open cube]0,1[3 in which we consider the convection equation of variableu

tu+∇. λu

= 0 (18)

where the convection velocity isλ = (1,1,1). Letu0 be the initial condition, the exact solution is thenue(x, t) =u0(x−λt).

Letx0 = (14,14,14), we consider two different initial conditions with a compact support in the ballB ={x∈Ω, |x−x0| ≤ 14}given by :

f1(x) = 0.5(1 + cos(4π|x−x0|)), f2(x) = 1.

Note thatf1is aC1function whereasf2is a discontinuous function onΩ. We compute the approximation until a final timeT in the finite volume framework using MUSCL reconstructions with the minmod limiter and the upwind flux. On the other hand, we use the limiter proposed in [1] to compute the limiter for the mono-slope method. On the boundary, we impose a homogeneous Dirichlet condition since forT <1/2the support of the exact solution is contained in domainΩ. Consequently, we only employ a first order scheme for the boundary elements. We consider several 3D arbitrary meshes with repectively26201,98254,247802,784553and1803439elements. Let h= min

KiTh j∈V(i)

|Ki|

|Sij| represents the characteristic length of the mesh. We assume that the

(8)

For the regular solution, we compute theL norm of the methods. As expected, the multi-slopeMij method furnishes the highest order followed by the multi-slope Qij method. TheL1norm of the error confirms that the multi-slope method provides

First order Gradient multi-slopeQij multi-slopeMij f1

f2

100×C α 1.7 0.7 7.5 0.4

100×C α 1.3 0.8 7.4 0.4

100×C α 1.8 1.0 5.3 0.5

100×C α 4.2 1.3 5.9 0.6

Table 2.Order and constant,L1norm.

an higher order than the first order and the standard gradient methods. TheMmethod is more accurate than theQone which highlights the crucial importance of using a second order numerical method for the flux integration. For the discontinuous function test, the constantsCare also of interest since the order is low. TheM method and Qmethod provide the smallest constant. The MUSCL multi-slope methods have also been tested for the Euler system (see [4]) and we get similar results : the multi-slope Mijmethod has the highest order while the diffusion is strongly reduced.

6. References

[1] T. BARTH,The design and application of upwind scheme on unstructured meshesAIAA- 89-0366, 1989.

[2] T. BARTH,Numerical Methods for convservative Laws on Structured and Unstructured Meshes, VKI March 2003 Lecture Series, 2003.

[3] T. BUFFARD, S. CLAIN,Multi-Slopes MUSCL Methods for Unstructured Meshes, preprint 2008.

[4] V. CLAUZON,Analyse de Schémas d’Ordre Élevé pour les Écoulements Compressibles.

Application à la Simulation Numérique d’une Torche à Plasma, thèse de l’université Blaise Pascal, Clermont Ferrand, 2008.

[5] E. GODLEWSKY, P. A. RAVIART,Numerical approximation of hyperbolique convervation laws, Spinger-Verlag, 1996.

(9)

[6] A. HARTEN,High resolution schemes for hyperbolic conservation laws, Journal of Com- putationnal Physics, Vol. 49, 1983.

[7] M.E. HUBBARD, Multidimensional Slope Limiters for MUSCL-Type Finite Volume Schemes on Unstructured Grids, Journal of Computational Physics, Vol. 155, 1999.

[8] B. VANLEER,Towards the Ultimate Conservative Difference Scheme. V. A Second Order Sequel to Godunov’s Method, Journal of Computationnal Physics 32, (1979).

Références

Documents relatifs

We present a detailed analysis of the convergence properties of the finite cell method which is a fictitious domain approach based on high order finite elements.. It is proved

Then several authors used this theory to build numerical methods called Two-Scale Numerical Methods (e.g. Frénod and Sonnendrücker [3], Frénod, Salvarani and Sonnendrücker [2],

This model leads, after time discretization, to a Stokes system with non standard dissipative boundary conditions that cannot be easily and directly implemented in most FEM software,

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

In order to better understand the discontinuity at the SPH-FVM interface, this test case was used to analyze the differences between the Finite Volume and Smoothed Particle

Unité de recherche INRIA Rennes : IRISA, Campus universitaire de Beaulieu - 35042 Rennes Cedex (France) Unité de recherche INRIA Rhône-Alpes : 655, avenue de l’Europe -

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

Gaillard, Two parameters wronskian representation of solutions of nonlinear Schr¨odinger equation, eight Peregrine breather and multi-rogue waves, J.. Gaillard, Hierarchy of