Finite Element Solution of a Stream Function-Vorticity ...Finite Element Solution of a Stream...

6
Applied Mathematics, 2013, 4, 257-262 http://dx.doi.org/10.4236/am.2013.41A039 Published Online January 2013 (http://www.scirp.org/journal/am) Finite Element Solution of a Stream Function-Vorticity System and Its Application to the Navier Stokes Equations Fattehallah Ghadi 1 , Vitoriano Ruas 2 , Mohamed Wakrim 1 1 Equipe Modélisation Mathématique et Simulation, Faculté des Sciences Université Ibn Zohr, Agadir, Maroc 2 Institut Jean Rond d’Alembert/CNRS, UPMC Université, Paris, France Email: [email protected], [email protected], [email protected] Received October 6, 2012; revised November 28, 2012; accepted December 5, 2012 ABSTRACT The finite element solution of a generalized Stokes system in terms of the flow variables stream function and vorticity is studied. This system results from a time discretization of the time-dependent Stokes system in stream function-vorticity formulation, or yet by the application of the characteristics method to solve the Navier-Stokes equations in the same representation. Numerical results presented for both cases illustrate the good behaviour of the adopted approach. Keywords: Characteristics Method; Navier-Stokes; Stream Function; Vorticity 1. Introduction Expressing the incompressible Navier-Stokes equations in terms of variables other than velocity and pressure becomes a good alternative for solving them numerically, provided one is able, not only to uncouple the new flow variables, but also to derive reliable discrete counterparts. In this respect the classical stream function and vorticity formulation of these equations in two-dimension space is a very good example. After having studied it in the sta- tionary case (cf. [1]), in this paper we generalize our re- sults [1] to the time-dependent problem. In terms of numerical analysis this paper primarily deals with a mixed method to solve the two-dimensional generalized Stokes problem in terms of the stream func- tion and the vorticity. Such problem results for instance from the time discretization of the time-dependent Stokes system. The difficulty arising from the lack of boundary conditions for the vorticity is overcome by means of a suitable technique for uncoupling both variables follow- ing the mains lines of the well-known Glowinski-Piron- neau method [2]. Then we discretize in space the result- ing uncoupled system by means of continuous Lagrange finite elements. In computational terms we apply the above technique to the Navier-Stokes equations. This is achieved by first performing the semi-discretization in time of these equa- tions by a classical characteristics method. Then we ap- ply the same numerical ingredients as for the generalized Stokes system. We illustrate the good performance of our approach by means of numerical results, obtained for some benchmarks problems such as cavity lid driven flow. 2. The Time-Dependent Stokes System as a Model Problem Given a field of volumetric forces f with 2 , f t L for any time t, and denoting by ν the kinematic viscosity of the fluid occupying a bounded simply connected do- main of R 2 with boundary Γ assumed to be Lipschitz continuous, we wish to find the stream function and the vorticity ω such that 0 1 curl and in and on , f t g g n (1) where 3 2 0 , g t H and 1 2 1 , g t H are func- tions determined from the given velocity on for every , together with an appropriate initial condition at time t t 0 . The Euler type implicit discretization in time of system (1) with time step t gives 1 0 1 curl in in on on n n n n n n n n n n t f g g n (2) where , 1, 2, tn , with 0 given, and : , n F F ndt for any function , F t . Assume that 1 n is known. Then problem (2) be- comes a generalized Stokes problem. If we omit the index , the problem is written n Copyright © 2013 SciRes. AM

Transcript of Finite Element Solution of a Stream Function-Vorticity ...Finite Element Solution of a Stream...

Page 1: Finite Element Solution of a Stream Function-Vorticity ...Finite Element Solution of a Stream Function-Vorticity System and Its Application to the Navier Stokes Equations Fattehallah

Applied Mathematics, 2013, 4, 257-262 http://dx.doi.org/10.4236/am.2013.41A039 Published Online January 2013 (http://www.scirp.org/journal/am)

Finite Element Solution of a Stream Function-Vorticity System and Its Application to the Navier Stokes Equations

Fattehallah Ghadi1, Vitoriano Ruas2, Mohamed Wakrim1 1Equipe Modélisation Mathématique et Simulation, Faculté des Sciences Université Ibn Zohr, Agadir, Maroc

2Institut Jean Rond d’Alembert/CNRS, UPMC Université, Paris, France Email: [email protected], [email protected], [email protected]

Received October 6, 2012; revised November 28, 2012; accepted December 5, 2012

ABSTRACT

The finite element solution of a generalized Stokes system in terms of the flow variables stream function and vorticity is studied. This system results from a time discretization of the time-dependent Stokes system in stream function-vorticity formulation, or yet by the application of the characteristics method to solve the Navier-Stokes equations in the same representation. Numerical results presented for both cases illustrate the good behaviour of the adopted approach. Keywords: Characteristics Method; Navier-Stokes; Stream Function; Vorticity

1. Introduction

Expressing the incompressible Navier-Stokes equations in terms of variables other than velocity and pressure becomes a good alternative for solving them numerically, provided one is able, not only to uncouple the new flow variables, but also to derive reliable discrete counterparts. In this respect the classical stream function and vorticity formulation of these equations in two-dimension space is a very good example. After having studied it in the sta- tionary case (cf. [1]), in this paper we generalize our re- sults [1] to the time-dependent problem.

In terms of numerical analysis this paper primarily deals with a mixed method to solve the two-dimensional generalized Stokes problem in terms of the stream func- tion and the vorticity. Such problem results for instance from the time discretization of the time-dependent Stokes system. The difficulty arising from the lack of boundary conditions for the vorticity is overcome by means of a suitable technique for uncoupling both variables follow- ing the mains lines of the well-known Glowinski-Piron- neau method [2]. Then we discretize in space the result- ing uncoupled system by means of continuous Lagrange finite elements.

In computational terms we apply the above technique to the Navier-Stokes equations. This is achieved by first performing the semi-discretization in time of these equa- tions by a classical characteristics method. Then we ap- ply the same numerical ingredients as for the generalized Stokes system. We illustrate the good performance of our approach by means of numerical results, obtained for some benchmarks problems such as cavity lid driven flow.

2. The Time-Dependent Stokes System as a Model Problem

Given a field of volumetric forces f with 2,f t L for any time t, and denoting by ν the kinematic viscosity of the fluid occupying a bounded simply connected do- main Ω of R2 with boundary Γ assumed to be Lipschitz continuous, we wish to find the stream function and the vorticity ω such that

0 1

curl and in

and on ,

ft

g gn

(1)

where 3

20 ,g t H and

1

21 ,g t H are func-

tions determined from the given velocity on for every , together with an appropriate initial condition at time

tt 0 .

The Euler type implicit discretization in time of system (1) with time step t gives

1

0

1

curl in

in

on

on

n n n n

n n

n n

nn

t f

g

gn

(2)

where , 1,2,t n , with 0 given, and : ,nF F ndt for any function ,F t .

Assume that 1n is known. Then problem (2) be- comes a generalized Stokes problem.

If we omit the index , the problem is written n

Copyright © 2013 SciRes. AM

Page 2: Finite Element Solution of a Stream Function-Vorticity ...Finite Element Solution of a Stream Function-Vorticity System and Its Application to the Navier Stokes Equations Fattehallah

F. GHADI ET AL. 258

0 1

and in

and on

g

g gn

(3)

where t and 1g H , 3

20g H and

1

21g H are given.

3. Variational and Uncoupling Techniques

Like in [1], a suitable variational formulation of system (3) is provided by using the space

2: ;X L H 1 . In order to un- couple the resulting system we work with the spaces

: ;HX X 0

0

and . : ;X X H

Now using standard arguments, we may uniquely write every function as a sum of the form X

0 , where 10 0H is uniquely defined

by 0 0 0

and . Then letting X , where and 1

0 0H X ,

and recalling that 1

2

H H and

3

2HH HH X

n

(cf. [1]), the uncoupled

formulation associated with system (3) is: (see Equation (4)) where

0 1 1

0;gH v H v g and ,s

de- notes the duality product between and

with sH

sH s R, ,

. Problem (4) has a unique solution

0 , which is such that the field 0, is the unique solution of system (3).

4. Discretized Problem

The type of finite element approximation of problem (4) was first introduced in [3]. In this work we develop it in detail by referring the reader to that work for the numerical analysis of the method. Assuming that is a polygonal domain and letting h

be a quasi- uniform family of triangulations of

hT with mesh step

size , we introduce the finite element spaces defined by:

h

2

0

,

10

: ; , ;

: ;

: ; π on π , ;

: .

h h k hh K

h h

hh g h h h h h

h h

Y v L v P K K T

V Y C

V v V v g g P g P P E

M V H

Here kP K

hE

denotes the space of polynomials of degree less than or equal to , defined in an element

and is the numbered set of all the nodes used to define the degrees of freedom of that lie on

kK

hV . Finally, we define

0

0 0

: , , 0, and

: , , , 0,

hH h h h h h h

hh h h h h h h h

X u V u v v M

X u V u v u v v M

.

Then the discrete versions of problems (4-i), (4-ii) and (4-iii) are defined as follows: (see Equation (5)).

We note that the determination of 0 ,h h and h

requires the computation of a basis of hHX and another

one of hX . The following algorithm describes how to compute

these bases and how to determine 0 ,h h and h .

0

1 10 0

10 0 00 1

10 1 000 322

10 0 0 0 01 0

Find , , such that

i , , , ,

ii , , , , ,

iii , , ,

g

HH H H H

H X H

g H

g g Xn

H

H

(4)

00 ,

0 00 1

10 1 00 0 322

0 0 0 01 0

Find , , such that

i , , , ,

ii , , , , ,

iii , , ,

hh h hh h g

h hh h h h

hh h h h h h hH

H H H H

h h h h h hh

M X H

g M

Hg g Xn

M

(5)

Copyright © 2013 SciRes. AM

Page 3: Finite Element Solution of a Stream Function-Vorticity ...Finite Element Solution of a Stream Function-Vorticity System and Its Application to the Navier Stokes Equations Fattehallah

F. GHADI ET AL. 259

Algorithm Step 1 For compute 1, , hi N h

i :

,

0

Find such that

, 0

ii h

hi h h h

V

M

h

.

N

Step 2 For compute 1, , hi ,i h

:

,

, ,

0 0

Find such that

, , 0

ii h

i h i hi h i h h h

V

M

,i h

.

.hM

i h

Step 3

0

0 0 00 0

Find such that

, , 0 ,

hh

h hh h h h

M

g

Step 4

Compute ,

1

hNh

ii

by solving the linear system

AX b , with

,

0

0 00

1

, ,1 ,

,

.h

i h hij j h

hh h hi

i i

i i N

A i j N

b gn

X

1 ig

Step 5

0,

00 0

Find ,such that

, , ,

h h g

h hh h h h h

V

M

5. Numerical Experiments

In order to illustrate the performance of our approach, we

present some numerical results obtained in the framework of a problem with known solution, solved with the equal order method for 1k .

We consider the stationary Stokes problem in 0,1 0,1 , whose exact solution is given by

2 2, sin π sin π x y x y

and

2 2 2, 2π sin π cos 2π sin π cos 2πx y y x x y .

In this example de mesh is 30 × 30, and we run a

of the exact and ap

sufficient number of time steps to reach a stationary solution, with reasonable accuracy.

In Figure 1 we display the contours proximate vorticity for 0.05t , respectively on the

left and on the right. In Fig display the contours of the exact and approximate streamlines for 0.05t

ure 2 we ,

respectively on the left and on the right. In Fi e display the exact and approximate vorticity along the first diagonal. In Figure 4 we display the exact and approximate stream function along the first diagonal.

gure 3 w

6. Extention to the Navier-Stokes Equations

Let us first recall the Navier-Stokes equations expressedin the stream function and vorticity formulation.

0 1

curl curl and in

and on

ft

g gn

(6)

We use the method of characteristics of first order for the time-discretization of the vorticity particle derivative, namely

1, ,curl , n n

n

; nx t oX x t tx t

t tO t

(7)

Figure 1. Exact (left) and a (right) vorticity contours. pproximate

Copyright © 2013 SciRes. AM

Page 4: Finite Element Solution of a Stream Function-Vorticity ...Finite Element Solution of a Stream Function-Vorticity System and Its Application to the Navier Stokes Equations Fattehallah

F. GHADI ET AL. 260

Figure 2. Exact (left) a ate (right) streamline. n approxim

Figure 3. Exact an approximate vorticity along the first diagonal.

Figure 4. Exact an approximate stream function along the first diagonal.

X is the solu

, ; url , ;X

x

, ;

cs t oX x s tt

(8)

X x s s x

, ,nnx x t x n t

We obtain:

1

1, ;d

dt

n nnn noX t t

O tt

x

(9)

from which we derive the scheme:

(10)

where

1curl n n n nt f x

n n

1 curl nx x t x

Systeproblem

m (10) is nothing but a generalized Stokes problem of the type (3). Hence we can use the

above described algorithm to solve it. Th main difficulty is

e the computation of x .

7. Numerical Tests

In order to validate ou apr proach, we present the driven

y the streamlines and vorticity cavity flow results.

In Figure 5 we displacontours for 10Re . In Figure 6 we display the com- parison along the first diagonal between the vorticity (r

metho

ach to solve the incompressible Navier-Stokes in tw

espectively the stream function) obtained with the characteristics d and the one obtained with the linearization method employed in [4]. In Figure 7 we display the streamlines and vorticity contours for Re = 100.

The numerical results presented in this Section not only confirms the adequacy and economy of our appro

o-dimension space, but also illustrates that it can be tion of the problem:

Copyright © 2013 SciRes. AM

Page 5: Finite Element Solution of a Stream Function-Vorticity ...Finite Element Solution of a Stream Function-Vorticity System and Its Application to the Navier Stokes Equations Fattehallah

F. GHADI ET AL. 261

Figure 5. Re = 100. Vorticity computed with characteristic method, stream function computed with characteristic method.

Figure 6. Re = 10. Comparison of the two solutions along the first diagonal.

Figure 7. Re = 100. Vorticity computed with characteristics method, streamline computed with characteristics method.

Copyright © 2013 SciRes. AM

Page 6: Finite Element Solution of a Stream Function-Vorticity ...Finite Element Solution of a Stream Function-Vorticity System and Its Application to the Navier Stokes Equations Fattehallah

F. GHADI ET AL. 262

suitably combined with the characteristics method. How- ever the main difficulty of such combination is the choice of the time step Unfortunately when the Reynolds number increases this issue becomes critical. In this case it is advisable to use moving meshes or yet a higher order characteristics method, in order to improve the quality of the numerical results.

REFERENCES [1] F. A. Ghadi, V. Ruas and M. Wakrim, “A Mixed Finite

Element to Solve the Stokes Problem in the Stream Func-tion and Vorticity Formulation,” Hiroshima Mathemati-cal Journal, Vol. 28, No. 3, 1998, pp. 381-398.

[2] R. Glowinski and O. Pironneau, “Numerical Methods for the First Bi-Harmonic Equation and for the Two-Dimen- sional Stokes Problem,” SIAM Review, Vol. 21, No. 2, 1979, pp. 167-212. doi:10.1137/1021028

t .

[3] F. A. Ghadi, V. Ruas and M. Wakrim, “A Mixed Method to Solve the Evolutionary Stokes Problem in the Stream Function and Vorticity Formulation,” Proceedings of LUXFEM, Luxemburg, 13-14 November 2003.

[4] F. A. Ghadi, V. Ruas and M. Wakrim, “Numerical Solu-tion to the Time—Dependent Incompressible Navier- Stokes Equations by Piecewise Linear Finite Elements,” Journal of Computational and Applied Mathematics, Vol. 215, No. 2, 2008, pp. 429-437. doi:10.1016/j.cam.2006.03.047

Copyright © 2013 SciRes. AM