You are on page 1of 6

Proceedings of International Conference on Engineering and Information Technology ICEIT2012 Sep.

17-18, 2012, Toronto, Canada ISBN: 978-1-77136-064-7

Comparison between RANS and LES fo Turbulence Models in CFD Simulation Using OpenFOAM
Sattar Al-Jabair
Assist. Prof. in Mech. Eng. Dept., University of Technology, Baghdad, Iraq

Abstract
A separated flow in a three-dimensional wavy channel is simulated numerically using open source program OpenFOAM. In order to comparison and evaluation the turbulence models. This study included seven RANS-based turbulence models (standard k- , Realizable k-, RNG k-, Launder Sharma k-, Lam Bremhorst k-, nonlinear k- Shih, Menter SST k- ) and one model of large eddy simulation (one equation mod el). All computational work is carried out using open source software: pre-processing GAMBIT software for geometry and meshing, OpenFOAM CFD solver, and Paraview post-processing for visualization. In all simulation wall function are used, with three values of Reynolds number 3000, 6000 and 10000 based on inlet bulk velocity and hydraulic diameter of inlet wavy channel at amplitude wave length ratio (a/) equal 0.25. Keywords: RANS, LES, Turbulence modeling, OpenFOAM source code.

Nomenclature
a DH p Re L Wave amplitude (m) Hydraulic diameter (m) Pressure drop (Pa) Reynolds number Length (m)

Greek Symbols
Dynamic viscosity [kg/m.s]

Subscripts
i, j, k x ,y, z s, e t Refer to coordinates location in X, Y , Z Start and end Time

Notations
RANS LES Reynolds Averaged Navier-Stokes Large eddy simulation

1. Introduction
A correct prediction of a separated flow remains one of the main challenges in the computational fluid dynamics (CFD), especially in the turbulence modeling. The computational prediction of flow separation of a turbulent boundary layer from a wavy surface is a process of primary concern. The fluid flow becomes detached from the surface and instead takes the form of eddies and vortices. Due to wavy surface shape the flow separation occurs, it is a challenging computational problem and experiments indicate that the flow in the recirculation zone is complex and strongly timedependent. However, the physical phenomena that arise * Corresponding author. Tel.: +4917620235271 Germany; E-mail: drsattar@uotechnology.edu.iq

are a subject of interest for many engineering components and systems. Streamlined car bodies, lowpressure turbine blades and highly loaded aircraft wings, wave generation on liquid surfaces or liquid surface instability and compact heat exchanger are some examples of where flow separation can have significant influence of the ability of the device in question to perform electively. There are many literature about wavy surface included the flow field and heat transfer phenomena [1-6], but not refer to powerful of turbulence model for this case, so one of goals for this study is achieve that. A number of studies and experiments have been carried out in the discussed problem. In measurements of wall shear stress and pressure forces the works under leading of Hanratty are classical [7], [8]. The mostly cited data of velocity components were proved by LDV measurements by Hudson [9], [10]. The configuration of his experiments was later used in DNS simulations of Maass and Schumann [11], Cherukat et. al. [12] and Yoon et. al. [13]. The latter we have used to verify our results in the location of separation and reattachment points. Wavy channel flow is a three-dimensional simulated numerically using open source program OpenFOAM. In order to comparison and evaluation the turbulence models. This study included seven RAS turbulence models (standard k- , Realizable k-, RNG k-, Launder Sharma k-, Lam Bremhorst k-, nonlinear k- Shih, Menter SST k-) and one model of large eddy simulation (one equation model). All the governing equations and formulations of theses turbulence models are shown in the references [4, 15, 16, 17, and 18]. The main flow features evaluated is the shape and position of the flow separation. Most of the models tested have problems describing the complex dynamics of flow

ICEIT-2012

separation in these particular cases. Turbulent ows uctuate on a broad range of time and length scales. This makes the simulation of such ows dicult and it is often necessary to model the turbulence in some way. The main objective of this study is to evaluate the tested RANS-models prediction of the flow over the wavy surface. We mainly evaluate the results with respect to the location and shape of the separation zone and the velocity, pressure and Reynolds stress distribution in the near the wall. Also, one of the purposes of this project is to use open-source CFD software instead of commercial software for the simulations. This type of software is advantageous for smaller companies to use, as the cost of commercial CFD package licenses can be prohibitive.

3. Theory dna Turbulence Models


The Reynolds Averaged Navier-Stokes (RANS) equation is:

Ui Ui p Ui +Uk =+ + t x k xi xj x j -ui uj x j Where ij =-ui uj is called Reynolds Stresses, the


term

Ui -ui uj xj x j

Must be modeled using turbulence models.

2. Problem Formulation
In this study, ow in a symmetric wavy-wall channel was analysed. The working uid (air) was assumed to be Newtonian uid with constant uid properties, and the ow was considered to be turbulent according to Reynolds number values, incompressible, unsteady and three-dimensional. As will be seen in Fig. 1, the shape of the low wavy-wall prole in the region xs xxe is given as Turbulence models are required to predict the Reynolds stresses and scalar transport terms in order to close the system of expanded time-averaged RANS equations (continuity, momentum, and scalar transport equations), for example will explain the details for some turbulence models such as k-, k-, and LES where used in this study. Seven RANS-based turbulence models with one model of LES are used in order to investigate which the best for turbulent flow in corrugated channels flow. This section describes some of the commonly used turbulence models, and then presents relevant details regarding the specific turbulence models used in this project. All the turbulence models in this study are based on variances of the Reynolds averaged Navier-Stokes (RANS) equations, in which average values for turbulent fluctuations are used for modelling the turbulence. Several variations of the k- model have been made, as well as low-Reynolds numbers modifications of it as in (Launder Sharma k-, Lam Bremhorst k-, and nonlinear k- Shih). The high Reynolds number models listed use log-law type wall functions as a (standard k- , Realizable k-, and RNG k-). Large eddy simulations (LES) were developed to extend the simulation of unsteady flows. The desired result of an LES computation is to obtain a DNS equivalent solution for the large-scale turbulence on a much coarser grid than is required for DNS. An LES simulation requires: A grid fine enough to discretize the small nearly isotropic scales of the turbulence, A low dissipation numerical scheme, A filter function to determine the division of the turbulent spectrum into grid realized and subgrid regions, and A sub-grid turbulence model. A true LES simulation is more than a high Reynolds number computation run without a turbulence model. Although the resulting solution from such a simulation may resemble turbulent flow, the resulting solution will most likely not represent an equivalent DNS solution. Two things are required to close the modelled LES equations: The sub-grid turbulent kinetic energy ksgs, and the sub-grid eddy viscosity sgs, [14].

y(x)=-Ly-a sin[(x-xs)/Ly ]
where (xs) and (xe) are the start and end points of the wavy-wall channel, respectively, and (a) is the amplitude of the wavy surface. The channel mean height (Ly) is set equal to the wave length (); whereas four complete wave cycles were proven convenient in representing the channel length to eliminate the effect of periodicity on the flow fields in the channel inlet and outlet. The no-slip boundary condition is employed at the wall, whereas the periodic boundary conditions are applied in the streamwise direction. Table (1) shows the boundary conditions in the inlet region. In all calculation, Simulation results applied for Re=3000, 6000, 10000, (a/) =0.25, and seven turbulence models.

Fig. (1) Computational domain in this study for (a/) =0.25, dimensions in cm.

ICEIT-2012

- 69 -

Table (1) Values used in this project for turbulence intensity I, kinetic energy k, dissipation , and frequency . * [15] , ** [4, 19] Inlet area = 2*10-2 m2 U [m/s] 1.44 2.89 4.82 Reynolds number (Re) 3000 6000 10000 *I = 0.16 * Re-1/8 Intensity ( I) 0.0588 0.0539 0.0505 k = 1.5*(I*U) kinetic energy (k) ( / ) 0.0107 0.0363 0.0871
0.75 ** = 1.5

, = 0.07

= / k frequency () (/) 7.7289 14.234 22.050

Dissipation () ( / ) 0.0827 0.5167 1.9206

1 2 3 4 5 6 7 8 9

Table (2) The (x/) location of separation and reattachment points for validation test for (a/)=0.05, Lx=2 and Re=6760. Turbulence Separation point Diff % Reattachment point Diff % Models DNS [13] 0.14 0.0 0.62 0.0 k- 0.13982 -0.1285 0.64112 3.4064 Realizable k- 0.13794 -1.4714 0.61984 -0.0258 RNG k- 0.14143 1.0214 0.63186 1.9129 Menter SST k- 0.13845 -1.1071 0.66998 8.0612 Launder Sharma k- 0.13647 -2.5214 0.70132 13.1161 Lam Bremhorst k- 0.13548 -3.2285 0.70067 13.0112 Nonlinear Shih k- 0.1419 1.3571 0.65021 4.87258 LES 0.14010 0.0714 0.62021 0.03387

4. CFD OpenFOAM
OpenFoam (Open Field Operation and Manipulation) is an open source computational fluid dynamics program produced by OpenCFD Ltd. Its origins come from the late 1980 at Imperial College (London) when a group of people decided to develop a powerful tool to be able to run flexible general simulations. It was released open source in 2004 under the GNU General Public License. OpenFoam is written in C++ and it is used an object oriented approach which makes the code to be understandable and permits the user to implement its own files in order to adapt it to each specific case. Basically, OpenFoam is a library used to create executable, known as applications, in order to solve the case the user is working with. There are two kinds of applications: solvers, that are to solve cases; and utilities, that are designed for data transformation. There is a variety of commercial CFD software available such as Fluent, Ansys CFX, ACE, as well as a wide range of suitable hardware and associated costs, depending on the complexity of the mesh and size of the calculations. Commercial CFD packages can cost up to about $20000 (US Dollars) per year for licenses, maintenance, and support. Complicated transient cases with fine meshes will require more powerful computer processors and RAM than simpler cases with rough meshes. A typical engineering workstation (i.e. 32 GB processing RAM with quad processors) at a cost of approximately $3000-$5000 (US Dollars), or a combination of several processors running in parallel, is probably the minimum investment needed to get started. Results presentation included the OpenFOAM for the CFD calculations with pisoFoam solver (Transient solver for incompressible flow), paraView for visualization, along with other useful scientific and mathematics related software. Calculations for this project were carried out for approximately one million cells.

used by Yoon et. al. [13]. Table (2) shows the comparison results with [13] according to the separation and reattachment points for case (a/) =0.05, (Lx=2 ) and Re=6760. The table shows reasonable agreement for the matching data, the best turbulence models for separation point are LES, standard k- , RNG k-, Menter SST k-, Realizable k-, Nonlinear Shih k-, Launder Sharma k-, Lam Bremhorst k-, respectively. While for reattachment point the best turbulence models are LES, Realizable k-, RNG k-, standard k- , Nonlinear Shih k, Menter SST k-, Lam Bremhorst k-, Launder Sharma k-, respectively. 5.2 Results Calculations were performed for several Reynolds numbers from a low value up to 10000. Here we present results for Re = 3000, 6000 and 10000. This set provides a representative sampling of the developing flow in a wavy passage in the regime where transition to an oscillatory state takes place. Fig. (2) shows the Axial Velocity profiles at Re=10000 , z/Lz=0.5 for different turbulence models at two locations (A) at x/Lx=0.542 (3rd divergent region) and, (B) x/L x=0.64 (3rd convergent region). In Fig. (2A) we can be seen the acceleration of the velocity magnitude in the center of the channel to developed the core flow and the position of reverse flow near the walls to developed the recirculating flow. The max. and min. axial velocity in the core flow occurred by using Lam Bremhorst k-, and standard k- turbulence models respectively. While the max. and min. axial reverse velocity occurred by using Launder Sharma k-, and standard k- turbulence models respectively. From the figure we deduction there are two vortices near the both wavy walls. Streamwise vortices appear near wavy wall produce the outward uid motion carrying the low speed uid lumps toward the high speed ow region and in opposite way the wall-ward uid motion feeding the high speed uid lumps toward the low speed ow region. These motions have a signicant effect on the momentum transfer around the vortices. These vortices are generated with larger population within the up-slope

5. Results and Discussion


5.1 Comparison with DNS data In order to validate the results the rst run was done with ow characteristics that are the same as those

ICEIT-2012

- 70 -

region. In Fig. (2B) the core flow are strong due to change in the area of the channel where the max. axial velocity happened by using Bremhorst k-, and Nonlinear Shih k- turbulence models respectively. Fig. (3) shows the Axial pressure profiles at Re=10000, y/Ly=0.5, and z/Lz=0.5 for different turbulence models. The large pressure drop occurred in the first wave due to change in area of the channel suddenly, after that the pressure drop is constant nearly in the other waves. The max. and min. pressure drop during the channel happened by using Nonlinear Shih k- and standard k- turbulence models respectively.
Standard k- Realizable k- RNG k- Lam Bremhorst k- Launder Sharma k- Non Linear KE Shih Menter SST k-

magnitude, omega and wall shear stress) at Re=3000. The values are the same nearly. The max. and min. values of these parameters for all turbulence models are show in table in red color. Table (4) represented the (x/) location of separation and reattachment points for (a/) =0.25, and Re=6000 in all waves region. Fig. (4) represents the transient results for Large eddy simulation case, (z/Lz)=0.5, and Re=6000. In this case we can see the growth of vortices with time moreover to the vortices movement in the channel. At first the vortices are begin in upper tip of wavy wall (time=32min) and then become more large from that in the previous time, where are moving in the axial direction till it go out of the channel or colloid with opposite wavy wall and finish. This sequence are periodical in all simulation until reach to steady state solution. The periodic and oscillatory cases of generated vortices are show in velocity component in y-direction moreover to the movement of vortices in the channel. Finally the Sub-grid eddy viscosity transient results are presents in the figure as shown in the right side.

Acknowledgments
I am very thankful Prof. Dr.-Ing. Moustafa AbdelMaksoud, head of the Fluid dynamics and ship theory department, Hamburg University of Technology, Germany, for his continuous support and for providing the computational facilities to carry out the present simulations.
A B

(A)

(B) Fig. (2) Axial velocity profiles at Re=10000 , z/Lz=0.5 for different turbulence models A. x/Lx=0.542 (3rd divergent region) B. x/Lx=0.64 (3rd convergent region) Standard k- Realizable k- RNG k- Lam Bremhorst k- Launder Sharma k- Non Linear KE Shih Menter SST k-

Fig. (3) Axial pressure profiles at Re=10000, y/Ly=0.5, and z/Lz=0.5 for different turbulence models.

Table (3) shows the comparison between turbulence models according to max. and min. values of flow properties (velocity vector, velocity components, kinetic energy, dissipation rate, Reynolds stress

References [1] Abad, J. D., & Garcia, M. H. (2009). Experiments in a high-amplitude Kinoshita meandering channe Implications of bend orientation on mean and turbulent. America Geophysical Union. [2] Constantinescu, G., Sukhodolov, A., and, McCoy, A. (2009). Mass exchange in a shallow channel flow series. Evironmental Fluid Mechanics Journal 9. [3] Hicks, F. E., Jin, Y. C., and, Stefler, P. M. (1990). Flow Near Sloped Bank in Curved Channel. Journal of Hydraulic Engineering. [4] OpenFOAM documentation. Programmers Guide - PG and Users Guide - UG, OpenCFD Limited (2011). [5] Pope, S. B. (2000). Turbulent Flows. Cambridge: University Press. [6] Shais, and, Punzman. Turbulence and Coherent Structures in Fluids, Plasmas and Nonlinear Media. [7] Zilker D.P., Cook G.W. and Hanratty T.J.: Influence of the amplitude of a solid wavy wall on a turbulent flow. Part 1. Non-separated flows, J. Fluid Mech., 82, 1977, 29-51. [8] Zilker D.P. and Hanratty T.J.: Influence of the amplitude of a solid wavy wall on a turbulent flow. Part 2. Separated flows, J. Fluid Mech.,90, 1979, 257-271. [9] Hudson J.D.: The effect of a wavy boundary on turbulent flow, Ph.D. Thesis, University of Illinois, Urbana, IL, 1993. [10] Hudson J.D., Dykhno L. and Hanratty T.J.:

ICEIT-2012

- 71 -

[11]

[12]

[13]

[14] [15]

Turbulence production in flow over a wavy wall, Exper. Fluids,20 , 1996, 257 Maass C. and Schumann U.: Direct numerical simulation of separated turbulent flow over wavy boundary, In: Hirschel E.H. (Ed.): Flow simulation with high performance computers, Notes on numerical fluid mechanics, 52 , 1996, 227-241. Cherukat P., Na Y., Hanratty T.J. and McLaughlin J.B.: Direct numerical simulation of a fully developed turbulent flow over a wavy wall, Theoret. Comput. Fluid Dynamics, 11, 1998, 109-134. Yoon H.S., El-Samni O.A., Huynh A.T., Chun H.H., Kim H.J., Pham A.H. and Park I.R.: Effect of wave amplitude on turbulent flow in a wavy channel by direct numerical simulation, Ocean Engineering, 36 , 2009, 697-707. Pierre S., Large eddy simulation for incompressible flows, An introduction, second edition, 2010. CFD Online.www.cfd-online.com/wiki/ Turbulence_intensity , accessed May 2012.

[16] [17] [18]

[19] [20] [21]

Hjertager, Bjrn H. Turbulence Theory and Modelling, Lecture Notes, Aalborg University Esbjerg, Denmark (2005). Hjertager, Bjrn H. Computational Analysis of Fluid Flow Processes, Lecture Notes, Aalborg University Esbjerg, Denmark (2007). Versteeg, H K; Malalasekera, W.An Introduction to Computational Fluid Dynamics, The Finite Volume Method, Second edition, Pearson Education Limited, Essex, England (2007). OpenFOAM discussion board. http://openfoam.cfd-online.com/cgi-bin/forum /discus.cgi , accessed May 2012. Wilcox D.C.: Turbulence Modeling for CFD, 2nd edition, DCW Industries, Inc., 1998. Menter F.R.: Two-equation eddy-viscosity turbulence modeling for engineering applications, AIAA Journal, 32 (8), 1994, 1598-1605.

1 2 3 4 5 6 7 8

Table (3) Comparison between turbulence models according to max. and min. values of flow properties at Re=3000. U Ux Uy Uz Turbulence k 2 2 2 3 2 Models (/) (/) (/) (/ ) ( / ) ( / ) (/ ) ) 4.0583 4.0581 1.3922 0.5893 0.5027 1375 0.5805 k- ---0.0000 -0.7827 -1.3931 -0.5903 0.0043 0.0671 0.0050 Realizable 4.3438 4.3438 1.4043 0.5698 0.4800 1294 0.5600 ---k- 0.0000 -0.8445 -1.4043 -0.5702 0.0000 0.0238 0.0000 4.2317 4.2316 1.4027 0.6085 0.4884 1319 0.5640 RNG k- ---0.0000 -0.8265 -1.4015 -0.6097 0.0033 0.0682 0.0039 Menter SST k4.2167 4.2163 1.3780 0.5543 0.2500 0.3000 1x105 --- 0.0000 -0.8673 -1.3760 -0.5549 0.0000 0.0000 0.770 Launder 4.2961 4.2960 1.3694 0.5741 0.7500 2143 0.8600 ---Sharma k- 0.0000 -0.8780 -1.3567 -0.5816 0.0000 0.0002 0.0000 Lam 4.3629 4.3628 1.3881 0.5564 0.1100 2345 0.0228 Bremhorst ---0.0000 -0.8860 -1.3877 -0.5554 0.0000 0.0120 0.0000 k- Nonlinear Shih 4.2424 4.2054 1.3566 0.5564 0.1400 2224 0.0264 ---k- 0.0000 -0.8860 -1.3443 -0.5554 0.0000 0.0370 0.0000 4.1422 4.3628 1.3881 0.5564 0.1100 2113 0.0228 LES ---0.0000 -0.8860 -1.3877 -0.5554 0.0000 0.0240 0.0000 Table (4) The (x/) location of separation and reattachment points for (a/)=0.25, and Re=6000.

x (/2 ) 0.0416 -0.1674 0.0408 -0.1651 0.0407 -0.1655 0.0421 -0.1520 0.0402 -0.1249 0.0425 -0.1502 0.0411 -0.1498 0.0421 -0.1502

A B C Turbulence Models 1 2 3 4 5 6 7 8 k- Realizable k- RNG k- Menter SST k- Launder Sharma k- Lam Bremhorst k- Nonlinear Shih k- LES Section A 1.063 1.464 1.140 1.421 1.115 1.433 1.077 1.468 1.045 1.394 1.055 1.414 1.043 1.409 1.072 1.467

D E Section C 2.864 3.596 2.899 3.576 2.768 3.566 2.888 3.599 2.793 3.511 2.725 3.525 2.713 3.527 2.871 3.592 Section D 3.896 4.583 3.903 4.577 3.867 4.580 3.892 4.588 3.866 4.590 3.879 4.593 3.882 4.588 3.893 4.585 Section E 4.882 5.805 4.890 5.797 4.888 5.801 4.885 5.808 4.891 5.794 4.893 5.789 4.889 5.793 4.880 5.809

Section B 1.878 2.578 1.902 2.522 1.933 2.534 1.888 2.588 1.765 2.501 1.783 2.522 1.780 2.528 1.894 2.579

ICEIT-2012

- 72 -

Time (min )

Velocity Magnitude
(/)

Velocity component in ydirection


(/)

Sub-grid eddy viscosity


(2 / 2 )

32

58

95

191

436

500

Fig. (4) Transient results for LES case, z/Lz=0.5, and Re=6000.

ICEIT-2012

- 73 -

You might also like