Open access peer-reviewed chapter

Two Different Formulations for Solving the Navier-Stokes Equations with Moderate and High Reynolds Numbers

Written By

Blanca Bermúdez, Alejandro Rangel-Huerta, Wuiyevaldo Fermín Guerrero-Sánchez and José David Alanís

Submitted: April 22nd, 2017 Reviewed: October 24th, 2017 Published: December 20th, 2017

DOI: 10.5772/intechopen.71921

From the Edited Volume

Computational Fluid Dynamics

Chapter metrics overview

View Full Metrics

Abstract

In this work, we discuss the numerical solution of the Taylor vortex and the lid-driven cavity problems. Both problems are solved using the Stream function-vorticity formulation of the Navier-Stokes equations in 2D. Results are obtained using a fixed point iterative method and working with matrixes A and B resulting from the discretization of the Laplacian and the advective term, respectively. We solved both problems with Reynolds numbers in the range of 3200 ≤ Re ≤ 7500. Results are also obtained using the velocity-vorticity formulation of the Navier-Stokes equations. In this case, we are using only the fixed point iterative method. We present results for the lid-driven cavity problem and for the Stream function-vorticity formulation with Reynolds numbers in the range of 3200 ≤ Re ≤ 7500. As the Reynolds number increases, the time and the space step size have to be refined. We show results for 3200 ≤ Re ≤ 20,000. The numerical scheme with the velocity-vorticity formulation uses a smaller step size for both time and space. Results are not as good as with the Stream function-vorticity formulation, although the way the scheme behaves gives us another point of view on the behavior of fluids under different numerical schemes and different formulation.

Keywords

• Navier-Stokes equations
• velocity-vorticity formulation
• Stream function-vorticity formulation
• Reynolds number
• fixed point iterative process

1. Introduction

The fixed point iterative method has already been used for solving the Navier-Stokes equations and the Boussinesq system under different formulations, see [1, 2, 3, 4].

The idea behind this iterative method was to work with a symmetric and positive definite matrix. The scheme worked very well, as shown in [1, 2, 3, 4], but the processing time was, in general, very large especially for high Reynolds numbers. Working with matrixes A and B, we are dealing with a non-symetric matrix, but it can be proved that it is strictly diagonally dominant for Δt sufficiently small. The processing time with the second method was reduced in approximately 30 or 35%.

Additionally, in order to show that the fixed point iterative method works well for moderate and high Reynolds numbers, we report results for the lid-driven cavity problem and Reynolds numbers in the range of 3200 ≤ Re ≤ 100,000 using the Stream function-vorticity formulation and also the velocity-vorticity formulation, but in the case of the velocity-vorticity formulation, we just arrive to Re = 20,000, because of computing time and memory requirements.

Results, in both formulations, are obtained using the fixed point iterative method reported in [5], which is applied to a non-linear elliptic system resulting after time discretization. The method has shown to be robust enough to handle moderate and high Reynolds numbers, which is not an easy task, see [1, 2].

As the Reynolds number increases, the mesh has to be refined and a smaller time step has to be used, in order to capture the fast dynamics of the flow and, numerically, because of stability reasons, as mentioned in [6], although, with the velocity-vorticity formulation [7, 8], a finer mesh has to be used, both in time and in space.

The computing time is, in general, very large with this numerical scheme and for both formulations, so that is why we are looking forward to reduce computing time working with both matrixes A and B resulting from the discretization of the Laplacian and the advective term, respectively, instead of working just with matrix A, which is symmetric and positive definite.

With the Stream function-vorticity formulation, and for moderate and high Reynolds numbers, the second scheme was faster than the fixed point iterative method (see [9, 10]). With respect to the velocity-vorticity formulation, we are just showing results using the fixed point iterative method, and for lower Reynolds numbers, but we are looking forward to modify the scheme also in order to reduce computing time.

2. Mathematical model

Let ΩRNN=23be the region of a viscous, incompressible, non-stationary flow and Γis its boundary

ut1ReΔu+p+uu=f,au=0bE1

These are the Navier-Stokes equations in primitive variables. This system must be provided with appropriate initial conditions ux0=u0xinΩand boundary conditions u=gonΓ.

When working in a two-dimensional region Ω, taking the curl in both sides of (Eq. (1a)) and taking into account that

u1=ψy,u2=ψx,E2

followed by (Eq. (1b)), with ψ the Stream function, u1and u2the two components of the velocity, we arrive to the Stream function-vorticity formulation of the Navier-Stokes equations.

The following system of equations is then obtained:

Δψ=ωaωtvΔω+uω=fω,bE3

where ω is the vorticity given by ω = u2xu1y,and v=1Re.

This system represents the Navier-Stokes equations in the Stream function-vorticity formulation. The incompressibility condition (Eq. (1b)), because of (Eq. (2)), is automatically satisfied and the pressure does not appear any more.

3. The velocity-vorticity formulation

Taking the curl in

ω=×u,E4

and using the identity ××a=2a+aand (Eq. (1b)), we obtain the following Poisson type equation for the velocity:

Δu=×ωE5

Two Poisson type equations for the velocity are obtained, which together with the equation for the vorticity give us:

Δu1=ωyaΔu2=ωxbωtvΔω+uω=fωcE6

These are the Navier-Stokes equations in the velocity-vorticity formulation.

4. Numerical method for the Stream function-vorticity formulation

The following second-order approximation for the time derivative is used:

ωtxn+1t3ωn+14ωn+ωn12Δt,E7

where n1,xΩand t>0is the time step.

Δψn+1=ω,ψΓ=ψbcaαωn+1vΔωn+1+un+1ωn+1=fω,ωΓ=ωbc,bE8

where α=32tand fω=4ωnωn12t.

At each time level, the following non-linear system has to be solved.

Δψ=ω,ψΓ=ψbcaαωvΔω+uω=fω,ωΓ=ωbc,bE9

To obtain (ψ1, ω1) in (Eq. (8)), any second-order strategy using a combination of one step can be applied and steady systems of the form (Eq. (9)) are also obtained.

For solving this system of equations, two strategies were used in this work: First, we used the fixed point iterative method described in [5]:

Denoting Rωωψby

Rωωψ=αωvΔω+uωfωinΩ,E10

our system is equivalent to

Δψ=ω,ψΓ=ψbcaRωψ=0,ωΓ=ωbcbE11

Then, at each time level, the following the fixed point iterative process (see [5]) is used:

Given ωn,0= ωnand ψn,0=ψnsolve until convergence in ω and ψ

Δψn,m+1=ωn,minΩ,ψn,m+1=ψbconΓωn,m+1=ωn,mρωαIvΔ1Rωωn,mψn,m+1in Ω,ωn,m+1=ωbcn,m+1onΓ,ρω>0;E12

and then take ωn+1ψn+1=ωn,m+1ψn,m+1.

To reduce the computing time, we worked in solving the system by the following method at each time step:

Δψn+1=ωn,ψn+1Γ=ψbcaαIvh2Aωn+1+12hBωn+1=fω,ωn+1Γ=ωbc,bE13

where A and B are the matrixes resulting from the discretization of the Laplacian and the advective term respectively, and (Eq. (13b)) is solved using Gauss-Seidel method.

5. Numerical method for the velocity-vorticity formulation

The second-order approximation (Eq. (7)) for the time derivative is used and the following non-linear system is obtained in Ω

Δu1=ωyΔu2=ωx,uΓ=ubcRωωu=0,ωΓ=ωbc,E14

where

RωωuαωvΔω+uωfω.E15

Using again the fixed point iterative method previously described, we have:

Given ωn,0=ωn,u1n,0=u1n,u2n,0=u2nsolve until convergence in ω,u1andu2

Δu1n,m+1=ωn,myΔu2n,m+1=ωn,mx,un,m+1Γ=ub,cn,m+1αIvΔωn,m+1=αIvωmρω>0,ωn,m+1Γ=ωbcn,mE16

and then take ωn+1u1n+1u2n+1=ωn,m+1u1n,m+1u2n,m+1.

6. Numerical experiments

With respect to the lid-driven cavity problem and using the Stream function-vorticity formulation Ω=01×01, the top wall is moving with a velocity given by (1, 0) and for the other walls, the velocity is given by (0, 0). Ψ is over-determined at the boundary (ψnΓis also known) and there is no boundary condition for ω. In our case, we have followed the alternative proposed by Goyon [11]. Ψ = 0 is chosen over Г. A translation of the boundary condition in terms of the velocity (primitive variable) has to be used. By Taylor series expansion of (Eq. (3a)), we obtained:

ω0yt=12hx28ψhxytψ2hxytωayt=12hx28ψahxytψa2hxytωx0t=12hy28ψxhytψx2hytωxbt=12hy28ψxbhytψxb2hxtE17

where hx,hydenote the spatial step size in the directions of x and y, respectively.

In Figures 1 and 2 , we show results for the lid-driven cavity problem with Re=5000and Re=7500, with hx=hy=1/64.

For the Taylor vortex problem, results are shown in Figures 3 and 4 for Re=5000and Re=7500, with hx=hy=2π/64and t=10.

The exact Stream function and the vorticity are also shown in Figure 5 , for Re=5000. For this problem, Ω=02π×02πthe exact solution is known and is given by:

u1xyt=cosxsinye2tReu2xyt=sinxcosye2πReE18

In the primitive variables formulation, we have as initial conditions:

u1xyt=cosxsinyu2xyt=sinxcosyE19

For the Stream function, the boundary conditions are:

ψx0t=ψxπt=cosxe2tReψ2πyt=cosye2tReE20

For the vorticity, the boundary conditions are:

ωx0t=ωx2πt=2cosxe2tReω0yt=ω2πyt=2cosye2tReE21

In Tables 1 and 2 , we show computing times for the above-mentioned problems with both the methods; the Fixed Point Iterative Method and working with matrixes A and B.

ReFixed point iterative method (s)Working with A and B (s)
5000153120
7500801610.25

Table 1.

Time in seconds, for both Reynolds numbers and the two methods described for the lid-driven cavity problem.

ReFixed point iterative method (s)Working with A and B (s)
500015.512.75
750015.512.75

Table 2.

Time in seconds, for both Reynolds numbers and the two methods for the Taylor vortex problem.

In Figure 6 , we show the streamlines and isovorticity contours for Re=25,000,with h=hy=1/728. In Figure 7 , we show results for Re=50,000, with h=hx=hy=1/1024. For these values of the Reynolds number, since there is no steady state, we show results for Tfinal=5.

Then, in Figure 8 , we show just the isovorticity contours for Re=75,000,with h=hx=hy=1/1024and for Re=100,000, with h=hx=hy=11280and Tfinal=5.

In the case of the velocity-vorticity formulation and the lid-driven cavity problem, the boundary condition for u is given by u = (1, 0) in the moving boundary y = b and u = (0, 0) anywhere else at the boundary.

Not all the results were obtained using the second-order discretization. In some cases, a fourth-order discretization has to be used, using the fourth-order option of Fishpack [12] (used in this work for solving the elliptic problems appearing).

In Figure 9 , we show the streamlines and the isovorticity contours for Re=3200, h=hx=hy=1/512, Tfinal=50.

In Figure 10 , we show the isovorticity contours for Re=20,000with (a) h=hx=hy=1/1512, Tfinal=5,obtained using the velocity-vorticity formulation and (b) with the Stream function-vorticity formulation with h=hx=hy=1/768,Tfinal=5.

As can be noticed with the Stream function-vorticity formulation, we are using a value of h half of the size of the one used with the velocity-vorticity formulation. We assume the results obtained with the first-mentioned formulation are more reliable. Computing time for the velocity-vorticity formulation was much larger. We think there are still some numerical problems with this formulation and for very high Reynolds numbers.

7. Conclusions

For the lid-driven cavity problem results agree very well with those reported in the literature [1, 2, 3, 4, 13, 14], and by working with matrixes A and B it was possible to reduce computing time between a 30 and 35%.

As can be seen in Figures 1 and 2 , numerical oscillations occurred, given the high Reynolds numbers used in such a way that it is necessary to use smaller values of h [6], numerically because of stability of the method and physically in order to capture the fast dynamics of the flow.

For high Reynolds numbers and small values of h the computational work takes a lot of time, so reducing computing time becomes a very important fact. For the Taylor Vortex Problem [8, 15], processing time was also reduced between 30 and 35%.

With the velocity-vorticity formulation, as already mentioned, we only show results using the Fixed Point Iterative Method, and we are looking forward working with both matrixes A and B, in order to reduce computing time also with this formulation. This is the reason why we only show results till Re = 20,000 and not for higher Reynolds numbers.

In conclusion, the numerical scheme applied with the stream function-vorticity formulation is not as good with the velocity-vorticity formulation, although, the way it behaves with some values of the parameters and the order of discretization, gives us another point of view about the behavior of the fluids under different numerical methods and different formulations.

We must also say that our code has not been parallelized since it is difficult to do this. It must be taken into account that the equations, in both formulations, are coupled. We are looking forward to use a solver for the system of linear equations that can be parallelized. This can be viewed as a future work.

Acknowledgments

The authors would like to acknowledge the support received by the National Laboratory of Supercomputing from of the southeast of Mexico BUAP-INAOE-UDLAP (Laboratorio Nacional de Supercómputo del Sureste de México).

References

1. 1. Bermúdez B, Nicolás A, Sánchez FJ, Buendía E. Operator splitting and upwinding for the Navier–Stokes equations. Computational Mechanics. 1997;20(5):474-477
2. 2. Nicolás A, Bermúdez B. 2D incompressible viscous flows at moderate and high Reynolds numbers. CMES. 2004;6(5):441-451
3. 3. Nicolás A, Bermúdez B. 2D thermal/isothermal incompressible viscous flows. International Journal for Numerical Methods in Fluids. 2005;48:349-366
4. 4. Bermúdez B, Nicolás A. Isothermal/thermal incompressible viscous fluid flows with the velocity–vorticity formulation. Información Tecnológica. 2010;21(3):39-49
5. 5. Nicolás A. A finite element approach to the Kuramoto Sivashinski equation. In: Advances in Numerical Equations and Optimization. SIAM; 1991
6. 6. Nicolás Carrizosa A, Bermúdez Juárez B. Onset of two dimensional turbulence with high Reynolds numbers in the Navier‐Stokes equations. Computational Methods for Coupled Problems in Science and Engineering IV M. Papadrakakis, E. Oñate and B. Schrefler (Eds.) First edition, June 2011:996-1006
7. 7. Nicolás A, Bermúdez B. Viscous incompressible flows by the velocity–vorticity Navier–Stokes equation. CMES. 2007;20(2):73-83
8. 8. Bermúdez B, Nicolás A. The Taylor vortex and the driven cavity problems by the velocity–vorticity formulation. In: Proceedings of the 7th International Conference on Heat Transfer, Fluid Mechanics and Thermodynamics; 2010. pp. 629-632
9. 9. Bermúdez B, Juárez L. Numerical solution of an advection-diffusion equation. Información Tecnológica. 2014;25(1):151-160
10. 10. Bermúdez B, Posadas R. The Taylor vortex and the driven cavity problems in the stream functions-vorticity formulation. In: Proceedings of the 11th World Congress on Computational Mechanics (WCCM XI); 5th European Congress on Computational Mechanics (ECCM V); 6th European Congress on Computational Fluid Dynamics (ECDF VI). A Publication of CIMNE; 2014. pp. 3746-3755
11. 11. Goyon O. High Reynolds number solutions of Navier–Stokes equations using incremental unknowns. Computer Methods in Applied Mechanics and Engineering. 1996;130:319-335
12. 12. Adams J, Swarztrauber P, Sweet R. FISHPACK: A Package of FORTRAN Subprograms for the Solutions Elliptic PDE's. Boulder, Colorado, USA: The National Center for Atmospheric Research; 1980
13. 13. Glowinski R. Finite element methods for the numerical simulations of incompressible viscous flow. In: Introduction to the Control of the Navier‐Stokes Equations, Handbook of Numerical Analysis, Vol. II, North-Holland, Amsterdam, 1991, 17-351
14. 14. Ghia U, Guia KN, Shin CT. High-re solutions for incompressible flow using the Navier–Stokes equations and a multigrid method. Journal of Computational Physics. 1982;48:387-411
15. 15. Anson DK, Mullin T, Cliffe KA. A numerical and experimental investigation of a new solution in the Taylor vortex problem. Journal of Fluid Mechanics. 1988:475-487

Written By

Blanca Bermúdez, Alejandro Rangel-Huerta, Wuiyevaldo Fermín Guerrero-Sánchez and José David Alanís

Submitted: April 22nd, 2017 Reviewed: October 24th, 2017 Published: December 20th, 2017