Вы находитесь на странице: 1из 36

2H A?

J '
-L= K=JE B 6KH>K A ?A B . M 5AF=H=JE =J = 5
-HE? .KH>

@A I B H 2HA@E?JE JD 5KHB=?A

4AF HJ E 5?EA JE ? +
K A '

= A 0=H K  0A HE? E II

FKJE C )@L= ?A@ + KHIA

24

-+6 4-2 46

1 IJEJKJE A B H E B H =JE IJA

CE

Abstract This project was provided by the Swedish Defence Research Agency, FOI. The task is to test several RANS (Reynolds-averaged Navier-Stokes) models on a generic case, constructed for ow separation at a smooth surface. This is of very high importance for applications in the auto industry, ship construction and for aeronautics. The models tested are implemented in the open source CFD (Computational Fluid Dynamics)-program, OpenFOAM. OpenFOAM uses the nite volume method and the simple algorithm as solution procedure. The main ow features evaluated in this project is the shape, position and size of the ow separation. Most of the models that we have tested have problems describing the complex dynamics of ow separation in this particular case.

Contents
1 Introduction 1.1 Problem Formulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.2 Previous Research . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Theory 2.1 The Navier-Stokes equations . . . . . . . . . . . 2.2 Numerical solution method . . . . . . . . . . . 2.2.1 The Finite Volume Method (FVM) . . . 2.2.2 The solution algorithm SIMPLE . . . . 2.3 Turbulent Flows . . . . . . . . . . . . . . . . . 2.3.1 Direct numerical simulation (DNS) . . . 2.3.2 Large Eddy Simulation (LES) . . . . . . 2.3.3 Reynolds-averaged Navier-Stokes models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . (RANS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 4 7 7 7 8 8 8 8 9 9 9 12 12 12 13 13 15 15 15 16 17 18 19 20 21 22 23 28 29 34

3 Simulation Parameters 3.1 OpenFOAM implementation . . . . . . . . . . . 3.1.1 Input data for a computational case . . . 3.1.2 Our case . . . . . . . . . . . . . . . . . . . 3.2 Boundary Conditions for the turbulent quantities 4 Results 4.1 Short description of the physical experiment 4.2 Results from our simulations . . . . . . . . 4.3 Global behaviour of the models tested . . . 4.3.1 The k model . . . . . . . . . . . 4.3.2 The Nonlinear k Shih model . . 4.3.3 The RNG k model . . . . . . . . 4.3.4 The k SST model . . . . . . . . 4.3.5 The realizable k model . . . . . . 4.3.6 The Spalart Allmaras model . . . . 4.4 Comparison to experimental and LES data 5 Conclusions A Examples of OpenFOAM case-les B Technical specication of the OS cluster . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

List of Figures
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 Computational domain . . . . . . . . . . . . . . . . Inlet velocity prole . . . . . . . . . . . . . . . . . The computational grid . . . . . . . . . . . . . . . Case directory in OpenFOAM. . . . . . . . . . . . One type of inlet boundary conditions for k and . Results from the k model. . . . . . . . . . . . . Results from the k . . . . . . . . . . . . . . . . . Results from the Nonlinear k Shih model. . . . Results from the Nonlinear k Shih model. . . . Results from the RNG k model. . . . . . . . . Results from the RNG k model. . . . . . . . . Results from the k SST model. . . . . . . . . . Results from the k SST model. . . . . . . . . . Results from the realizable k model. . . . . . . Results from the realizable k model. . . . . . . Results from the Spalart Allmaras model. . . . . . Results from the Spalart Allmaras model. . . . . . Comparison with LDV experiment. . . . . . . . . . Comparison with LDV experiment. . . . . . . . . . Comparison with LDV experiment. . . . . . . . . . Comparison with LDV experiment and LES data. . Comparison with LDV experiment and LES data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 5 6 12 14 17 17 18 18 19 19 20 20 21 21 22 22 23 24 25 26 27

List of Tables
1 2 3 4 Inlet conditions for k and . . . . . . . . . . . . . . . . . Table of working turbulence models . . . . . . . . . . . Table of turbulence models that encountered problems. . Table of separation and re-attachment points. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 15 16 23

Introduction

The computational prediction of ow separation of a turbulent boundary layer from a smoothed surface is a process of primary concern. The uid ow becomes detached from the surface and instead takes the form of eddies and vortices. Despite the simple shape (see gure 1) of the hill of which the ow separation occurs, it is a challenging computational problem and experiments indicate that the ow in the recirculation zone is complex and strongly time-dependent. In the simulations described in this report we apply turbulence models based on RANS (Reynolds-average Navier-Stokes) equations. The domain that the ow have been simulated in is constructed to be very smooth without edges and has no real life application. However, the physical phenomena that arise is a subject of interest for many engineering components and systems. Streamlined car bodies, low-pressure turbine blades and highly loaded aircraft wings are some examples of where ow separation can have signicant inuence of the ability of the device in question to perform eectively. The main objective is to evaluate the tested RANS-models prediction of the ow over the hill. We mainly evaluate the results with respect to the location and shape of the separation zone and the velocity distribution in the near wake of the wall. Our results will be compared to results from experiments made by Byun and Simpson [9] and LES simulations made by Persson et al. [7]

1.1

Problem Formulation

In order to simulate the turbulent ow and separation we have used the open source CFDprogram OpenFOAM [3]. We have only used RANS turbulence models and OpenFOAM has a variety of such models implemented. Since all of the 14 RANS turbulence models have been tested, no extensive work have been done to models that in some way encountered problems to converge. The geometry is a three-dimensional axisymmetric hill placed on the oor of a wind tunnel. The computational domain is given in gure 1.

Figure 1: Computational domain seen from the inlet boundary. 4

The shape of the hill is dened by y (r ) 1 r r = J0 ()I0 I0 ()J0 H 6.04844 a a (1)

where = 3.1926, a = 2H . H = 0.078 m, is the height of the hill,a is the radius of the circular base of the hill and r2 = x2 + z 2 . J0 and I0 are the Bessel function of the rst kind and the modied Bessel function of the rst kind, respectively. A Cartesian coordinate system is used for the simulations, and in the domain coordinates (x, y, z ) in this report also denoted by (x1 , x2 , x3 ) the velocity eld is U = (ux , uy , uz ) also denoted by U = (u1 , u2 , u3 ). The x-axis is parallel to the centerline of the domain and pointing downstream. The y -axis is normal to the oor, pointing upward. The origin is xed at the center of the bump, with y = 0 corresponding to the wind tunnel oor. The top and bottom patch seen in gure 1 are set to be wall boundaries. This implies the use of no slip conditions, i.e. U = 0 at these boundaries. The left, right and outlet patches are used to limit the computational domain. Therefore we will use homogeneous Neumann boundary conditions for these boundaries, hence U n = 0. The inlet velocity has a maximum ow velocity of 27.5 m/s. The inlet velocity is not uniformly distributed, it is instead a prole with lower velocities near the top and bottom wall and higher in the middle of the inlet patch corresponding to turbulent boundary layers of approximate thickness of H/2. The inlet velocity has only one non-zero component, that is in the x-direction. The complete inlet prole can be seen in gure 2.

Figure 2: Velocity prole for the inlet patch of the computational domain The Reynolds number is a dimensionless quantity, dened as Re = UL ,

and it represents the relation between inertial and viscous forces. Here U is a characteristic velocity, L is a characteristic length and is the kinematic viscosity. The Reynolds number for 5

our case, based on the maximum inlet velocity of 27.5 m/s, the height of the hill, H = 0.078 m and the kinematic viscosity of air = 1.65 105 m2 /s is Re = 1.3 105 . As for computational mesh we where given a mesh with about one million computational cells from FOI [7]. In the simulations made by FOI, a mesh with about 4 million cells was primary used. The mesh used in our simulations have the same distribution of cells as that one. The mesh is a structured mesh that have been rened near the wall boundaries to better resolve the boundary layers and the ow near this regions. The number of cells in x, y and z -direction is 69 119 119 respectively. The y + value is related to the distance between a boundary and the nearest computational point. The y + value for our mesh is in the range between 1.44 and 2.25, depending on which patch is considered. A wireframe plot of the mesh can be seen in gure 3. On this computational domain the incompressible Reynolds-averaged Navier-Stokes (RANS) equations have been solved together with the dierent turbulence model. The Navier-Stokes equations will be briey discussed in section 2.1, the RANS equations and turbulence models will be described in section 2.3.3. All the computations have been carried out in OpenFOAM. OpenFOAM uses the Finite Volume Method and we have chosen the SIMPLE algorithm as solution procedure. This will be discussed in section 2.2.1 and 2.2.2 respectively.

(a)

(b)

(c)

Figure 3: (a) The computational grid showing the cells on the surface of the hill and in the plane z = 0. (b) Zoomed in at the hill, notice the rened mesh near the hill boundary. (c) Mesh seen from the side.

1.2

Previous Research

This particular case has been extensively investigated by a number of computational research groups such as Garcia-Villalba et al. [4], Krajnovi c [2] and Person et al. [7]. Since most of the previous research and the references therein for this case have relied on other turbulence models than RANS, such as DES (Detached Eddy Simulation), LES (Large Eddy Simulation) and hybrid LES-RANS, our objective is to compare how the dierent implemented RANS models in OpenFOAM performs compared to the other more computational costly models. In comparison we also have LDV (Laser doppler velocity) measurements for this case conducted by Byun and Simpson [9].

2
2.1

Theory
The Navier-Stokes equations

The fundamental basis for uid dynamics are the Navier-Stokes equations. The uid is assumed to be described as a continuum and the governing equations of the physics of uid dynamics are that mass, momentum and energy are conserved. Derivation begins with application of the conservation of momentum, using control volumes and Reynolds transport theorem. The incompressible form of N-S equations and the conservation of mass is described as ( dU + U U) = p + 2 U dt U=0 (2) (3)

where U is the ow velocity, p is the pressure, viscosity and is the density. See Pope [8] for a complete derivation of the Navier-Stokes equations.

2.2
2.2.1

Numerical solution method


The Finite Volume Method (FVM)

The solution domain is subdivided into a nite number of small control volumes (polyhedra) and the conservation equations are applied to each control volume. FVM uses the integral form of a general convection-diusion equation for a quantity as its starting point which is described as d dt dV +
V S

u ndS =
S

() ndS +
V

qdV

(4)

where V is a control volume, S its bounding surface, n unit normal, diusion coecient and q some external term. The i:th component of the momentum equation is of the same form as equation 4 with = ui . The centroid of each control volume is assigned to be the computational node at which the variable values are to be calculated. Interpolation is used to express variable values at the control volume surface in terms of the centroid nodal values. Surface and volume integrals are approximated using suitable discretization methods. As a result, one obtains an algebraic equation for each control volume, in which a number of neighbour nodal values appear. One advantage with FVM is that it can handle complex geometries, however one disadvantage compared to other computational methods is that methods of higher order than 2nd, are more dicult to develop in 3D. A more detailed description of the Finite Volume Method can be found in chapter 4 of [1]. 2.2.2 The solution algorithm SIMPLE

When the RANS approach for turbulence is used, a stationary problem arises. RANS and many other methods for steady problems in computational uid dynamics can be regarded as unsteady problems until a steady state is reached. If an implicit method is used in time, the discretized momentum equations at the new time step are non-linear. Due to this and that the underlying dierential equations are coupled, the equations system resulting from discretization cannot be solved directly. Iterative solution methods are the only choice. The momentum equations are usually solved sequentially for each component. The pressure used in each iteration is obtained from the previous time step and therefore the computed velocities normally do not satisfy the discrete continuity equation. In order for the velocities to fulll this equation one have to modify the pressure eld. This can be done by solving a discrete Poisson equation for the pressure. After solving this new equation for the pressure the nal velocity eld at the new iteration is calculated. This new velocity eld satises the continuity equation, but the velocity and pressure elds do not satisfy the momentum equations. Therefore, the procedure described above is iterated until a velocity eld is obtained that satisfy both the momentum and continuity equations. Methods of this kind which rst construct velocity elds that do not satisfy the continuity equation and then correct them are known as projection methods. The SIMPLE algorithm is such a method, and it is the solving procedure used in OpenFOAM for our computations.

2.3

Turbulent Flows

Laminar ow changes into turbulent ow when the Reynolds Number becomes larger than a critical value. This value is dependent of the ow, thus the geometry of the domain. As mentioned in section 1.1 the Reynolds number for our case is Re = 1.3 105 . Since this indicate that turbulence will occur we have to account for the turbulence in some way. 8

Turbulent ows are highly unsteady. The direction of the velocity eld uctuates rapidly in all three spatial dimensions. These ows (are also vortical) and uctuate on a broad range of time and length scales. Therefore it can be very hard to correctly simulate these types of ows. 2.3.1 Direct numerical simulation (DNS)

The most natural and straight forward approach to turbulence simulations is to solve the NavierStokes equations without any approximation of the turbulence other than numerical discretizations. These type of simulations are called Direct Numerical Simulation (DNS). In such simulations all the motions contained in the ows are resolved. In order to capture the structures of the turbulence one have to use extremely ne grids and time steps for these type of simulations. Due to this DNS is very costly from a computational point of view and this method is only useful for ows with low Reynolds numbers. The applications of DNS is therefore limited to turbulence research and results from DNS simulations can be important to verify results from other turbulence models. 2.3.2 Large Eddy Simulation (LES)

A simulation that is less computationally costly is Large Eddy Simulation (LES). This type of simulation uses the fact that the large scale motions are generally more energetic than the small scale ones. These large eddies are more eective transporters of the conserved properties and therefore LES threats the large eddies more exactly than the small scale ones. LES is preferred over DNS when the Reynolds number is too high or the computational domain is too complicated. 2.3.3 Reynolds-averaged Navier-Stokes models (RANS)

Both DNS and LES-modelling give a detailed description of turbulent ows. If one is not interested in that much details of the turbulence, a Reynolds-Averaged Navier-Stokes model (RANSmodel) can be a good choice. This type of model is much less costly compared to both DNS and LES. In the RANS approach to turbulence, all of the unsteadiness in the ow is averaged out and regarded as part of the turbulence. When averaging, the non-linearity of the Navier-Stokes equations gives rise to terms that must be modeled. These terms can be modeled dierently leading to various types of RANS models, each behaving dierently depending on the Reynolds number of the ow, the computational domain etc. As mentioned above, the unsteadiness of the ow is averaged out. The ow variable, in this example it is one component of the velocity, is divided into two terms, one time-averaged value and the uctuation about that value: ui (xi , t) = ui (xi ) + ui (xi , t) where ui (xi ) = lim 1 T T
T

ui (xi , t)dt
0

xi are the spatial coordinates, also known as x, y and z . T is the averaging interval and must be large compared to the typical time scale of the uctuations. If the ow is unsteady, time averaging cannot be used and it has to be replaced with ensemble averaging. The concept of this is to imagine a set of ows in which all the variables that can be 9

controlled (energy, boundary conditions etc.) are identical but the initial conditions are generated randomly. This will give ows that dier considerably from the others. An average over a large set of such ows is an ensemble average. In mathematical form written as ui (xi , t) = 1 N
N

uni (xi , t)
n=1

(5)

where N is the number of members of the ensemble. The term Reynolds averaging refers to any of the processes above and applying it to all the variables in the Navier-Stokes equations yields the Reynolds-averaged Navier-Stokes (RANS) equations which are written as p (ui ) + + ui uj + ui uj = t xj xi xj ui =0 xi uj ui + xj xi (6)

(7)

In the equations above, is the density of the uid and is the dynamic viscosity of the uid. The equation for the mean of a scalar quantity, temperature for example, can be written as () + uj + uj t xj = xj xj . (8)

As mentioned before the RANS equations give rise to a stationary problem. The time derivatives in equation 6 and 8 are used to advance the equations in an imaginary time to reach steady state. The RANS equations contain terms such as ui uj called the Reynolds stresses and uj which is the turbulent scalar ux. The presence of these new quantities in the conservation equations means that they contain more variables than there are equations, The system of equations is not closed. Therefore one have to introduce approximations for the Reynolds stresses and the turbulent scalar ux. The approximations introduced are called turbulence models. To model the Reynolds stress the eddy-viscosity model is used, which is written as ui uj = t ui uj + xj xi 2 + ij k 3 (9)

where the eddy-diusion model is used for the turbulent scalar ux uj = t The turbulent kinetic energy k is described by k= 1 u u + uy uy + uz uz 2 x x (11) . xj (10)

and t is the eddy viscosity and will be dened later. The exact equation for the turbulent kinetic energy k , is given by (k ) (uj k ) + = t xj xj k xj xj u ui ui i . uj ui ui + p uj ui uj 2 xj xk xk 10

(12)

The terms on the left-hand side of this equation and the rst term on the right-hand side need no modelling. The second term on the right-hand side represents the turbulent diusion of kinetic energy and is modelled according to t k uj ui ui 2 k xj (13)

where k is the turbulent Prandtl number whose value is approximately 1. The third term in equation 12 represents the rate of production of turbulent kinetic energy by the mean ow. Using the eddy-viscosity model for the Reynolds stress, this term is modelled to ui uj ui t xj uj ui + xj xi ui . xj (14)

The equation for the dissipation of the kinetic energy, , in it most commonly used form, is written as ( ) (uj ) + = C 1 Pk C t xj k In this model, the eddy viscosity is expressed as t = C k2 . (16)
2 2

xj

t xj

(15)

Equation 15 for epsilon together with equation 12 is called the k model and is a commonly used RANS-model for turbulent ows. This model contains ve parameters and the most commonly used values are C = 0.09 C
1

= 1.44

= 1.92

k = 1.0

= 1 .3

(17)

The most important dierence in using a turbulence model like the k model compared to just using the ordinary laminar equations is that two new equations have to be solved. One also have to replace the ordinary Navier-Stokes equations with the RANS-equations derived earlier. One other thing that should be mentioned is that because the time scales associated with turbulence are much shorter than those connected to the mean ow. Therefore the equations connected to any turbulence model are much stier than the laminar equations. This has to be taken in to consideration in the numerical solution procedure. Near the physical walls of a computational domain the proles of the turbulent kinetic energy and its dissipation show a more signicant peak than the mean velocity prole. One way to resolve the turbulent quantities near the wall is to use a ner grid. This will of course generate more computational points and therefore be more computational costly. One can also use so called wall functions for the velocity prole near walls. When these wall functions are used for the velocity, the normal derivative of k at the walls is assumed to be zero, i.e. k = 0. n (18)

At inow boundaries it is quite hard to know what values to set for k and . One common way for k at inlets are to set some small enough value times the square of the mean inlet velocity of the ow. To set the proper condition for one can use an approximation, written as k 3 /2 L (19)

11

where L is the characteristic length o the ow. There are several other two-equation models that try to describe the turbulence. Many of them are based on the k model described above. Such models are the k model, the RNG k model and the Nonlinear k Shih model. They are in general more complicated and contain more parameters than the k model. There are also one-equation models like the Spalart Allmaras model. This model solves a transport equation for a viscosity-like variable . The last family of models that can be used to model the turbulence and are used together with the RANS equations are the Reynolds stress models. The assumption about the eddyviscosity according to equation (9) is often a valid approximation for two dimensional problems. For three-dimensional ows this approximation is not always accurate enough, since the eddyviscosity may become a tensor quantity. One way to model this is to have a dynamic equation for the Reynolds stress tensor itself. These equations can be derived from the Navier-Stokes equations.

3
3.1

Simulation Parameters
OpenFOAM implementation

Open Field Operation and Manipulation (OpenFOAM) [6] Computational uidmechanics toolbox is an open source program that can simulate a variety of physics, mainly uid ows. The program is based on nite volume methods and is an object oriented C++ program consisting of modules that can be used to create a desired setup for a solver. The program also comes with tools for both pre- and post-processing of the solution. 3.1.1 Input data for a computational case

To use OpenFOAM a case must be set up, the case is basically a le structure that contains all the data that the program needs to process the problem. The picture below shows the le structure of an OpenFOAM case. To begin with, the case must contain mesh-les that the program can process to obtain a domain for the solution. Further more, the case must also contain les that species boundary conditions, solvers, time to start, stop and step, models to use and some more case specic data. When building the case the user has great freedom of choice regarding what solvers, preconditioners etc to use.

Figure 4: Case directory in OpenFOAM. The three directories that the case consists of are: system, constant and time directories. The system directory is for setting solution procedure parameters and must contain at least 12

three les. The controlDict, fvScheme and fvSolution. The constant directory contains the mesh information and specied physical properties of the domain. The time directories contain the initial values and further the solution over the domain.(for all the time steps that the user has specied to be written to le.) [5] 3.1.2 Our case

The parameters, preconditioners and solvers used in the simulations are specied in some les that are shortly be presented le by le below. Detailed examples of the structure of these les can be found in appendix A. controlDict: In controlDict the solver is specied and in all of the simulations presented, simpleFoam is used as the solver. SimpleFoam is a steady state solver for incompressible, turbulent ow of non-Newtonian uids, and it uses the solution algorithm SIMPLE described earlier in section 2.2.2. fvSolution: To begin with, in the fvSolution le all solvers for the dierent parts of the equation have been specied. For solving the pressure, the preconditioned conjugate gradient method is used with diagonal incomplete Cholesky preconditioner. For the velocity and turbulence terms the preconditioned biconjugate gradient method is used, where diagonal incomplete LUfactorization is the preconditioner. Relaxation factors determine the convergence rate and are set for all quantities. The solution from the previous time iteration is multiplied with the relaxation factor before being employed in the current iteration. Lower relaxation factors are more likely to grant convergence but lead to longer computational time. Higher factor could speed up the process, but might also lead to divergence. fvSchemes: In the fvSchemes les the schemes for discretizing dierent types of terms are d specied, and for the dt terms steady state solver is used. For gradient terms Gauss linear is being used, divergence terms are being discretized using Gauss linear or Gauss upwind and laplacian terms are being discretized with Gauss linear corrected and interpolation linear scheme. RASproperties: RASproperties le is for specication of the turbulence model and the parameters included in the specied model. Also wall function coecients are specied in this le.

3.2

Boundary Conditions for the turbulent quantities

All of the turbulence models that we have used except two (Spalart Allmaras and k SST), use the turbulent kinetic energy, k , and its dissipation, , to describe the turbulence. The boundary conditions for k and are set to a constant value on the inlet patch. For k the value is 0.756 m2 /s2 where we have used 27.5 m/s as reference velocity and computed the boundary condition according to section 2.3.3. The value for is set to 1.08 m2 /s3 at the inlet, which is computed from the k inlet value according to equation 19. We used one tenth of the width of the domain as the characteristic length to compute the epsilon inlet value. This setup is the type 1 setup for the inlet conditions. For all the other boundary patches, Neumann boundary conditions were used. To investigate the sensitivity of the ow to inlet turbulence, we also tried this model with four times higher and four times lower values of k , and the value of according to equation 19 13

Types of inlet conditions for k and Turbulent variable type 1 type 2 type 3 type 4 k [m2 /s2 ] 0.756 3.024 0.189 non uniform prole, see gure 5 a [m2 /s3 ] 1.08 8.64 0.135 non uniform prole, see gure 5 b Table 1: Table of the four types of inlet condition that have been used.

resulting from this new k value. These are the type 2 and type 3 setups and were only used for the k model. A fourth setup for the inlet values of k and that was not constant and hopefully more physical when modelling the turbulent boundary layer upstream of the hill, was also tried. To achieve this we ran a k simulation in the channel ow environment without the hill. After convergence to steady state we used a plane parallel to the inlet, but inside the domain, with cell values of k and epsilon. The distribution of k and for this plane can be seen in gure 5. These inlet conditions were used for the k model, the Non linear k Shih model and the realizable k model. This setup is known as the type 4 inlet condition. For an overview of the types of inlet conditions, see table 1. As for the k SST model it uses identical boundary conditions for k as the k model. The inlet boundary condition for is simply = k . The Spalart Allmaras model, which is a one equation model as mentioned in section 2.3.3, has only one turbulent quantity . The boundary condition for at the inlet boundary was set to 3 105 .
k [m2/s2] 7 18000 16000 14000 5 12000 4 10000 8000 6000 2 4000 1 2000 0 0 0.05 0.1 y 0.15 0.2 0.25 0 0.05 0.1 y 0.15 0.2 0.25 epsilon [m2/s3]

(a)

(b)

Figure 5: Inlet boundary conditions according to type 4. (a) Distribution of k at inlet. (b) Distribution of at inlet.

14

4
4.1

Results
Short description of the physical experiment

Results from the LDV measurements by Byun and Simpson [9] states that there is no separation in front of the bump but that the ow decelerates there and then accelerate until the top of the bump. The mean ow on the lee side is closly symmetric around the centerline and complex vortical separation occurs downstream from the top and merge into large-scale turbulent eddies with two large streamwise vorticies. The ow along the streamwise centerline at x/H = 3.63 is a downwashing reattachment ow. The LDV experiment shows, with resulting velocity vectors in the plane of z/H = 0, that the mean location of separation is at x/H = 0.96. A more detailed description of the results from the LDV experiment and comparison with our results is discussed in 4.4.

4.2

Results from our simulations

All simulations of the dierent turbulence models have been conducted on the UPPMAX (Uppsala Multidisciplinary Center for Advanced Computational Science) cluster called Os. A detailed list of the technical specications of the Os cluster can be seen in appendix B. The wall clock time for performing a simulation on 4 cores for 10 time-steps was 3 min and 44 seconds. The models that converge to a stationary solution are shown in table 2. Notice that even the simplest k model needed almost 3000 time-steps ( about 18 hours 40 minutes of wall-clock time using 4 cores ) to converge. Keep in mind that the size of the time step is of no importance since a steady state solver was used. Turbulence Model kEpsilon RNGkEpsilon NonlinearKEShih SpalartAllmaras kOmegaSST Description Standard k model with wall functions RNG k model with wall functions Non-linear Shih k model with wall functions Spalart-Allmaras 1-eqn mixinglength model for external ows k SST two-equation eddyviscosity model with wall functions Realizable k model with wall functions Comments Convergence reached after approximately 3000 time-steps. Convergence reached after approximately 3000 time-steps. Convergence reached after approximately 11 000 time-steps. Convergence reached after approximately 10 000 time-steps. Convergence reached after approximately 7 000 time-steps. convergence reached after approximately 17 000 time-steps.

realizablekEps

Table 2: Table of working turbulence models

15

Turbulence Model LienCubicKE QZeta

Description Lien cubic k model with wall functions q model without wall functions Launder-Sharma low-Re k model without wall functions

Comments Unable to reach convergence Solution did converge though the result was inconsistent with the physical solution. Unable to reach convergence after 30 000 time-steps (no dierence in residuals for last 10 000 time-steps) Solution starts to diverge after approximately 1000 time-steps Solution start to diverge after approximately 800 time-steps Solution starts to diverge after approximately 40 time-steps Solution starts to diverge after approximately 20 time-steps

LaunderSharmaKE

LamBremhorstKE LienLeschzinerLowRE LRR LaunderGibsonRSTM

Lam-Bremhorst low-Re k model without wall functions Lien-Leschziner low-Re k model without wall functions Launder-Reece-Rodi Reynolds stress model with wall functions Launder-Gibson Reynolds stress model with wall-reection terms and wall functions

Table 3: Table of turbulence models for which the simulation encountered problems, preventing it to produce a converged, steady solution.

The models that in any way failed to give accurate results are shown in table 3. Recall that the main objective was to try as many RANS turbulence models as possible for this particular case. The time frame and the priorities of the project excluded the possibility to more closely investigate models for which problems were encountered. It is quite possible that with an extra eort, the turbulence models in table 3 may work for this case as well. The k types of models that failed to converge were tested with more suitable under relaxation factors and dierent types of inlet boundary conditions without success. The Reynolds stress models that diverged early in the simulations were tested numerous ways. We tried running a k method rst, start the simlutation after 1000 time-steps with the Reynolds stress models without success. We also tried suitable relaxation factors which also did not make any dierence either.

4.3

Global behaviour of the models tested

All of the models that converged capture the magnitude of the velocity quite reasonably compared to the physical solution. Separation of the ow is found in all models except the k model. Generally the separation region is too large compared to the physical solution, the start of the separation is however reasonably consistent with the physical solution. In all of the cases the motion of the turbulent eddies is incorrectly resolved, such as the ow direction and the magnitude of this ow. Near the centerline two large eddies appear which should not be there. A more detailed description of the solutions computed with the models in table 2 is listed below and comparisons to the LDV measurements and LES data are found in section 4.4.

16

4.3.1

The k

model

The rst model that we tried for our domain was the basic k model. It is often used as rst model to test with. The result from this model was not accurate, the simulated ow was not separated which is shown in gure 6 and 7 , and no eddies or vortices were captured. The result from the simulation that used the inlet setup 2 and setup 3 did not dier substantially from the result with inlet conditions according to the rst setup described in 3.2. When we used setup 4 for the inlet conditions we saw only very minor dierences in the solution compared to the two other inlet setups for this model. Since the dierence was none or very small with these conditions, no results in form of graphs will be presented.

(a)

(b)

Figure 6: (a) The magnitude of the velocity at z = 0. (b) The velocity eld in the wake on the leeward side of the hill. Observe that there is no recirculation or separation.

(a)

(b)

Figure 7: (a) The turbulent kinetic energy k , at z = 0. Compared to other models the k model produces a much more spread out prole of this quantity. (b) Streamlines of the velocity in x-direction through the line from [0.125 0.02 0.15] to [0.125 0.02 -0.15].

17

4.3.2

The Nonlinear k

Shih model

The results of this model dier from the results from other models. It was tested both with inlet conditions accordning to setup 1, the same as the rest of the models, and also with setup 4. As seen in gure 9, both cases gave unrealistic results, with dierent asymmetric solutions and occurrence of only one large vortex either to the right or to the left of the center line downstream of the hill. The results in both cases can be considered bad compared to the physical solution and the LES-simulation. It is however an interesting result that this turbulence model supports an asymmetric solution (and its mirror on the centre plane, of course).

(a)

(b)

Figure 8: (a) The magnitude of the velocity at z = 0. (b) The velocity eld in the wake on the leeward side of the hill.

(a)

(b)

Figure 9: The streamlines from this model are completely dierent from other models that were tested. (a) Streamlines of the velocity in x-direction through the line from [0.125 0.02 0.15] to [0.125 0.02 -0.15]. (b) Streamlines of the velocity in x-direction when using inlet setup 4. through the line from [0.125 0.02 0.15] to [0.125 0.02 -0.15].

18

4.3.3

The RNG k

model

This model was used with inlet conditions according to setup 1 and setup 4 but converged only for setup 1! As seen in gure 10 (a), the ow layer near the bottom of the domain decelerates before the hill and then accelerates on the top to nally decelerate again on the leeward side of the hill. The ow separates around x/H 0.96 and is re-attached around x/H 2.12. The separation and re-attachment can be seen in gure 10 (b). Two small and two bigger vortices develop downhill of the hill in the positive x-direction. This is shown in gure 11 (a). The turbulent kinetic energy is shown in gure 11 (b). As expected more turbulent kinetic energy appears in the separation zone where the eddies are as greatest.

(a)

(b)

Figure 10: (a) The magnitude of the velocity at z = 0. (b) The velocity eld in the wake on the leeward side of the hill.

(a)

(b)

Figure 11: (a) Streamlines of the velocity in x-direction through the line from [0.125 0.02 0.15] to [0.125 0.02 -0.15]. (b) The turbulent kinetic energy k , at z=0.

19

4.3.4

The k SST model

This model was used with inlet conditions according to setup 1 and setup 4 but converged only for setup 1! The model managed to clearly capture the ow separation. The ow separation occurs around x/H 0.71 and is re-attached around x/H 2.24. This can be seen in gure 12 (a).Two vortices on the leeward side of the hill occur and they are almost symmetrically placed around the plane z = 0. This is shown in gure 13 (a).

(a)

(b)

Figure 12: (a) The magnitude of the velocity at z =0. (b) The velocity eld in the wake on the leeward side of the hill.

(a)

(b)

Figure 13: (a) Streamlines of the velocity in x-direction through the line from [0.125 0.02 0.15] to [0.125 0.02 -0.15]. (b) The turbulent kinetic energy k , at z =0.

20

4.3.5

The realizable k

model

This model was used with inlet conditions according to setup 1 and setup 4 and converged for both setups. The results from the two inlet setups were almost identical and only the results from setup 1 will be presented in the graphs. Similar to the k SST model the realizable k model also managed to capture the ow separation. The ow separation occurs at x/H 0.64 and is re-attached around x/H 2.24. This can be seen in gure 14 (a).Two vortices on the leeward side of the hill turn up and they are almost symmetrically placed around the plane z = 0. This is shown in gure 15 (a).

(a)

(b)

Figure 14: (a) The magnitude of the velocity at z =0. (b) The velocity eld in the wake on the leeward side of the hill.

(a)

(b)

Figure 15: (a) Streamlines of the velocity in x-direction through the line from [0.125 0.02 0.15] to [0.125 0.02 -0.15]. (b) The turbulent kinetic energy k , at z =0.

21

4.3.6

The Spalart Allmaras model

This model was only used with inlet setup 1. The result of this model is a bit dierent compared to the other turbulence models that managed to capture the ow separation. In the plane z = 0, no separation is appearing and the wake is divided in two symmetrically placed separation bubbles. This is shown in gure 16. In dierence to all other models this model generates four vortices, two at each side of the centerplane, at the leeward side of the hill.

(a)

(b)

Figure 16: (a) The velocity eld in the wake on the lee side of the hill. Notice that no separation of the ow is found at this cut. (b) z =0.02

(a)

(b)

Figure 17: (a) Streamlines of the velocity in x-direction through the line from [0.125 0.02 0.15] to [0.125 0.02 -0.15]. Notice that this model captures 4 vortices at the lee side of the hill. (b) The magnitude of the velocity at z =0.

22

4.4

Comparison to experimental and LES data

Results of the LDV investigations of the ow around the hill where reported by Byun and Simpson 2005 [9]. Their result for the velocity eld lee ward of the hill in the z/H = 0 plane is shown in gure 18. The ow separates at x/H = 0.96. Note that the k model did not have any ow separation and the Non linear k Shih model showed obvious strange behaviour and therefore these models have not been included in the comparison section. The Spalart Allmaras model shows no separation at all for the plane z/H = 0, however separation is found in the plane z/H = 0.02 at x/H = 0.90. Model LDV, gure 18 (a) RNG k , gure 10 (b) Realizable k , gure 14 (b) k-Omega SST, gure 12 (b) Separation point x/H = 0.96 x/H = 0.96 x/H = 0.64 x/H = 0.71 Re-attachment point x/H 2.0 x/H = 2.12 x/H = 2.24 x/H = 2.24

Table 4: Table of separation and re-attachment points for dierent models and LDV experiment. Note that no obvious re-attachment point is found in the LDV-experiment. As we can see from the comparison in table 4 our results in the same plane show that the RNG k model have similar separation region. The realizable k and k model separate the ow to early at x/H = 0.64 and x/H = 0.71 respectively.

(a)

(b)

Figure 18: (a) Velocity eld from LDV measurements in the plane z = 0. (b) Contours of the magnitude of the velocity U , normalized with reference velocity Uref = 27.5 m/s and the vector eld of Uy and Uz in the plane x/H = 3.63 for the LDV measurements. Note that the view is from behind the hill. Plots made by Byun and Simpson [9] If we look at the results from the LDV-experiment in the y, z -plane with x/H = 3.63, there are two vortices centred at z/H 1.35. This can be seen in gure 18 b. All of our most successful models fail to predict this result, however some similar results can be found from a couple of our RANS models. The Spalart Allmaras model produces two large vortices centred at z/H 0.45, and two very small ones at z/H 1.92. This is shown in gure 20 a.

23

(a)

(b)

Figure 19: (a) Surface plot of the magnitude of velocity U and the transverse vector eld(in the y, z -plane), for the RNG k model. (b) k SST model. Note that the view is from behind the hill. The k SST model manage to produce two vortices at z/H 1.41 which are quite similar to the LDV experiment. However, this model behaves strangely around z/H 0 with two small vortices that collide. This is shown in gure 19 b. The realizable k model produces a result that is quite similar to the k SST model. There are two vortices at z/H 1.54 and they are a bit smaller than the ones produced by the k SST model at around the same place. This model, similarly to the k SST model, fail by producing two vortices that collide around z/H 0. These vortices can be seen in gure 20 b. The RNG k model produces two vortices at z/H 1.40, which is consistent to the LDV experiment. In dierence with the LDV experiment some inaccurate behaviour occurs around z/H = 0.38. These vortices can be seen in gure 19 a.

24

Figure 20: Surface plot of the magnitude of velocity U and the vector eld of Uy and Uz . Note that the view is from behind the hill. (a)The Spalart Allmaras model (b) The realizable k model. The line plots in gure 21 and gure 22 show the ux and uz respectively at x/H = 3.63 for dierent values of z/H . Note that these plots show the velocity components behind the separation region. Therefore ux is positive for all y/H -values in each plot. However, there are still vortices in this region, but they appear in the y, z -plane according to gure 19 and gure 20. The results for the ux velocity from our RANS turbulence models are quite similar with LDV-experiment except some larger deviations for the Spalart Allmaras and the Non linear k Shih models. The latter of these two models produces for almost all z/H points inconsistent results compared to the reference data. If we look at the uz velocity almost all of the RANS turbulence models produce dierent results compared to the LDV-experiment. As one can see in gure 22 for z/H = 0.8143 and z/H = 0.3257, the uz velocity points in opposite direction for small values of y/H . The ow direction of the eddies are opposite compared to the LDV and LES data. If we look in the centerplane, hence z/H = 0, we can see in gure 22 that both the realizable k model and the k SST model produce incorrect results, which have been mentioned before.

25

RANSmodels compared with LDV measurements and LES data, z/H = 0.8143

RANSmodels compared with LDV measurements and LES data, z/H = 0.3257

1.4 1.2 1 0.8 y/H 0.6 0.4 0.2 0 0 0.2 0.4 0.6 0.8 Ux/U0 1 1.2 1.4 LDV data LES data kEpsilon SpalartAllmaras NonlinearKEShih RNGkEpsilon kOmegaSST realizablekEps

1.4 1.2 1 0.8 y/H 0.6 0.4 0.2 0 0 0.2 0.4 0.6 0.8 Ux/U0 1 1.2 1.4 LDV data LES data kEpsilon SpalartAllmaras NonlinearKEShih RNGkEpsilon kOmegaSST realizablekEps

RANSmodels compared with LDV measurements and LES data, z/H = 0

RANSmodels compared with LDV measurements and LES data, z/H = 0.3257

1.4 1.2 1 0.8 y/H 0.6 0.4 0.2 0 0 0.2 0.4 0.6 0.8 Ux/U0 1 1.2 1.4 LDV data LES data kEpsilon SpalartAllmaras NonlinearKEShih RNGkEpsilon kOmegaSST realizablekEps

1.4 1.2 1 0.8 y/H 0.6 0.4 0.2 0 0 0.2 0.4 0.6 0.8 Ux/U0 1 1.2 1.4 LDV data LES data kEpsilon SpalartAllmaras NonlinearKEShih RNGkEpsilon kOmegaSST realizablekEps

RANSmodels compared with LDV measurements and LES data, z/H = 0.6515

RANSmodels compared with LDV measurements and LES data, z/H = 1.1401

1.4 1.2 1 0.8 y/H 0.6 0.4 0.2 0 0 0.2 0.4 0.6 0.8 Ux/U0 1 1.2 1.4 LDV data LES data kEpsilon SpalartAllmaras NonlinearKEShih RNGkEpsilon kOmegaSST realizablekEps

1.4 1.2 1 0.8 y/H 0.6 0.4 0.2 0 0 0.2 0.4 0.6 0.8 Ux/U0 1 1.2 1.4 LDV data LES data kEpsilon SpalartAllmaras NonlinearKEShih RNGkEpsilon kOmegaSST realizablekEps

Figure 21: Comparison of RANS models with LDV experiment and LES data. Ux for RANS and LDV is measured at x/H = 3.63 and at x/H = 3.69 for LES. Data is for six dierent values of z/H .

26

RANSmodels compared with LDV measurements and LES data, z/H = 0.8143

RANSmodels compared with LDV measurements and LES data, z/H = 0.3257

1.4 1.2 1 0.8 y/H 0.6 0.4 0.2 0 0.1 0.05 0 Uz/U0
RANSmodels compared with LDV measurements and LES data, z/H = 0

1.4 1.2
LDV data LES data kEpsilon SpalartAllmaras NonlinearKEShih RNGkEpsilon kOmegaSST realizablekEps

1 0.8 y/H 0.6 0.4 0.2

LDV data LES data kEpsilon SpalartAllmaras NonlinearKEShih RNGkEpsilon kOmegaSST realizablekEps

0.05

0.1

0.15

0 0.2

0.1

0 Uz/U0

0.1

0.2

0.3

RANSmodels compared with LDV measurements and LES data, z/H = 0.3257

1.4 1.2 1 0.8 y/H 0.6 0.4 0.2 0 0.25 0.2 0.15 0.1 0.05 Uz/U0 0 0.05 0.1 LDV data LES data kEpsilon SpalartAllmaras NonlinearKEShih RNGkEpsilon kOmegaSST realizablekEps

1.4 1.2 1 0.8 y/H 0.6 0.4 0.2 0 0.4 0.3 0.2 0.1 0 Uz/U0 0.1 0.2 0.3 LDV data LES data kEpsilon SpalartAllmaras NonlinearKEShih RNGkEpsilon kOmegaSST realizablekEps

RANSmodels compared with LDV measurements and LES data, z/H = 0.6515

RANSmodels compared with LDV measurements and LES data, z/H = 1.1401

1.4 1.2 1 0.8 y/H 0.6 0.4 0.2 0 0.4 0.3 0.2 0.1 0 Uz/U0 0.1 0.2 0.3 LDV data LES data kEpsilon SpalartAllmaras NonlinearKEShih RNGkEpsilon kOmegaSST realizablekEps

1.4 1.2 1 0.8 y/H 0.6 0.4 0.2 0 0.15 0.1 0.05 Uz/U0 0 0.05 LDV data LES data kEpsilon SpalartAllmaras NonlinearKEShih RNGkEpsilon kOmegaSST realizablekEps

Figure 22: Comparison of RANS models with LDV experiment and LES data. Ux for RANS and LDV is measured at x/H = 3.63 and at x/H = 3.69 for LES. Data is for six dierent values of z/H .

27

Conclusions

The results from the RANS models implemented in OpenFOAM of the ow over a threedimensional axisymmetric hill have been reported, analysed and compared to experiment- and LES-data. Many other research groups like Wang et al. [10] and Person et al. [7] have tested RANS turbulence models on the same geometry. Their results are conrmed by our study, the RANS turbulence models tested for this geometry do not give accurate results. Even though none of the tested models give good enough result some models do capture the separation region fairly well. Our conclusion is that the best performing model in these tests is the RNG k model. The wake in the centerplane, z/H = 0 is most similar in size and position compared to the results from LDV experiment. In addition to the RNG k model two more models give results that are acceptable. These are the realizable k and the k SST models. All of the tested RANS models, even the three that produces acceptable results, produces eddies in the plane x/H = 3.63 near the centerline that do not exists in the experimental data. Improvements may be possible if the meshes are rened, especially in the turbulent boundary layer near the hill. Another possible way to improve the results is to try other types of inlet boundary conditions for the turbulent quantities. Finally one could also further develop better adapted wall functions to handle the turbulent boundary layer close to the walls.

References
[1] Milovan Peri c Joel H. Ferziger. Computational Methods for Fluid Dynamics. Springer, 3rd edition, 2002. [2] Sini sa Krajnovi c. Large eddy simulation of the ow over a three-dimensional hill. Flow Turbulence Combust, 81:189204, December 2008. [3] OpenCFD LTD. http://www.opencfd.co.uk/openfoam/. [4] W. Rodi M. Garcia-Villalba, N. Li and M. A. Leschziner. Large-eddy simulation of separated ow over a three-dimensional axisymmetric hill. J. Fluid Mech., 000:142, 2009. [5] OpenCFD Limited. OpenFOAM - Programmers Guide, 1.5 edition, July 2008. [6] OpenCFD Limited. OpenFOAM - User Guide, 1.5 edition, July 2008. [7] Benson R. E. Persson T., Liefvendahl M. and Fureby C. Numerical investigation of the ow over an axisymmetric hill using les, des and rans. Journal of Turbulence, 7(4):117, 2006. [8] Stephen B Pope. Turbulent Flows. Cambridge University Press, 2000. [9] G.Byun Roger L. Simpson. Structures of three-dimensional separated ow on an axisymmetric bump. 43rd AIAA Aerospace Sciences Meeting and Exhibit, 23, 2005. Paper No. 2005-0113. [10] Jang Y. J. Wang C. and Leschziner M. A. Modelling two- and three-dimensional separation from curved surfaces with anisotropy-resolving turbulence closure. International Journal of Heat and Fluid Flow, 25(3):499512, 2004.

28

Examples of OpenFOAM case-les

File: controlDict /*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 1.5 | | \\ / A nd | Web: http://www.openfoam.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object controlDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // application simpleFoam; startFrom startTime; startTime 0; stopAt endTime deltaT endTime; 1.0; 0.0001;

writeControl timeStep; writeInterval 1000; purgeWrite 0; writeFormat ascii; writePrecision 6; writeCompression uncompressed; timeFormat general; timePrecision 6; runTimeModifiable yes; // ************************************************************************* //

29

File: fvSchemes /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 1.5 | | \\ / A nd | Web: http://www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object fvSchemes; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // ddtSchemes { default steadyState; } gradSchemes { default grad(p) grad(U) }

Gauss linear; Gauss linear; Gauss linear;

divSchemes { default none; div(phi,U) Gauss upwind; div(phi,k) Gauss upwind; div(phi,omega) Gauss upwind; div(phi,R) Gauss upwind; div(R) Gauss linear; div(phi,nuTilda) Gauss upwind; div((nuEff*dev(grad(U).T()))) Gauss linear; } laplacianSchemes { default none; laplacian(nuEff,U) Gauss linear corrected; laplacian((1|A(U)),p) Gauss linear corrected; laplacian(DkEff,k) Gauss linear corrected; laplacian(DomegaEff,omega) Gauss linear corrected; laplacian(DREff,R) Gauss linear corrected; laplacian(DnuTildaEff,nuTilda) Gauss linear corrected; } interpolationSchemes { default linear; interpolate(U) linear; } snGradSchemes { default } fluxRequired { default p; }

corrected;

yes;

// ************************************************************************* //

30

File: fvSolution /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 1.5 | | \\ / A nd | Web: http://www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object fvSolution; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // solvers { p PCG //Preconditioned Conjugate gradient { preconditioner DIC; //Diagonal Incomplete Cholesky tolerance 1e-06; relTol 0.01; }; U PBiCG //Preconditioned Biconjugate gradient { preconditioner DILU; //Diagonal Incomplete LU tolerance 1e-05; relTol 0.1; }; k PBiCG { preconditioner DILU; tolerance 1e-05; relTol 0.1; }; omega PBiCG { preconditioner DILU; tolerance 1e-05; relTol 0.1; }; } SIMPLE { nNonOrthogonalCorrectors 3; } relaxationFactors { p 0.3; U 0.7; k 0.5; omega 0.5; R 0.7; nuTilda 0.7; } // ************************************************************************* //

31

File: RASProperties /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 1.5 | | \\ / A nd | Web: http://www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object RASProperties; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // RASModel turbulence printCoeffs laminarCoeffs { } kEpsilonCoeffs { Cmu C1 C2 alphaEps } RNGkEpsilonCoeffs { Cmu C1 C2 alphak alphaEps eta0 beta } realizableKECoeffs { Cmu A0 C2 alphak alphaEps } kOmegaSSTCoeffs { alphaK1 alphaK2 alphaOmega1 alphaOmega2 gamma1 gamma2 beta1 beta2 betaStar a1 c1 Cmu } NonlinearKEShihCoeffs kOmegaSST; on; on;

0.09; 1.44; 1.92; 0.76923;

0.0845; 1.42; 1.68; 1.39; 1.39; 4.38; 0.012;

0.09; 4.0; 1.9; 1; 0.833333;

0.85034; 1.0; 0.5; 0.85616; 0.5532; 0.4403; 0.0750; 0.0828; 0.09; 0.31; 10; 0.09;

32

{ Cmu C1 C2 alphak alphaEps A1 A2 Ctau1 Ctau2 Ctau3 alphaKsi } SpalartAllmarasCoeffs { alphaNut 1.5; Cb1 0.1355; Cb2 0.622; Cw2 0.3; Cw3 2; Cv1 7.1; Cv2 5.0; } wallFunctionCoeffs { kappa E } 0.09; 1.44; 1.92; 1; 0.76932; 1.25; 1000; -4; 13; -2; 0.9;

0.4187; 9;

// ************************************************************************* //

33

Technical specication of the OS cluster


* IBM X3455 dual Opteron 2220SE, 2.8GHz nodes. 4*10=40 cores * 8GB RAM, * Gigabit interconnect

Hardware:

Software: * Scientific Linux SL release 5.2 * SGE version 6.2, Grid Engine queue system o "man sge_intro" for an overview. * GCC version 4.3 c,c++,fortran and java o module load gcc * PGI version 7.1, 64 bit compilers (C,C++,F77,F95,HPF) o module load pgi * Intel version 10.1, 64 bit compilers (C,C++,Fortran) o module load intel * MPI, OpenMPI libraries o module load pgi openmpi_pgi o module load gcc openmpi_gcc o module load intel openmpi_intel o mpicc or mpif90 to compile o mpirun to execute. * qsub -pe dmp8 16, to submit a 16 slot mpi job * openMP is available in pgi, intel and gcc

34

Вам также может понравиться