Vous êtes sur la page 1sur 94

TECHNICAL UNIVERSITY OSTRAVA

Fluid Flow Modelling


FLUENT, CFX

Milada Kozubkov

OSTRAVA 2014

Content

Content
LIST OF USED DESIGNATION ....................................................................................................... VI
1.

INTRODUCTION TO NUMERICAL MODELING OF FLUID FLOW ................................. 1

1.1. INTRODUCTION TO FLUID FLOW ............................................................................................... 1


1.2. TRANSFER OF MASS, MOMENTUM, HEAT IN NON ISOTHERMAL FLOW OF INCOMPRESSIBLE
FLUID

1.3. PARTIAL DIFFERENTIAL EQUATIONS AND BOUNDARY CONDITIONS........................................ 3


1.4.

BOUNDARY CONDITIONS OF INCOMPRESSIBLE FLUID FLOW ..................................................... 5

1.4.1.

Types of boundary conditions ............................................................................................ 5

1.5. SOLUTION OF THE FLOW IN SUDDEN EXPANSION SECTION .................................................... 8


1.6.
2.

APPLICATION FVM ON WATER FLOW BETWEEN THE PLATES ................................................. 11


GEOMETRY AND COMPUTATIONAL GRID GENERATION ...................................... 36

2.1. THE TERM "GRID" AND ITS IMPORTANCE FOR THE MATHEMATICAL MODELING .................... 36
2.2. WORKBANCH, GRID ELEMENTS ............................................................................................. 36
2.3. CRITERIA FOR GRID QUALITY ASSESSMENT ............................................................................ 38
2.4. PKLAD VYTVOEN ST ...................................................................................................... 40
2.4.1. Vytvoen st ................................................................................................................. 41
2.4.2. Definition of the boundary conditions in Gambit ............................................................ 43
3.

FLUENT SOFTWARE SYSTEM ........................................................................................... 44

3.1. OVERVIEW OF METHODS FOR SOLVING OF PARTIAL DIFFERENTIAL EQUATIONS .................. 44


3.2. INTEGRATION BY FINITE VOLUME METHOD ............................................................................ 44
3.3. CHOICE OF INTERPOLATION SCHEME .................................................................................... 47
3.4. CONVERGENCE. ..................................................................................................................... 48
3.4.1. Residuals........................................................................................................................ 48
3.4.2. Convergence acceleration ........................................................................................... 50
3.4.3. Relaxation ...................................................................................................................... 51
4.

TURBULENT FLOW OF REAL FLUID ............................................................................... 53

4.1. CLASSIFICATION OF REAL FLUID FLOW ................................................................................. 53


4.2. TURBULENT FLOW .................................................................................................................. 55
4.2.1. Theory of turbulence..................................................................................................... 56
4.2.2. Methds of mathematical modelingof turbulent flow ................................................. 59
4.2.3. Reynolds equations ...................................................................................................... 61
4.2.4. Boussinesq's hypothesis about eddy (turbulent) viscosity ..................................... 64
5.

STATISTICAL MODELS OF TURBULENCE ..................................................................... 66

5.1. MODEL OF MIXING LENGTH (ZERO - EQUATION MODEL) - PRANDTL .................................... 67


ii

Content
5.2. ONE - EQUATION MODEL ........................................................................................................ 67
5.3. TWO - EQUATION K- MODEL ................................................................................................. 68
5.4. RNG K- MODEL ..................................................................................................................... 69
5.5. REYNOLDS STRESS MODEL (RSM) ....................................................................................... 69
5.6. MODELING OF FLOW IN NEAR WALLS, WALL FUNCTIONS ....................................................... 70
5.6.1. Theory of wall functions by Launder and Spalding .................................................. 71
5.6.2. Modeling of flow near the wall in Fluent .................................................................... 72
5.6.3. Non-equilibrium wall function ...................................................................................... 75
5.6.4. Using of wall functions and their limitations .............................................................. 76
5.6.5. Two-layer model (near-wall modelling)...................................................................... 76
5.6.6. The influence of grid quality on the choice of wall functions for various models of
turbulence....................................................................................................................................... 77
5.6.7. The influence of roughness on the wall function ............................................................. 78
6.

A MATHEMATICAL MODEL OF TURBULENCE FOR COMPRESSIBLE NON-

ISOTHERMAL FLOW ...................................................................................................................... 79


6.1. K- TWO-EQUATION MODEL OF TURBULENCE ....................................................................... 79
6.2. BOUNDARY CONDITIONS FOR K- TURBULENT MODEL ......................................................... 80
6.2.1. Mass flow rate ............................................................................................................... 80
6.2.2. Turbulent variables ....................................................................................................... 80
6.2.3. Pressure at inlet ............................................................................................................ 81
6.2.4. Pressure at outlet .......................................................................................................... 83
6.2.5. Outflow............................................................................................................................ 83
7.

EEN PENOSU TEPLA (KONVEKCE, KONDUKCE)...... CHYBA! ZLOKA NEN

DEFINOVNA.
7.1. VOD DO PROBLEMATIKY MODELOVN PENOSU TEPLA ............... CHYBA! ZLOKA NEN
DEFINOVNA.

7.1.1. Kondukce veden tepla ............................................................................................. 84


7.1.2. Konvekce........................................................................................................................ 86
7.2. MATEMATICK MODEL PENOSU TEPLA ............................................................................... 87
7.2.1. Penos tepla v tekutinch ............................................................................................ 87
7.2.2. Penos tepla ve vodivch stnch .............................................................................. 88
7.3. HUSTOTA ZVISL NA TEPLOT A TLAKU, BOUSSINESQOVA APROXIMACE ......................... 89
7.3.1. Vyjden hustoty pro stlaiteln mdium ................................................................. 89
7.3.2. Vyjden hustoty pro nestlaiteln mdium ............................................................. 89
7.3.3. Boussinesquova aproximace ...................................................................................... 90
7.4. OKRAJOV PODMNKY PRO NEIZOTERMN PROUDN .......................................................... 92
7.4.1. Okrajov podmnky na tenk stn............................................................................ 94
iii

Content
7.4.2. Okrajov podmnky na tenk dvoustrann stn .................................................... 94
7.4.3. Vpoet teploty a hustoty tepelnho toku na stn ................................................. 95
8.

MODELOVN PROUDN PMS ............................................................................... 100

8.1. TRANSPORTN ROVNICE PRO PENOS PMS .................................................................. 100


8.2. DEFINICE ZDROJE PMSI .................................................................................................. 101
8.2.1. Zdroj-inlet ..................................................................................................................... 102
8.2.2. Objemov zdroj ........................................................................................................... 102
8.3. FYZIKLN VLASTNOSTI PLYN A JEJICH SMS .................................................................. 103
8.3.1. Hustota ......................................................................................................................... 103
8.3.2. Viskozita ....................................................................................................................... 104
8.3.3. Mrn tepeln kapacita .............................................................................................. 105
8.3.4. Tepeln vodivost ......................................................................................................... 105
8.3.5. Standardn sluovac entalpie a entropie ................................................................ 105
8.4. OKRAJOV PODMNKY PRO PMSI NA VSTUPU, VSTUPU A STN................................ 106
9.

VCEFZOV MODELY ...................................................................................................... 109

9.1. VCEFZOV MODELY OBECN ............................................................................................ 109


9.1.1. Euler-Lagrangev pstup .......................................................................................... 110
9.1.2. Euler-Eulerv pstup .................................................................................................. 110
9.2. VCEFZOV MATEMATICK MODELY .................................................................................. 111
9.2.1. Vcefzov model smsi (mixture model) ............................................................... 113
9.2.2. Trajektorie pevnch stic v plynu ........................................................................... 116
10.

ASOV ZVISL EEN ............................................................................................... 124

10.1.

DISKRETIZACE ASOV ZVISL ROVNICE ...................................................................... 125

10.2.

OKRAJOV PODMNKY ...................................................................................................... 127

10.2.1.

Tabulka pro asovou okrajovou podmnku ......................................................... 127

10.2.2.

UDF pro okrajovou podmnku ............................................................................... 129

10.3.
11.

PKLAD VYHODNOCEN ASOV ZVISL LOHY .......................................................... 129

MEN A VPOET TURBULENCE PI OBTKN VLCE

V AERODYNAMICKM TUNELU ................................................................................................. 134


11.1.

TEORETICK ROZBOR LOHY OBTKN VLCE ............................................................. 134

11.2.

FYZIKLN EXPERIMENT .................................................................................................... 134

11.3.

MATEMATICK MODEL ...................................................................................................... 139

11.4.

VYHODNOCEN VSLEDK FYZIKLNHO EXPERIMENTU A MATEMATICKCH MODEL .. 142

12.

LITERATURA......................................................................................................................... 149

13.

PLOHA - STAC PRAVIDLA ....................................................................................... 152

iv

Content
13.1.

DEFINICE A PRAVIDLA ....................................................................................................... 152

13.2.

PKLADY .......................................................................................................................... 153

13.3.

SROVNN S VEKTOROVM OZNAENM .......................................................................... 154

13.4.

SUBSTANCILN DERIVACE ............................................................................................... 155

14.

PLOHA - ZKLADN STATISTICK METODY ........................................................... 157

14.1.

STEDN HODNOTA ........................................................................................................... 157

14.2.

REYNOLDSOVA PRAVIDLA ................................................................................................ 158

14.3.

ROZPTYL, SMRODATN ODCHYLKA, TURBULENTN INTENZITA, KOVARIANCE, KORELACE


159

15.

PLOHA - ROZKLAD V TAYLOROVU ADU .............................................................. 161

15.1.

DEFINOVN PROBLMU ................................................................................................... 161

15.2.

TAYLORV ROZVOJ........................................................................................................... 161

List of used designation

LIST OF USED DESIGNATION


Poznmka: oznaen, u nho nen uveden rozmr, reprezentuje obecnou promnnou.

okamit hodnota veliiny

fluktuan sloka veliiny

asov stedovan sloka veliiny

A, S

plocha

m2

Van Driestova konstanta

CD

konstanta

empirick konstanta

konstanta

C1

empirick konstanta

C 2

empirick konstanta

C3

empirick konstanta

rychlost zvuku

ms-1

cv

mrn tepeln kapacita pi konstantnm objemu

Jkg-1K-1

cp

mrn tepeln kapacita pi konstantnm tlaku

Jkg-1K-1

Dn,m

difzn koeficient pro pms n ve smsi

m2s-1

frekvence

s-1

f i , Fi

sla

fc

Coriolisv parametr

s-1

energie

Jkg-1

empirick konstanta

Fi J

i-t sloka sloka vektoru hustoty toku veliiny J

termick produkce turbulentn kinetick energie

m2s-3

Gr

Grashofovo slo

thov zrychlen

ms-2

hf

souinitel pestupu tepla

Wm-2K-1

obecn vektor

vi

List of used designation

statick entalpie

Jkg-1

ho

celkov entalpie

Jkg-1

I

i , j, k

intenzita turbulence

jednotkov vektor ve smru os x, y, z

bilancovan veliina

J e, J p , J w

hmotnostn tok pes stny konench objem

kgm-2s-1

turbulentn kinetick energie

m2s-2

kP

turbulentn kinetick energie v logaritmick vrstv

m2s2

I, L

dlkov mtko turbulence

lm

smovac dlka

Machovo slo

nj

j-t sloka normlovho vektoru

vektor vnj normly k ploe

tlak

Pa

p op

operan tlak

Pa

ps

statick tlak

Pa

mechanick produkce turbulentn kinetick energie

m2s-3

P J

hustota produkce veliiny J

Pr

molekulov Prandtlovo slo (stnov funkce)

Prt , h

turbulentn Prandtlovo slo

prtok

m3s-1

mrn plynov konstanta

J.kg-1.K-1

tepeln tok

Jm -2s-1

rezidul

normalizovan rezidul

Ra

Rayleighovo slo

Re

Reynoldsovo slo

Re y

turbulentn Reynoldsovo slo buky

rw

polohov vektor na stn

modul tensoru stedn rychlosti deformace

s-1

vii

List of used designation

S i, j

tensor rychlosti deformace

s-1

Sc

Schmidtovo slo

as

absolutn teplota

ui

i-t sloka rychlosti

ms-1

ui

i-t sloka stedn rychlosti

ms-1

u i

i-t sloka fluktuan rychlosti

ms-1

u , u*

rychlost definovan stnovou funkc

ms-1

tec rychlost

ms-1

objem

m3

xi

souadnice v kartzskm systmu x1, x2, x3 nebo x, y, z

kolm vzdlenost od stny

y , y*

bezrozmrn veliina pi odvozovn stnovch funkc

bezrozmrn tlouka podvrstvy

yv

tlouka vazk podvrstvy

y P

vzdlenost bodu P od stny ve smru normly

relaxan faktor

teplotn vodivost

m2s-1

k , ,

inverzn turbulentn Prandtlova sla

m2s-1

souinitel teplotn roztanosti

K-1

ij

Kroneckerovo delta

rychlost disipace

m2s-3

rychlost disipace v logaritmick vrstv

m2s-3

disipan funkce

turbulentn difusivita

m2s-1

von Krmnova konstanta, pomr mrnch tepelnch kapacit

souinitel tepeln vodivosti

Wm-1K-1

souinitel efektivn tepeln vodivosti

Wm-1K-1

yv

viii

List of used designation

dynamick viskozita

Pas

eff

efektivn viskozita

Pas

turbulentn viskozita

Pas

kinematick viskozita

m2s-1

turbulentn viskozita

m2s-1

ij

celkov tenzor napt

Pa

hustota

kgm-3

ref

referenn hustota

kgm-3

empirick konstanta

empirick konstanta

turbulentn Prandtlovo slo

asov perioda

vazk napt

Pa

ij

tenzor vazkch napt

Pa

vazk napt na stn

Pa

turbulentn napt

Pa

druh viskozita

Pas

obecn promnn

Indexy:

index sloky rychlosti, index iterace

stac index

j, k , l

suman Einsteinv index

w, e, p

index stny konenho objemu

W , E, P, N , S , F , B, NB
1

index konenho objemu

ix

Preface

Preface
This textbook is addressed to for students of master and doctoral programs of all
faculties who want to learn about the fundamentals of numerical modeling of fluid phenomena
in transfer, ie transfer of mass, momentum (torque), heating, etc. in laminar and turbulent flow.
In applications in teaching CFX and Fluent software will be used.
Numerical modeling of many physical phenomena are closely linked to modeling a form
of motion mathematically. Movement of fluids is associated with the solution of various
problems of the physical model:

laminar and turbulent flow in both simple and complex geometries

compressible and incompressible flow

steady, unsteady and transient flow

heat transfer, natural and mixed convection, radiation

transfer of chemical admixtures, including chemical reactions

multiphase flow, free surface flow, flow with solid particles, bubbles, respectively. drops

combustion and chemical reactions

porous flow, etc.

The mathematical model consists of defining the equations describing the above happens.
Given that this is a two-dimensional, axially symmetric or general three-dimensional and time
dependent cases, which are described by system of partial differential equations, which can
be solved by numerical methods. Their use is given by the expansion of knowledge in the field
of flow, turbulence, numerical methods, computer technology
The flow solution is possible to use commercial software systems, such as Fluent, CFX
and others. The task of the user is to build the correct calculation model, which contains some
mathematical, physical and technical principles. For such a model it is necessary to find all
input data in the existing standards, build the input data for a program that can solve
computational model, solving by the terminal, correctly interpret the results for further use in
all phases and carry out effective monitoring of all inputs and outputs. The user must safely
divide all the information on the geometric data (two-dimensional or three-dimensional
features, topology), data on the effect of external forces and physical data (information about
flowing media, its physical properties). Thus, an essential task is to know hydromechanics,
thermodynamics and other sciences to the complexity of the problem.
As regards the computational methods underlying the use of the program, the designer
should know their nature for reliable use in standard cases. For program or Fluent. CFX it is a
need to know in what shape the final volume will work, it follows the choice of network density,

Preface
approximation schemes, the nature of the time dependence of the quantities and the resulting
time step size, etc.
No less important part there is the evaluation results, particularly difficult in threedimensional problems. It is optimal to have at least the approximate value of calculated vriables
, better is to compare the results with the experiment.
Literature
Bojko, M.: Nvody do cvien Modelovn proudn Fluent
Blejcha, T.: Nvody do cvien Modelovn proudn CFX.

xi

Introduction to numerical modeling of fluid flow

1. Introduction to numerical modeling of fluid flow


1.1.

Introduction to fluid flow

Fluid flow can be divided according to several aspects 0:


Dividing by the physical properties of fluids
FLUID FLOW

flow of ideal (inviscid)


fluid

potencial

flow of real (viscous)


fluid

turbulent

laminar

swirling

Dividing the flow according to time

0
t

steady (stationary) flow does not depend on time v vt ;

unsteady flow flow is, in which variables dependent on time, v v x, y, z , t ; v vs, t


; v vt .
In the most general case, the

y (x2)

position of the point is defined by

v (u2)

w (u3)

coordinates

X x, y, z

respectively

X x1 , x2 , x3 .

Velocity

z (x3)

vector

is

defined

by

components

u u, v, w

respectively

u u1 , u2 , u3 . The

designation is shown in Fig. 1.1

u (u1)
x (x1)
Fig. 1.1 Coordinate system

1.2.

Transfer of mass, momentum, heat in non isothermal flow

of incompressible fluid
Basic laws of physics describing the flow are the conservation laws of mass,
momentum, heat or other scalar variables. They are expressed by Navier Stokes equations

Introduction to numerical modeling of fluid flow

along with continuity equation and describe the laminar and turbulent flow regime. In the case
of non isothermal unsteady incompressible flow they have the following form:
Continuity equation:

u v w

O
x y z

( 1.2.1)

Navier-Stokes equation:

2u 2u 2u
1p
u uu uv uw

2
2 fx
2
x
y
t
x
y
z
x

2v 2v 2v
1p
v vu vv vw

2
2 fy
2
x

z
y
t
x
y
z
y

( 1.2.2)

2w 2w 2w
1p
w wu wv ww
fz

2
2
x

y
z
t
x
y
z
z

where using schema in Fig. 1.1 u , v a w are the velocity components, p is pressure, is
density, kinematic viscosity ane f x , y , z refers to components of volume or external forces
(gravity, centrifugal force).
The equation of heat transfer, ie. the law of conservation of energy is in the form

2T 2T 2T
T uT vT wT

t
x
y
z
y 2 z 2
x
u 2 v 2 w 2

2
x y z

( 1.2.3)

u v 2 u w 2 v w 2



y x z x z y

where

is temperature conductivity, is molecular heat conductivity and c p specific


c p

heat.
In terms of variables with three or nine components (components of speed, stress, etc.)
it is appropriate use special abbreviated designation with precisely defined rules, known as
Einstein's summation, see chap. 13, where only one member can express all three
components of velocity respectively nine stresses. The same can be expressed
mathematically for clarity using character sums. Thus, the continuity equation is written simply:

u1 u2 u3

O resp.
x1 x2 x3

uj

x
j 1

O resp.

uj
O
xj

( 1.2.4)

Introduction to numerical modeling of fluid flow

Navier-Stokes equations:

n
1p
ui n uiu j
2u

2i fi
t j 1 x j
xi
j 1 x j

resp.
( 1.2.5)

1p
ui uiu j
2ui

fi , i 1,..., n
t
xj
xi
x 2j

where the index i consistently expresses the component of vector and the index j (or other
alphabetically)

represents

the

summation

index

( j 1,2 resp. 3 ).

The equation for heat transfer can be written similarly:


n
2T
T n u jT

2 ,
t j n x j
j n x j

1 n n u
u
j l
2 j 1 l 1 xl x j

( 1.2.6)

resp.

2T
T u jT


xj
x 2j
t

1 u
u
j l
2 xl x j

1.3.

Partial differential equations and boundary conditions

The equation for conservation of mass and momentum, energy equation and the
equation for the transport of chemical admixtures in the general conservative form create a
system of partial differential equations, while all the equations can be formally written

u j S

t
xj
x j x j

( 1.3.1)

accumulation = convection + diffusion + source


where is a variable and members on the right side are gradually convection, diffusion and
source term, so the equation is also called convection-diffusion equation. If is a temperature,
admixture or another scalar value, then it is a linear equation of second order. If is a velocity
component, this equation can be regarded as a nonlinear equation of second order.
If the effect of diffusion member dominates, this is the equation of elliptic type, in
parabolic type equations the convective transport impact prevails and hyperbolic equations are
significant by pressure changes. Equation (1.3.1) but alone is not sufficient to determine the
function . In order to define this function, you need to know more additional conditions.

Introduction to numerical modeling of fluid flow

Let the problem to find the temperature distribution in the body is defined. Suppose that
finding function T (ie. temperature) is a function of subsequent spatial independent variables
and time
T=T(t,x)

T
2T
2
t
x

( 1.3.2)

T=T(t,x, y)

T
2T
2T
2 2
t
x
y
T=T(t, x, y, z)

T
2T
2T
2T
2 2 2
t
x
y
z
.
If the function T depends only on the spatial coordinates and independent of time, the task
is called stationary. The problem is complicated if the function T dependends on time and
possibly the spatial coordinates, as mentioned above. For example the body is heated or
cooled with increasing time, then the case is called transient and function T is a function of
successive independent variables.
INDEPENDENT VARIABLES
stationary flow

transient flow
t

t, x

x, y

t, x, y

x, y, z

t, x, y, z

Introduction to numerical modeling of fluid flow

Example
For
t

example

equation

of

heat

conduction in a rod is

T=T1

T
2T
2
t
x

T=T2

For the heat equation in a rod a solution


is looking for in a rectangle Dx, t , see

T(x)=(x)
x

Fig.

Fig. 1.2 Definition af region

1.2, and must satisfy the initial

condition (an analogy with the solution


of ordinary differential equations).

For the temperature

T x,0 x

the initial condition is defined as follows:

0 x L

( 1.3.3)

In the event that the second derivative T with respect to t occurs in the equation, the second
initial condition is defined as

T x,0
x .
t

The boundary condition defines the temperature at the beginning and end of the field
(edge rod).

T 0, t T1 t

( 1.3.4)

T L, t T2 t

The role of finding a solution of equation (1.3.1) satisfying the boundary and initial
conditions is called a mixed role. If the boundary conditions equal zero, they are called
homogeneous boundary conditions, similar to the initial conditions are zero, they are called
homogeneous initial conditions. Instead of boundary conditions (1.3.4) it can be put another
type of conditions that are also called boundary conditions. Reflection on the boundary and
initial conditions for temperature is valid for a general variable

1.4.

Boundary conditions of incompressible fluid flow

1.4.1. Types of boundary conditions


Boundary conditions need not be only a constant value, but they can have values defined
by functions, table, etc. (0):

Introduction to numerical modeling of fluid flow

constants y const.

polynom. funkction y( x) A0 A1x A2 x2 ...,

0.05
0.045

where the coefficients are awarded only to 5

0.04

significant digits
derivative according to normal (OUTLET, heat

flux)

y x
konst1.
x

u-konst

0.03

u-polynom

0.025

u-po stech
lin. funkce

0.02
0.015
0.01
0.005

piecewice linear function

x1, y1 , x2 , y2 , x3 , y3 ,

y [m]

0.035

...

xN , y N

0.5

1.5
-1

u [m.s ]

Fig. 1.3 Profiles of velocity

combination of polynom. and piecewice linear


function

Conditions of input and output. For the

o u tlet

two flow boundaries may occur only


following basic combinations of boundary

ry ch lo st

tla k sta t.

ry ch lo st

tla k sta t.

conditions, (a combination of input velocity


and output velocity can not occur because
the velocity on the second input is calculated
tla k to t l.

from the equation of continuity). When

Fig. 1.4 Combination of input and output

considering the energy equation there is

boundary conditions

entered in addition the value of temperature,


see Fig. 1.4.

Conditions at the flow border - the input and output flow borders can be defined by three
types of boundary conditions
INPUT

OUTPUT
condition of stationary flow

velocity u

u
p
T
0,
0,
0
n
n
n
static pressure pstat

Total pressure ptot

ptot pstat pdyn pstat

1 2
u
2

temperature T
Conditions on the wall - the wall can be stationary (fluid velocity is zero) or moving (eg
rotating or sliding), with friction or without friction, smooth or rough. The temperature is given

Introduction to numerical modeling of fluid flow

by value or by derivation according to nomal vector to the wall, for example

T
0 is insulated
n

wall.
Conditions of symmetry - zero normal velocity and zero normal gradients of all search
parameters, see Fig. 1.6.
Conditions of axial symmetry - define the axis of the axially symmetric two-dimensional
problems, see Fig. 1.5.
solved
region

solved
region

axis
of
symetry

plane of
symetry

Fig. 1.5 Cylinder with axis of symmetry and

Fig. 1.6 Cylinder with plane of symmetry

plane, where the flow is solved.

and region, where the flow is solved.

Periodic (cyclic) conditions - used when the flow formations are repeated, they can be
rotational and translational type, which allows the definition of the pressure gradient in the
direction of fluid flow along the field.
All types of conditions can be time dependent, if required by their character. Other
boundary conditions do not concern of the flow as such, but other values arising from the
complexity of the mathematical model as, temperature, heat flow, radiation, mass fractions (or
molecular fraction). additions, etc.
periodical condition

periodical condition

of rotational type

of translation type

solved region

solved region

Fig. 1.7 Periodical conditions of rotational and translational type

Introduction to numerical modeling of fluid flow

1.5.

Solution of the flow in sudden expansion section

This chapter illustrates how to enter and solve the incompressible flow in a sudden
expansion cross section using Fluent, which is one of the fundamental tasks of flow testing,
examined both experimentally and numerically. The task is: define the physical model, physical
properties of the flowing medium and walls:
define the physical model, physical properties of the flowing medium and walls
define mathematical model, boundary condition
create geometry and mesh
specify the initial and boundary conditions in FLUENT, the calculation
evaluate the computed values
Example

The physical model is given by the shape, type of flow and hydraulic parameters of
flow. The scheme of the region is shown in Fig. 1.8 and dimensions with the physical properties
in the table.
Ls
ds

u
d-ds

Oblast proudn

L
Fig. 1.8 Geometry of the problem

Geometry of the region

d ds
x
Ls

length of the area

3.5

[m]

the area height

[m]

0.5

expansion

[m x m]

0.7 x 0.1

Physical properties of the fluid


We suppose the flow of incompressible fluid with following parameters:

Introduction to numerical modeling of fluid flow

density of fluid [kg.m-3]

1.2

dynamic viscosity resp. [kg.(m.s)-1]

0.0000171

Boundary condition
Boundary conditions are defined at the input by the velocity and at the output there is
determined the condition of steady flow (OUTFLOW). On the walls it is assumed zero velocity.
input mean velocity u s [m.s-1]

output

OUTFLOW

Reynolds number Re

u s d
[1]

84705

Mathematical model
From the boundary and physical conditions the Reynolds number can be determined
as the dimensionless criterion for deciding whether the flow is laminar or turbulent. The value
of Reynolds number characterizes the flow in the transition region between laminar and
turbulent flow. It will therefore be solved at beginning as laminar.
Creating geometry and mesh
In a Ansys the exact geometry will be created by method similar to the CAD programs.
In addition, this program will use the possibility to form a mesh. The resulting mesh should
have the area shape taking into account the development of swirl and velocity profile near the
wall, see Fig. 1.9 Computational mesh in longitudinal section.

Fig. 1.9 Computational mesh in longitudinal section

Introduction to numerical modeling of fluid flow

The calculation results


For clarity there are introduced the possibilities of evaluation, such as velocity vectors, velocity
profiles and filled isolines .

Fig. 1.10 Vector velocity u

Fig. 1.11 Detail of region with vortex (velocity vectors u).

10

Introduction to numerical modeling of fluid flow

Fig. 1.12 Filled isolines of static pressure

1.6.

Water flow between the plates numerical solution

Solve the water flow between two infinitely large plates. The physical model is determined by
the shape of the area, the type of flow and hydraulic parameters of flow. Numerical calculation
define in the programming environment ANSYS Fluent. The creation of the computational
domain (geometry) and of computer networks and uses programs DesignModeler ANSYS
Meshing.

upper wall

solved domain
outlet

inlet
s
x
lower wall
l

11

Introduction to numerical modeling of fluid flow

Fig. 1.13 Scheme of domain


Water flows inside by speed 0.05 ms-1 and extends into the open air where the relative pressure is equal
0 Pa. Scheme area including the dimensions is shown in Fig. 1.14 and Tab. 1.1. Task for simplicity is
given as a 2D model and represents the flow in a rectangular gap of the length and thickness of the gap.
Physical properties of the flowing medium are given in Tab. 2.2

upper wall

fluid
outlet

inlet

x
lower wall
l
Fig. 1.14 Geometry of 2D rectangular computational domain

Tab. 1.1 Geometry of domain

[m]

0.5

length of domain

thickness of the gap

[m]

0.033
Tab. 1.2 Physical properties of water

Density of water [kg.m-3]

998

viscosity [kg.(m.s)-1]

0.001003

Boundary conditions
At the entry velocity boundary condition (VELOCITY INLET) is defined and the output is given
by the condition of static pressure (OUTLET PRESSURE). On the wall there is a boundary
condition of type WALL, where it is assumed zero velocity (is predefined). The boundary
conditions are given in Tab. 2.3
.

us

Tab. 1.3 Boundary conditions


inlet mean velocity
[m.s-1]

0.05

Outlet static pressure

[Pa]

Mathematical model
12

Introduction to numerical modeling of fluid flow

Selection of a mathematical model will be resolved in later chapters, now it leaves predefined
one (laminar flow model).
Creating of geometry and networks
To create a domain and network the DesignModeler program and ANSYS Meshing is
used. Programs are available in the ANSYS Workbench program manager. After starting
Workbench is available environment shown in Fig. 1.15. On the left side of the tools Toolbox
- Analysis Systems" the "Fluid Flow"(FLUENT) is selected and draged by the mouse with the
left button and moved the item to the desktop (Project Schematic). This is a new project, which
can be renamed (eg. 2D-plate, see Fig. 1.15).
In the first phase, the program will create the geometry in DesignModeler using the
"Geometry". When the default startup command DesignModeler "Geometry" user creates 3D
geometry. If you need to create 2D geometry, it is necessary to check the right panel, under
Properties of Schematic A2: Geometry - Geometry Advanced Options - Analysis Type - 2D
and that will create 2D geometry. This setting is induced by right-click the command
"Geometry" and select "Properties". Then the program starts DesignModeler by click
"Geometry".

Fig. 1.15 Software Environment Workbench


After starting the program DesignModeler a graphical environment is displayd (Fig. 1.16). On
the left side there is a tree of individual operations to be carried out in the program. In the
middle of the graphics window there is the work area and in the upper part there are the

13

Introduction to numerical modeling of fluid flow

individual commands.

Commands

operations

Working area

Fig. 1.16 Programming environment DesignModeler


To create geometry of Fig. 1.13 is relatively simple because it is a rectangular area. The basic
philosophy of geometry creation consists in drawing in the various levels of the coordinate
system (XY, XZ, YZ) defined in the the so-called. "Sketch". This means that at first there is
defined a "Sketch" in the corresponding plane of the coordinate system and thus in defined
"Sketch" is form a rectangle. Creating a "Sketch" in the selected plane of the coordinate system
is shown in Fig. 1.17.

Sketch
Plane of coordinate system
Fig. 1.17 Creating Sketch
Subsequently, the rectangle is formed by drawing individual edges, forming a closed unit. To
drawing the edges the tool from the "Draw" in the "Sketching" is used. To create a individual
entities of rectangle the "Line" is used with help of mouse to mark the two points in the
workspace and create the edge (Fig. 1.18). By the same procedure all the edges will be

14

Introduction to numerical modeling of fluid flow

continuously created and closed whole rectangle (Fig. 1.19).

Fig. 1.18 Creating of individual edges

Fig. 1.19 Area of computational geometry


Subsequently, the calculation area is defined using the "Dimensions" (horizontal and vertical
dimensions), see Fig. 1.20. Dimensions H1 and V2 are specified according to the assignment

15

Introduction to numerical modeling of fluid flow

and subsequent updating of sizes is made by the command "Generate".

Command Generate

Dimensions

Fig. 1.20 Dimensioned computational domain


The subsequent step is to create areas from individual edges using the "Surfaces From
Sketches" (Fig. 1.21). The command is available from the pull-down menu in the "Concept".
Surfaces can be created from one or more "Sketch". In our case, we have created single
"Sketch".

Fig. 1.21 Command Surface From Sketches


The "Surfaces From Sketches" is displayed in the tree and select a "Sketch" command in
detail. After correctly choosing the selected "Sketch" is highlighted in light blue color (Fig.
1.22). The resulting creation of area confirm by the command "Generate" .

16

Introduction to numerical modeling of fluid flow

Command Generate

Surfaces From Sketch

Selection of Sketch for surface

Fig. 1.22 Selecting "Sketch" to create surfaces


The resulting surface after generation is shown in Fig. 1.23.

Fig. 1.23 The resulting surface


The next step is to create a computational grid in ANSYS Meshing, which starts from the
Workbench environment like DesignModeler program. When you return to the Workbench
environment, ANSYS Meshing is opened using the "Mesh" in created project, see Fig. 1.24.

17

Introduction to numerical modeling of fluid flow

Starting ANSYS Meshing

Fig. 1.24 Starting ANSYS Meshing


Before starting the ANSYS Meshing must be in the "Geometry" green check mark (tick), as
shown in Fig. 1.24. The green check mark indicates that the created geometry is fine.
Otherwise, it is necessary to return to the program DesignModeler and make adjustments
geometry.
Environment ANSYS Meshing is shown in Fig. 1.25. To create a computational grid in 2D
geometry the square (rectangles, squares) or triangular (triangles) elements can be exploited.
In this application the calculation region is in a rectangular shape so as elements shall be used
regular square elements. The possibility of creating a computer network are numerous. In this
case, a constant size of the elements is defined. Determining of the elements is based on the
assumption that in the transverse direction (y-axis, see Fig. 2.14) it is to have at least 20
elements. Dimension in the transverse direction is 0.033 m, so that the size of the elements is
0.00165 m. This size will be defined for the elements in the longitudinal direction. Setting the
parameters for generating a computational mesh with constant element sizes is shown in Fig.
2.27. After defining the size of elements in computational grids the creation of grid is done with
the command "Generate Mesh". The resulting computational grid is shown in Fig. 2.27. The
process how to get the definition of the grid parameters is also shown in Fig. 2.27.

18

Introduction to numerical modeling of fluid flow

Fig. 1.25 ANSYS Meshing

Fig. 1.26 Setting the size of elements of computational grid


The last step before defining the mathematical model is designation and naming of boundary
conditions on the borders of each model, which in this case corresponds to the individual edges
of the rectangle. Boundary conditions must conform to the conditions shown in Fig. 1.13.

19

Introduction to numerical modeling of fluid flow

Fig. 1.27 Identification and description of boundary conditions


Identification and naming of edges as boundary conditions is performed using the "Create
Named Selection" (Fig. 1.28). The command is activated by using the mouse, select the
appropriate earliest edge (eg. Input - Fig. 1.13) and right-click from the menu commands,
choose "Create Named Selection". The given boundary condition can then be arbitrarily
named. Names of boundary conditions for subsequent clarity in ANSYS Fluent will be defined
by Fig. 1.13. The designation and the naming of all boundary conditions is shown in Fig. 1.28.

Fig. 1.28 Identification of boundary conditions

20

Introduction to numerical modeling of fluid flow

After the creation computational grid, labeling and naming of all boundary conditions go back
to the Workbench environment. ANSYS Fluent starts using "Setup" (Fig. 1.29). Before running
the "Setup" it is necessary to ascertain whether the items "Geometry" and "Mesh" have a green
check mark. If not, then you must update the project with the command "Update Project".

Update of project

Start of ANSYS
Fluent

Fig. 1.29 Starting ANSYS Fluent


Work in Fluent
The first step is to run Fluent, where you define size of the area (2D) and in particular,
whether the calculation will be carried out with conventional or double precision, see Fig. 1.30.
Size of the area is automatically detected, which in this case is a 2D. Calculation of double
precision is selected by checking the "Options", see Fig. 1.30.

Fig. 1.30 Input parameters when running Fluent.

Work continues by confirmation of choosing OK. Follows checking network, showing all
21

Introduction to numerical modeling of fluid flow

borders and throughout the area command "Display". Select of all items in the "Surface"
appears boundary conditions and network. The network is to illustrate very rough. Practically,
it will be much smoother and compressed toward the walls.

Fig. 1.31 Rendering grid and boundary conditions

It is necessary to check the dimensions of the network "Mesh-Scale" where you see the real
size area. If the computational domain is created in other dimensions (mm, cm, ...), you can
use the "Scaling" and "Specify Scaling Factor" convert dimensions to the units meters (m), see
Fig. 1.32.

Fig. 1.32 Check the dimensions of grid ("Mesh Scale")


Another control relates to the number of grid cells "Mesh-Info-Size". It appears in the text box
line with information on the number of cells (Cells), faces (Faces) and nodes (Nodes) of grid,
see Fig. 1.33. The "Mesh Info Size" is available in the pull-down menu under Mesh.

22

Introduction to numerical modeling of fluid flow

Fig. 1.33 View the number of cells, areas and nodes.

Follows the checking of the existence of negative volumes in the network by command "Check
Mesh", see Fig. 1.34, which occurs in complex geometries and in this case it is necessary to
create a network again.

Fig. 1.34 Checking the network.

If all settings are correct, you proceed the menu from left to right and top to bottom. Follows
command "General", where you set the type of "Solver", and especially "Steady" or "Transient"
for the task stationary or time-dependent. It is necessary to check whether the problem solves
2D planar "Planar", axially symmetric "Axisymetric" or axially symmetric rotation "Axisymetric
Swirl". In Fig. 1.35 we can see, that there is possible to define the external force (eg. Gravity)
with acceleration "Gravity" in any direction and to change the physical units "Units" from SI unit
system to another unit or only selected variables.

23

Introduction to numerical modeling of fluid flow

Fig. 1.35 The "General"

In the "Models" (see Fig. 1.36) there is defined physical nature of the task according to the very
visual offers, whether it is a multi-phase flow "Multiphase", flow with heat "Energy", flow of
admixtures "Species", flow with discrete phases "Discrete Phase" or what type of flow
"Viscous. Here you can define laminar flow, turbulent flow using various turbulence models
and you can also solve the special case of ideal fluid flow "inviscid". Comments will be made
in the relevant chapters later. In this application, define the laminar flow model.

Fig. 1.36 Choosing a model for the solution of flow

In Materials their physical properties can be defined, first flowing medium "Fluid" and,
secondly wall material "Solid", see Fig. 1.37. If the material does not appear in the main menu
"Materials", then it must be connected in the "Create / Edit Material" button "Fluent Database"

24

Introduction to numerical modeling of fluid flow

where you will select and use the "Copy" to join the list of materials. Physical properties
(Density, Specific Heat, Thermal Conductivity, Viscosity, ...) are shown at the bottom of the
menu and can be changed according to the requirements of the investigator.

Fig. 1.37 Entering the appropriate materials and physical properties

The flowing material is water, so the material will be loaded into the system from the "Cell Zone
Conditions" command "Edit", see Fig. 1.38. Especially when inserting new materials, it is
necessary to check their choice and confirm here, otherwise there will remain first in the list of
material.

25

Introduction to numerical modeling of fluid flow

Fig. 1.38 Definitions of suitable material.

Follows the definition of boundary conditions. For each condition it is necessary to check and
correct these items. Offers are more complicated in the case of more complex models of flow.
Setting of input and output boundary conditions is shown in Fig. 1.39 and Fig. 1.40.

26

Introduction to numerical modeling of fluid flow

Fig. 1.39 Input boundary condition.

Fig. 1.40 Output boundary condition.

Subsequently, the initialization of the current flow field is made, ie. Definition of initial conditions

27

Introduction to numerical modeling of fluid flow

inside the entire area. The values are defined based on the input boundary conditions, see
Fig. 1.41.

Fig. 1.41 Initialization calculated from input boundary conditions


After initialization, the iterative calculation starts. You must specify the number of iterations
(Number of iterations). Default value is 0. The entered value is high enough, eg. 10000, when
it is assumed that the convergence is reached (Fig. 1.42). Convergence can be monitored
both graphically and numerically. List of residuals is activated commands "Display / Residuals
/ Residuals Monitors".

28

Introduction to numerical modeling of fluid flow

Fig. 1.42 Set the number of iterations and start calculating


Progress of residuals is shown in Fig. 1.43. Residual values (relative error) for each computed
variable (pressure - continuity, velocity in the direction x - x-velocity and the velocity in the y
direction - the y-velocity) must be less than 0.001. On reaching this accuracy the calculation is
itself terminated.

Fig. 1.43 Progress of residuals


The results of the calculation with a constant mean velocity at the inlet

29

Introduction to numerical modeling of fluid flow

The inlet velocity boundary condition is defined therefore the constant value of the mean velocity

us 0.05 ms-1 . Subsequently, the initialization of the flow field is done and the numerical calculation
starts. To illustrate the evaluation the velocity vectors, velocity profiles and filled isolines are displayd.
The velocity vectors are defined in each cell of the computational domain by command "Display /
Vectors / SetUp / Vectors", where it is possible to define vectors of selected quantity (the most common
is velocity and is also predefined) painted by different variable (eg. Temperature). The "Scale" will
allow to increase the size of the vector and "Skip" to skip a given number of vectors to be less dense.
Thus for Scale = 10 and Skip = 10 result is apparent from Fig. 1.44.

Fig. 1.44 Velocity Vectors with Scale=10 and Skip=10 (

[ms-1])

For better overview it is possible to create the helper sections of given coordinates in which the vectors
appear. Create a section of the value of x = 0.1 m can be made eg. by typing "Surface / Iso-suface /
Surface of Constant / Mesh / X-Coocordinate" and set the Iso-Values 0.1 and call it such X-coordinate0.1, see Fig. 1.45.

30

Introduction to numerical modeling of fluid flow

Fig. 1.45 Creating helper section for x = 0.1 m

In individual sections and boundaries the velocity profiles are defined by the command "Display /
Vectors / SetUp / Vectors". In the "Surfaces" used planes are selected, see Fig. 1.46. Then the vectors
are plotted by command "Display", see Fig. 1.47.

Fig. 1.46 Menu for the creation of the velocity vectors in the individual sections

Fig. 1.47 Velocity vector in the individual sections (

31

[ms-1])

Introduction to numerical modeling of fluid flow

The evaluation shows that the length of the computational domain leads to gradual formation of the
parabolic velocity profile. To achieve the desired flow profile (from the previous solution) the
computational domain is short. The contours of velocity magnitude are shown in Fig. 1.49 and rendered
with command "Display / Contours / Contours of / Velocity". Next, specify whether the magnitude of
velocity, velocity component or other variables related to velocity will be drown. "Levels" defines the
number of isosurfaces. By checking the "Filled" in the "Options" the filled isolines appear, otherwise it
is peers, see Fig. 1.48.

Fig. 1.48 Menu for the creation of filled-velocity magnitude isosurfaces

Fig. 1.49 The contours of velocity magnitude in the computational domain (

Similarly the plotting of isolines of static pressure is setting in Fig. 1.50.

32

[ms-1])

Introduction to numerical modeling of fluid flow

Fig. 1.50 Filled isolines of static pressure in the computational domain

p stat

[Pa]

Further evaluation presents the velocity profiles in the various sections from inlet to outlet with a step
0.05 m along the length of the computational domain, see Fig. 1.52. This figure is very instructive, if
it is necessary to compare the profiles of quantities in input, output, or in other sections of the field. It is
set with command Display/Plot/Y Axis Function/Velocity/Velocity Magnitude. In the "Plot
Direction" we put the value 1 for X, if we plot the dependence on X or value 1 for Y if we plot the
dependence on Y. Other variables are equal zero, see Fig. 1.51.

Fig. 1.51 Menu for the creation of velocity profile

The results indicate the formation of the velocity profile from the constant velocity value at the inlet to
the parabolic velocity profile at the outlet from the area (Fig. 1.52). The first image is a copy of the
screen and is suitable for fast orientation in the result. Far better result is obtained by checking in the
"Options / Write to File", which will offer a filename (file is in text format). This file is then read and
modify in Excel. The result is in the second part of the picture.

33

Introduction to numerical modeling of fluid flow

Fig. 1.52 Velocity profiles in different sections of the computational domain ( u [ms-1])
Another evaluation of the progress of static pressure along the length of the computational domain is at
the Fig. 1.53. Static pressure is evaluated in the axis of the computational domain.

34

Introduction to numerical modeling of fluid flow

Fig. 1.53 Progress of static pressure evaluated along the axis of the tube ( p stat [Pa])

35

Geometry and computational grid generation

2. Geometry and computational grid generation


2.1.

The term "grid" and its importance for the mathematical

modeling
The grid is a system of calculated field distribution in the partial consecutive cells in 2D
or 3D cells in two-dimensional or three-dimensional space ([23]). We can say that
computational grid coverage is the basis of mathematical modeling. Since a separate
mathematical model (a system of mathematical relations) is only a "passive" tool, which takes
effect only when it is applied to a specific problem (computational network coverage).
If you talk about mathematical models that are based on the numerical solution of
partial differential equations and thus require input and boundary conditions, we can say that
the possibility of realizing the tasks are very limited power of computer technology. This applies
several principles here:
calculation is even more difficult (slower), the more equations in the mathematical model
included in the calculation (according to the demands and complexity of the model);
calculation is even more difficult, the more the cell is calculated;
calculation is even more difficult, the less good network is prepared for calculation.

2.2.

Workbanch, grid elements

Workbanch is much broader than just the physical drawing and networking. Fig. 2.1
schematically illustrates the basic structure of the engagement of other programs into the
network.

36

Geometry and computational grid generation

Workbanch- FLUENT
Basic structure of program
FLUENT
Meshing
-Definition of geometry

geometry other CAD/CAE systems


grid

-2D/3D grid
grid on the border
of region

2D/3D grid

FLUENT
1. Geometry, generation of grid

2.
3.
5.
6.
7.
8.

Physical model
Boundary conditions
Physical properties
Parameters of calculation
Calculation
Evaluation,
result interpretation

grid

grid on the border


of
region
/in
volume

TGRID
-2D/3D grid

-hybrid grid

Fig. 2.1 Function of program Workbanch.


Numerical finite volume method is based on a system of non-overlapping elements,
finite volumes. Originally, the finite volume method is based on finite volumes of curvilinear
rectangles, rectangles in two-dimensional case and blocks or general hexahedron in threedimensional problems (see Fig. 2.2). Such a grid is called a structured grid. The fundamental
rule is that the elements boundary must adjacent with the single element boundary, so we can
not arbitrarily refine grid (it is analogous to the method of finite differences, including the
possibility of using indexing). Also, the resulting computational region is then a block or a
rectangle. Today there is starting to take a new approach of building a so-called unstructured
grid. The final volume is a 3D cuboid, tetrahedron, and pyramid prismatic element, the benefits
have been validated in problems of elasticity, solved by finite element method.

37

Geometry and computational grid generation

block

prizmatic
element

tetrahedron

pyramid

Fig. 2.2 Shape of finite volume


The above listed elements can now be combined to obtain the optimal grid in the walls vicinity
where the rectangles and blocks are used (to get more accuracy) and in other areas where
there are no large gradients of solved variables due to existence of the boundary layer, we
apply the remaining elements. They provide an easy change of grid density, see Fig. 2.3

Fig. 2.3 Using of different types of elements

2.3.

Criteria for grid quality assessment

Grid quality is assessed through:

cell size (with respect to the modeled process and the requirement for accuracy of
calculation)

suitability of structure in the cell compartment (eg grid refinement of interesting places
in terms of fluid flow) with respect to the particular type of task

quality of the cells (asymmetry - Skewness, the ratio of edges (faces) elements - Acpect
Ratio, etc.)

38

Geometry and computational grid generation

The most important criterion for cells quality assessment is the asymmetry when
assessing how much the cell shape closes to the ideal regular geometric shape in accordance
with the appropriate grid schema. If the cell is deformed in any way, its quality is worse.
Generally, the quality of each cell is expressed by dimensionless number in the range 0 - 1,
where 0 is the best result and 1 is worst result on the contrary, that is problematic cell for
calculations. This value is called the "degree of cell skew " (or "skewness measure"), or the
degree of deformation.

Optimal area
(equilatteral)

Optimal cell
(equilateral)

Circumscrib
ed circle

Aktual cell
Teoretical
circumscribed sphere
area

Aktual area

Fig. 2.4 The principle of assessing the cell

Fig. 2.5 The principle of assessing the cell

quality for 2D triangular elements ( "TRI")

quality for 3D grid formed by tetrahedrons (


TET)

To determine the quality of 2D cells, respectively. its rate of deformation is the following
relationship:

Skewness measure (TRI )

Soptimal Sreal

( 2.3.1 )

Soptimal

where Soptimal presents optimal cell area, Sreal real cell area (which may or may not be
optimal) and Skewness measure (TRI ) is term for "peace cell deformation" relating to the
2D triangular diagram of the grid. For other schemes we use similar logic. The resulting value
should not exceed 0.85. Should this happen, you need a cell or a grid structure to edit, order
not to endanger feasibility and accuracy of the calculation.
To determine the quality of the 3D cells corresponding to grid diagram consisting of
tetrahedrons similar relationship is applied:

Skewness measure (TET )


where

Voptimal

presents

optimal

Voptimal Vreal
Voptimal
cell

volume,

( 2.3.2 )

Vreal

real

cell

volume

and

Skewness measure (TET ) is a term for "peace cell deformation" relating to the 3D
tetrahedron diagram of the grid. The resulting value should not exceed 0.9. Should this happen,

39

Geometry and computational grid generation

you need a cell or a grid structure to edite.

Fig. 2.6 Approximate color range to assess the quality of grid cells
(0 - highest quality cells, 1 - the lowest quality cell)
The quality of the network can be tested and count in preprocessor Gambit 2.2.30, using
"Examine Mesh". After entering this command window it is available to provide several options
to control local or global mesh quality across the computing field. The test result is a grid cells
in color hue, which corresponds to the approximate range from color quality level of the cell.

2.4.

Pklad vytvoen st

Pro ilustraci je prezentovno


vytvoen
modelu

geometrickho
a

proudn

st
ve

pro
ventilu

een
pi

maximlnm vyuit dostupnch


prostedk pro konstrukci prvk
(0). Model je vytvoen v CAD
software Solid Edge (), kter
jako takov nem na program
Fluent, lpe eeno na program
Gambit,

dnou

nvaznost.

Proto se tento model musel

Fig. 2.7 ez 3D modelem otevenho pojistnho ventilu


(ry se ipkou zna smr proudu kapaliny)

exportovat
(uloit) ve formtu, kter je pro Gambit srozumiteln a doke nast potebn data o geometrii
modelu. Proto byl proveden export modelu ze Solid Edge do souboru o formtu IGES a STEP,
co jsou dva nejpouvanj soubory pro obecn exportovn dat, tedy pedevm geometrie
modelu. Po importu do Gambitu peklada tohoto programu bohuel nebyl schopen nast
celou geometrii. Proto se geometrie penesla jako mezioperace do programu Ideas, ze kterho
se dle exportovala do IGES formtovho souboru a nsledn opt do programu Gambit.

40

Geometry and computational grid generation

Model

je

konstruktrsk

een

jako

soust,

co

znamen z hlediska proudn


jako skopka kolem fluidnho
jdra, viz , se kterm pracuje
matematick
Nejdve

je

program

Fluent.

nutno

provst

separaci tohoto jdra od skopky


pomoc booleanovskch pkaz.
Odstrann

vech

sousti,

kter

objem

Fig. 2.8 ez modelem s vytvoenou

nejsou

oblast proudn

v bezprostednm kontaktu
s kapalinou (pruiny, tsnn, plastov obal atd.) se provede opt pomoc booleanovskch
funkc (prnik) a zstane jen objem vnitn, tedy objem fluidn (), ve kterm bude eeno
proudn.

Fig. 2.9 Vnitn objem pojistnho ventilu

Fig. 2.10 Vytvoen zjednoduen objem


s naznaenou oblast pro zhutn

Geometrie je periodick, je tedy mono vytvoit zjednoduen objem ( pvodnho objemu),


dle se zkrt vstupn pvod a provede se vyitn geometrie o velmi sklonn hrany, viz .
Toto zjednoduen pomh usnadnit a pedevm urychlit vpoet.

2.4.1. Vytvoen st
Vzhledem ke sloitosti 3D geometrie byla zvolena s s tetra/hybridnmi prvky (3D
tystny), kter je nestrukturovan s velikostmi hran jednotlivch element 0.17 a bylo
vytvoeno zahutnm kolem ostrch hran uitm size function v mst, jak je naznaeno na .
S takto vytvoenou st se vygenerovalo 1 500 000 bunk.

41

Geometry and computational grid generation

Fig. 2.11 Vytvoen s s naznaenm zhutnm kolem zvolench hran


Kvalita vytvoen st v tto oblasti byla posouzena uitm vyhodnocen kriteria
nesoumrnosti (skewness) a zobrazena v detailu graficky, viz .

Fig. 2.12 Detail st s vyhodnocenm kvality st.


V tomto ppad je vtina bunk sovan oblasti mlo nebo stedn deformovan, avak
nkolik bunk se pohybuje v zn velk deformace. To vak nevad, protoe pi prci ve
Fluentu bude tato sov domna pevedena na mnohostnn buky s jinou kvalitou st z
dvodu vraznho urychlen vpotu.

42

Geometry and computational grid generation

2.4.2. Definition of the boundary conditions in Gambit


Gambit is also a tool to define the properties of the walls in connection with the boundary
conditions and defining the internal areas for multiphase flow, or for walls with heat transfer.
So you can define two types of boundary conditions:

conditions on the boundary

the conditions for the continuity areas (continuum types), the specification of the area
of flow or solids.

Creation of boundary conditions is realized by specifying the properties of the selected model areas for
further work, thus creating pressure input, output, creating two symmetrical walls (rotating part) and
other walls that have no other function than to just enclose the "fluid" volume, see .

Tlakov vstup

Pressure inlet

Tlakov vpus

Pressure outlet

symetrick podmnka

Symmetry 1,2.

zbyl stny

Wall
Fig. 2.13 Boundary conditions

This kind of gid is exported to a file with suffix .msh and thus all work in the pack are ended.

43

Programov systm Fluent

3. Fluent software system


3.1.

Overview of methods for solving of partial differential

equations
The differential method is the oldest well-known method for solving differential equations,
which is used in the illustrative example of heat conduction in a rod. It consists in replacing the
derivatives by using differential Taylor rates, deriving differential equations and their solutions
The finite volume method is briefly told in three basic points

dividing the area into discrete volumes using general curvilinear network

definition of individual unknowns in finite volume and discretization

numerical solution of discretized equations

Fluent defines discrete final volumes using non-staggered scheme, where all variables are
stored in the centers of finite volumes.
Currently begins to form the finite element method in fow solving, which consists of those
points

multiplying the differential equation by basis functions

the dividing the area into triangular or quadrangular elements in the two-dimensional (2D)
area or tetrahedrons resp. hexahedrons in the three-dimensional (3D) area

integration over a finite element based on the variational principle

minimization of residual
Special method is a spectral method which is suitable for periodic flow in a single regions

(Taylor vortices arising in the gap between concentric cylinders, one of which rotates).
Other chapters are devoted only finite volumes.

3.2.

Integration by finite volume method

Integration of differential equations is easily explained when using Cartesian coordinates

and for the simplicity the equations of one spatial independent variables which can be thought
as the flow in the three-dimensional space, where all variables in the derivative direction
and

are

zero.

Flow

is

also

The equation of continuity is defined as follows:

44

stationary

(time

independent).

Programov systm Fluent

u
0
x

( 3.2.1)

momentum equation

uu 1 p u S
x
x x x

( 3.2.2)

equation for general scalar variable

u S
x
x x

( 3.2.3)

Fig. 3.1 Coordinate scheme using special notation of cells for 1D and 3D model instead of
subscripts, where N North, S South, E East, W West, F Front, B Back
By integrating these equations over the final volumes the initial differential equations
are converted into volume integral (dV=dx.dy.dz, dA=dy.dz), using divergence theorem (

a x

x
V

a y a z

y
z

dxdydz

a dydz a
x

dxdz a z dxdz on surface integral (in

geometry the capital letters indicate the center of finite volume and small letters indicate
boundaries, i.e. walls between the finite volumes ) and using discretization on the resulting
algebraic form as follows:

u
u
x dV x dxdydz u dA uA uA
e

( 3.2.4)

Integrating the continuity equation leads to the shape

uAe uAw 0

Physical expressions on the left side indicate the flow rate difference

Qe Qw 0

( 3.2.5)

By integrating the conservation of momentum equation it is obtained

45

Programov systm Fluent

uu 1 p u S
x
x x x
u uP
u u
1
A w P W
Qeue Qwuw pe pw A e E
xe
xw

( 3.2.6)

A SV

and the equation for the scalar quantity is adjusted using the same procedure to form

P
W
w P
Qe e Qw w e E
xe
xw

A S V

( 3.2.7)

In the previous equations there are used both coefficients and variables defined in the centers
of finite volumes and on the walls of these volumes (e.g. speed in equation (3.2.6)). This is a
disadvantage and it is absolutely necessary in the next to unify storage quantities only in the
centers of finite volumes. If this value will be determined on the wall, the interpolation scheme
for the interpolation of this magnitude in the center of the cell must be used. For illustration the
simplest scheme is used, i.e. the arithmetic mean and differential scheme is simplified. For
example equation (3.2.6) can be modified as follows:

uE uP
u uW
Qw P

2
2
u uE
u uW
1
pe pw A e P
w P

xe
x w

Qe

( 3.2.8)

A SV

and equation for general variable:

Qe

P E
2

Qw

P W
2

E
W
e P
w P
xe
xw

A S V

Then it is possible for this general equation in one-dimensional case to express P using the
values in neighboring finite volumes following modifications

Qe Qw

A
A
A Qe
A Qw

P e
W S V
e
w
E w

2
2
2
2
x
x
x
x
e
w
e
w

AP P AE E AW W SC

( 3.2.9)

where AP AE AW S P . Previous equation can be further adjusted in general

P Ai S P Ai i SC
i

( 3.2.10)

where the sum is performed over the neighboring cells (in 1D case is i=E, W; in 3D case i=N,
S, E, W, F, B,). Ai are coefficients, which contain contributions from convection, diffusion and

source members and SC and SP are the linearized source and S = SC + SP. P. The sign is
visible from z .
Equations solved in Fluent are an extension of the previous three-dimensional

46

Programov systm Fluent

curvilinear coordinate system. Each iteration consists of the steps that are shown in diagram
on .
END

START

solution of the equation for


conservation of momentum
check of
convergence
solution of the continuity equation
(pressure correction)
updating velocity, pressure
updating
of property fluid
solutions of the equations
for scalar variables
updating turbulent quantities
updating scalars

Fig. 3.2 Diagram of solution algorithm in Fluent 0


and are described as follows

equations of motion for the unknown velocity components are solved using the pressure
values in order to update the velocity field

velocity specified in the previous point can not satisfy the continuity equation, thus the
pressure correction and subsequent correction of velocity field shall be determined

using new values of velocity the equation for the turbulent energy k and dissipation is
solved

another equation to determine the temperature and other scalar variables are solved

physical properties of liquids (eg. viscosity) must be updated

checking the convergence

3.3.

Choice of interpolation scheme

FLUENT stores the components of velocity and scalar quantities in geometric centers of
finite volumes defined by grid. Because the calculation process, the required values of these

47

Programov systm Fluent

variables on the border of finite volume are used. These values are obtained by interpolation,
while you can choose between the following three variants differing order of accuracy
(ascending)

power interpolation

quadratic upwind interpolation (QUICK)

second-order interpolation / central difference

QUICK

During large changes in pressure and flow rozpotat should be available to compute with the
lowest order of accuracy (which is predefined) and after a few iterations to use higher order of
accuracy (for vortex flow with heat transfer, dissipation, etc.)

3.4.

Convergence.

3.4.1. Residuals
During flow simulation using Fluent it is very important to obtain convergent solutions.
The measure of convergence are residuals, which represent the maximum difference between
two corresponding values at the same grid point in two consecutive iterations. Residuals are
evaluated for all values computed in each iteration step and displayed for the selected
variables.

i+1-th iteration
Pi+1

i-th iteration

Pi

Fig. 3.3 Iteration in numerical steady calculation

Strictly speaking the measure is the sum of the changes of computed variables in the
equation for all cells in the area. After discretization the equation a conservative onedimensional in shape for the general variable is derived as

48

Programov systm Fluent

AP P AE E AW W SC
Residual R is than defined by sum for all P

R AE E AW W SC AP P

( 3.4.1)

R is the non-standard residual, which has a physical dimension corresponding to the


dimension of each member of the equation numerically. The pressure and velocity residuals,
for example, may differ by orders of magnitude. Therefore, the commonly used standardized
residual is defined as follows:

A
E

AW W SC AP P

A
P

( 3.4.2)
P

Residuals can be evaluated graphically in each iteration step, see Figure 3.4, and the
decreasing value of the residuals indicates good convergent task. Numerically exact values
can be observed in tab.3.1..

Fig. 3.4 Dependence of pressure and enthalpy residual on the number of iterations

Normalized reziduals

49

Programov systm Fluent

number

of pressure

velocity u

velocity v

entalpy

iterations
5.00000E+00

2.647l0E-01

3.62767E-01

4.01625E-01

3.49503E-01

1.00000E+01

4.21854E-02

7.31087E-02

6.09502E-02

1.15607E-01

1.50000E+01

1.61787E-02

5.57186E-02

6.77023E-02

6.28091E-02

2.00000E+01

9.91924E-03

4.11899E-02

5.52667E-02

4.24032E-02

2.50000E+01

7.78245E-03

3.71804E-02

5.02612E-02

3.19044E-02

3.00000E+01

6.71127E-03

3.33559E-02

4.61688E-02

2.55360E-02

3.50000E+01

4.96045E-03

3.13033E-02

4.34564E-02

2.11992E-02

4.00000E+0l

6.07668E-03

3.01096E-02

4.09786E-02

1.80783E-02

4.50000E+01

5.21358E-03

2.85215E-02

3.89507E-02

1.56768E-02

5.00000E+01

6.70681E-03

2.67667E-02

3.67708E-02

1.38577E-02

5.50000E+02

5.67326E-04

1.93322E-03

1.06027E-03

1.25243E-04

5.55000E+02

6.90138E-04

1.85336E-03

9.84238E-04

1.18761E-04

5.60000E+02

5.32427E-04

1.78220E-03

9.68897E-04

1.12885E-04

5.65000E+02

4.20846E-04

1.68717E-03

1.02076E-03

1.07433E-04

5.70000E+02

3.76113E-04

1.62817E-03

1.07420E-03

1.02499E-04

5.75000E+02

3.26542E-04

1.52597E-03

1.07393E-03

9.78981E-05

5.80000E+02

3.00249E-04

1.47025E-03

1.08095E-03

9.36884E-05

5.85000E+02

2.94075E-04

1.31286E-03

1.07175E-03

8.96829E-05

5.90000E+02

2.54086E-04

1.16047E-03

l.05932E-03

8.59168E-05

5.95000E+02

2.33645E-04

1.02260E-03

1.05061E-03

8.23961E-05

6.00000E+02

2.12518E-04

9.10742E-04

1.04899E-03

7.90365E-05

atd.

tab. 3.1
It is also possible to assess at what point is the highest residual value. Residuals are used to
evaluate convergence. Generally, the solution converges very well when the normalized
residuals are reduced to the value of the order of 1.10-3 and enthalpy residuals to the value of
the order 1.10-6.

3.4.2. Convergence acceleration


Convergence is influenced by many factors such as initial estimate, a large number of
cell, relaxing factor, etc.
To convergence accelerate, it is proposed to use an initial estimate of the variables
important for flow which is the best way to start solving task successfully. Otherwise, all

50

Programov systm Fluent

variables defined by initialization, are often considered to be zero at the beginning of the
calculation. The most important examples of setting the initial conditions are:

temperature for solving of heat transfer problems when using the equation of state

velocity in a large number of cells

temperature and velocity in soution of natural convection

flow with chemical reaction, when it is available to set the temperature and the mass
fraction of species

An important technique to accelerate convergence is the step by step technique (step by step
from simple to more complex tasks). To solve the problem of heat transfer it is good to start
the calculation from izothermal flow, in case of reacting flow to start the solution without the
inclusion of additives. The problem is defined at first complex and then would be necessary to
select the variables for which initial state will be resolved .

3.4.3. Relaxation
Due to nonlinearity of differential equations is not generally possible to obtain values of
all variables by solution of originally derived approximations of difference schemes.
Convergence can be achieved using relaxation, which reduces the changes of each variable
i
,
P

in each iteration. Simply said, the new value

in the finite volume containing point P

depends on the old value from the previous iteration P,i , the new value from the current
iteration P , i 1, vyp (or calculated changes P P , i 1, vyp P ,i and relaxation parameter

0,1 follows
P ,i 1 P .i 1,vyp 1 P .i
( 3.4.3)

resp.

P ,i 1 P ,i P

51

Programov systm Fluent

Fig. 3.5 Definition of relaxation parameter


These relaxation parameters can be set for all computed variables. Especially for velocity they
are defined very small, the order of tenths to hundredths. It is desirable during the calculation
to change these values and accelerate the convergence, ie. if the residual changes are large
in the transition from one iteration to another, to set a small relaxation factor and thus to damp
non-linearity, if the residual changes become constant, you should increase the relaxation
factors.

52

Turbulent flow of real fluid

4. Turbulent flow of real fluid


4.1.

Classification of real fluid flow

Flow of real fluids can be classified as laminar or turbulent flow.


In turbulent flow it was found (based on experimental measurements) that on walls of
the pipe or wrapped body the laminar layer of liquid motion creates. The laminar sublayer has
a thickness a several tenths of millimeters. Just above the laminar sublayer it is a transition
layer between the laminar sublayer and turbulent core, which is another area of turbulent flow.
Laminar sublayer and transition layer forms a turbulent boundary layer. Consider the
simplest case - a thin plate parallel to the fluid flow, see Figure 1.4 The pressure is constant
throughout the volume of fluid. The liquid is attached on the plate, because due to the influence
of viscosity the fluid layer is braked near the surface of the plate. Fluid velocity increases with
increasing the distance from the wall to the undisturbed flow velocity value v . Thickness of
the "brake" liquids, ie the boundary layer thickness is equal to zero at the leading edge and at
the trailing edge is maximum. In the boundary layer and the area around the nozzle plate the
stream lines are not parallel lines, but form a slightly diverging beam. Velocity component
perpendicular to the plate is much smaller and can be neglected.

Fig. 4.1 Boundery layer in case of plate wrapping 0


In front there is the laminar boundary layer, in the back there is the turbulent boundary layer,
between them the transition zone exists. Instantaneous border of turbulent boundary layer full irregular curve - is changing with time. Mean thickness of the turbulent boundary layer is
drawn by dashed line. The criterion for determining the transition from the laminar to turbulent
boundary layer is again a critical Reynolds number, whose value varies with the level of
turbulence flow. Usually is defined by Re v xk 5.10 5 , xk is the distance from the leading
k

edge where the laminar boundary layer is transferred to turbulent. It can be seen that the
determination of flow is not simple and straightforward and depends on the experience of the
investigator.

53

Turbulent flow of real fluid

by experimentally determined critical Reynolds number Re , defined by Re v s d where

vs

In the case of one-dimensional flow in the pipe the transition to turbulence is given

is the mean velocity in the pipe, d its diameter and kinematic viscosity. The critical value

Rekrit for a pipe of circular cross-section is the 2320. By Re Rekrit the ordered laminar flow
in the pipeline develops, the movement happens in layers and the fluid particles do not move
across section. If Re Rekrit , the flow is turbulent. At higher Reynolds numbers, the fluid
particles held disordered movement in all possible directions. This motion is irregular, random
related to motion of molecules of gas, but unlike molecules of the fluid particles can disintegrate
and thus lose their identity. The movement of particles perpendicular to the wall increases the
momentum flux to the wall and therefore the pressure drop in the flow direction is much greater
than in laminar flow. As a result of fluid mixing the velocity differences in different places are
much smaller in cross section than in laminar flow at larger distances from the wall.
The flow can be visualized by different methods to observe the differences in laminar
and turbulent flow see fig 4.2. In turbulent boundary layer the turbulent (coherent) vortex
structures characteristic just for of turbulent flow can be defined.

Fig. 4.2 Comparison of laminar and turbulent boundary layer 0


Characteristics of turbulent flow are:

random motion of particles of fluid, ie volumes containing a large number of


molecules. Motion of the particles consists of organized medium motion and random
fluctuations, which implies an analogy between the behavior of molecules (Brownian
movement of molecules) and the behavior of fluid particles. Due to fluctuations the
molecule can displace from the area of higher macroscopic velocity to the area of
smaller macroscopic velocity. When impacting to another molecule it is slowing down
and the second molecule ran faster and her hand over part of its momentum. Opposite
is the case, the molecule passes from the area of lower velocity to the area of higher
velocity and its momentum on impact increases. This leads to sharing of momentum

54

Turbulent flow of real fluid

between the fluid with many different areas of velocity, which is reflected in increasing
resistance to flow as an internal fluid friction.

shear stress, resulting in turbulent flow is not only determined by internal friction in the fluid
and velocity gradient, as is the case of laminar flow (Newton's law

dv
), but by the change
dy

in momentum of macroscopic particles, as a result of their penetration between adjacent layers.


This disordered movement causes the additional turbulent strain.

turbulent viscosity, which is not a physical constant of fluid, as the molecular viscosity
of laminar flow is, but it is defined as a complex functional dependence on fluid flowing
through the state and position of the point being considered, ie the sharing of
momentum fluctuations and distance from the wall. Therefore, the velocity profile for
turbulent flow in comparison with laminar is more flat (no parabolic character).

diffuse character of turbulence, when velocity gradients induced by turbulent


fluctuations of velocity are a source of tension and viscous dissipation of energy. This
increases the internal energy of fluid at the expense of the kinetic energy of turbulence.
Turbulence therefore needs a constant supply of energy to cover these losses quickly
otherwise expire.

4.2.

Turbulent flow

Flow is generally called turbulent if its variables exhibit chaotic fluctuations in both space
and time, see Fig. 4.3 .

Fig. 4.3 Fully developed turbulent flow - velocity as a function of time


The first work in the field of turbulent motion of fluids, one of the fascinating phenomena of
nature, has been dating from r.1883 and written by Osborne Reynolds, see [1]. Equations
describing such a flow have been known decades. Unfortunately, the problem of turbulence

55

Turbulent flow of real fluid

with regard to physics is still not resolved. Although currently the significant progress was done,
particularly in the area of nonlinear dynamical systems and chaos theory, a complete solution
of turbulence is not expected in the near future. However, interest in turbulence is not only
inspired by the desire to understand its essence, but a necessity to predict turbulent flow in
many industrial applications. Despite the randomness of turbulence the detailed studies
indicate that turbulent flow consists of the spatial structures that are usually called "eddies"
see Fig. 4.4.

a) Turbulent boundary layer

b) Turbulent vortex shadow

generated near the wall 0

generated by obstacle wrapping 0

Fig. 4.4 Cases of typical turbulent structures


It is an effort to characterize these structures by turbulence in order to explain the dynamics
of turbulence in the formation, evolution and extinction vortices "eddies" as a function of time.
It is clear that this research depends on the possibilities to obtain information on spatial
structures of turbulence and their evolution over time.
As presented earlier, the equations of fluid flow are well known. The rapid development of
computer technology in recent years allows to solve these equations using approach called
the numerical simulation, which is one of the tools for studying fundamental aspects of
turbulence. Its main advantage is that it gives detailed information about three-dimensional
structures that can not be measured in the laboratory.

4.2.1. Theory of turbulence


As mentioned in the introduction, turbulent flow contains spatial structure, called "eddies",
ie turbulent vortices of different sizes (see Fig. 4.4). Great votrtices containing energy break
down to smaller ones. This cascade process is terminated by smallest eddies dissipating
energy into heat, see .
Turbulent vortices are characterized by length scales l [m] (ie the area geometry
respectively characteristic dimension) and a velocity measure u [m.s-1]. In the following

56

Turbulent flow of real fluid

chapters these measures will be referred to as the macroscales.


On the other hand, the fluid in which the turbulence occurs, is characterized by its molecular
properties such as kinematic viscosity [m2.s-1]. The main consequence of kinematic viscosity
is smooth velocity gradient by molecular diffusion.
The above established parameters allow to introduce a dimensionless quantity known as
the Reynolds number:

Re l

u.l

( 4.2.1)

that can be modified as follows

l2
Rel

( 4.2.2)

u.l l T

l l Tt
u

where Tt denotes the time scale of turbulent eddies transfer of macroscale l and T denotes
the time scale of molecular diffusion. The flow can be characterized based on the value of
Reynolds number as follows [6], where

T Tt tj. Rel 1

laminar flow, processes of molecular diffusion prevail and turbulent

eddies vanish.

T Tt tj. Rel 1

turbulent flow, turbulent eddies prevail. Inequality is satisfied for

relatively small values of the flow parameters so you can make a conclusion that most of
the flow is turbulent.

T Tt tj. Rel 1 fully developed turbulence, this means that viscous matter, which
affect the time scale T can be neglected due to the dynamics of vortices, which appear
above the value Tt . Turbulent vortices in a fully developed turbulent flow are almost
inviscid.

T Tt , tj. Rel 1 transition state, laminar steady flow, which turns into turbulent,
unsteady, if exceeded the critical Reynolds number Rel. Flow initially becomes periodic.
This qualitative change in the behavior of the flow is called a bifurcation. When increasing
the Reynolds number further instability becomes to the flow and flow is creating fully
turbulent.
An important consequence of Reynolds similarity is dissipation, respectively dissipation

rate at which the turbulent eddies lose their kinetic energy and change it into heat. Dissipation
(to unit mass) [m2s-3] is defined as

57

Turbulent flow of real fluid

u3
l

( 4.2.3)

The result of dimensional analysis is length microscale of these dissipation areas, which is
called the Kolmogorov scale
1

3 4

( 4.2.4)

It is easy to deduce the relationship

Re l

3
4

Rel 4 .l

( 4.2.5)

12
10
1

10

generation

l , [m]

0.1

makromtko

0.01

mikromtko

transition

0.001

l , [m]

0.0001

disipation

0.00001

0.000001
1.E+02

1.E+03

1.E+04

1.E+05

1.E+06

1.E+07

Re [1]

0
1.00E+03

1.00E+04

1.00E+05

Re [1]

1.00E+06

1.00E+07

Fig. 4.5 Microscale and macroscale of turbulent vortices in a decimal logarithmic coordinates
Turbulent flow consists of the continuous vortex structures whose length scale (size) is situated
between l and , see Figure 4.5. There are two types of vortex structures near the wall structure
(hairpin, bursts, streaks) and the structure in the middle of the stream.

58

Turbulent flow of real fluid

Fig. 4.6 Turbulent eddies if the fluid flow, their splitting, conversion into heat

4.2.2. Methods of mathematical modeling of turbulent flow

MODELS OF TURBULENCE

Space Filtering

LES

DES

Time Averaging

Models of
turbulent
viscosity

Reynolds
stress
model - RSM

Direct Simulation

DNS

Turbulence modeling is still in research stage, which is constantly changing with the
progress in the mathematical, physical and technical sectors. In the numerical simulation of
turbulent flow, there are three different theoretical approaches that result from modifying the
default simplification of equations describing the flow ([4]).

DNS-Direct Numerical Simulation

LES-Large Eddy Simulation

RANS-Reynolds Averaged Navier-Stokes equations

59

Turbulent flow of real fluid

u
u

DNS

LES

RANS

Fig. 4.7 Methods of turbulence modeling

DNS - Direct Numerical Simulation is given by the large computer capacity


requirements because of the very fine grid. Number of grid nodes for DNS can estimate by the
order of the Kolmogorov microscale of turbulence (the smallest size of turbulent vortices) Np
Rel9 / 4. Number of nodal points of the grid is sharply increasing with Reynolds number, which
leads to time unrealistic calculations for the current computer technology.

Fig. 4.8 Estimation of grid number for DNS method

60

Turbulent flow of real fluid

LES - Large Eddy Simulation is based on modeling of large eddies, such as timedependent spatial formations that can be capture by grid. Eddies about the turbulent small
scales little involve in the transport phenomena, but their means is in the turbulent kinetic
energy dissipation due to viscosity to heat. These small vortices are parameterized by so called
subgrid models and removed by filtration turbulent field. Select the filter bandwidth, usually
corresponding dimension of grid cells, it is possible to achieve the number of grid cells, which
can be with current computer technology to solve.
For most engineering problems of turbulent flow the most widely used tool of statistical
turbulence models is remained. Models are based on the method of time averaging (RANS
Reynolds-Averaged Navier-Stokes equations) of turbulent flow quantities and the following
time-averaging procedure of balance equations remains.

4.2.3. Reynolds equations


Turbulent flow is characterized by a random character, but is statistically stable. In
principle it is possible to solve such a flow using the Navier - Stokes equations using the
statistical method of time averaging ([12]), which is technically manageable task. According
to O. Reynolds (1895) instantaneous values of parameters describing turbulent flow can thus
be decomposed into a part time averaging and fluctuation component (see Figure 4.9),
whichever is


where
T

1
d
T0
resp.

1
i
N i

Fig. 4.9 Fluctuation ane time averaging part


Reynolds rules (see 0).

, , 0, ,

. ,

where

( 4.2.6)

is correlation moment of fluctuation components.

After substituting sum of time-averaging and fluctuation into the continuity equation it is given:

61

Turbulent flow of real fluid

u j uj
0
xj

( 4.2.7)

u j uj

0
xj xj
After time averaging it is

u j uj

0
xj xj

( 4.2.8)

Continuity equation for time-averaging value has the form:

uj
0
xj

( 4.2.9)

Continuity equation for the fluctuation component is given by subtracting equation from the
equation :

uj
0
xj

( 4.2.10)

Similarly, you can put into the Navier - Stokes equations provided that fi f i , :

1 p p
2 ui ui
ui ui ui ui u j uj

fi

t
xj
xi
x 2j

( 4.2.11)

The result is the Reynolds equation formally similar to Navier-Stokes equation for averaging
the values that it contains also a member on the left:

1p
ui uiu j

2u

uiuj
. 2i fi
t
xj xj
xi
xj

( 4.2.12)

Equation for fluctuation component of velocity are:

1 p
ui uiuj uiu j uiuj
2 ui

fi
t
x j
x j
xj
xi
x 2j

( 4.2.13)

uiuj are so called Reynolds (turbulent) stresses, which exist only in case of turbulent flow.
Turbulent vortex can mix the fluid of different velocities in cubic volume, see a).

62

Turbulent flow of real fluid

a)

b)

u1u3

c)

u 3 u1

e)

d)

Fig. 4.10 Strain effects of Reynolds stress 0


Suppose that the fluid of different velocity flows around one area of the cube. Opposite surface
of the cube is not affected by the flow. Then the cube deforms due to velocity variations on
these two areas, see Fig. 4.10 b). The velocity at which fluid of a different velocity is transported
over the cube area, is the flow momentum. The effect of flow on cube is identical to the effect
of surface forces on the cube, which deforms it. Thus, turbulent momentum flux acts as a
stress. In this case, the fluid moving with a vertical fluctuation velocity u3 mixes with the fluid
moving with horizontal fluctuation velocity u1. The result is a component of Reynolds stress

u1u3 . Even if considering only one cube surface, the fluid moving in one of the three
coordinate directions can be mixed and the the result are deformation u1u1, u1u2 , u1u3 . Next,
suppose that the velocity u1 is by turbulence mixed on the upper area of the original cube, Fig.
4.10 c), with an estimated speed of u3. The resulting deformation is related to Reynolds stress,
Fig. 4.10 d). Deformation is identical, just has a different orientation. In Fig. 4.10 e) there are
the two deformation regardless of the rotation. In conclusion we can say that u u u u .
3 1
1 3
The same number of combinations will be generated for the areas perpendicular to the other
two coordinate directions. Total number is nine components of the Reynolds stress, similar to
the viscous stress, and true symmetry.

63

Turbulent flow of real fluid

u1u1 u1u2

u2u1 u2u2
u3u1 u3u2

u1u3 u1u1 u1u2



u2u3 u1u2 u2 u2
u3u3 u1u3 u2 u3

u1u3

u2u3
u3u3

Turbulent flow of momentum acts as the stress and thus is called the Reynolds stress, for
formally is replaced to j (j occurs in the variable

uj
ui

which the transport equation can be derived. Comes from where the summation index k

).

ui uiuk uiuk uiuk


2 ui
1 p

t
xk
xk
xk
xi
xk2

( 4.2.14)

This equation is multiplied by u j , then the equation is writing for component j and multiplying
by u i . Equations thus obtained are added together, time averaged to get the transport
equations for Reynols stresses:

uiuj
uu

uk i j
t
xk
xk

p
uiuj uk kj ui ik uj x uiuj
k

difzn transport

u u
u p u u
uiuk j uj uk i i j 2 i j
xk
xk x j xi
xk xk


produkce

( 4.2.15)

disipace

redistribuce

Reynolds stress tensor consists of nine members, while six are independent, so it is the six
equations, which form an extensive system of differential equations solvable difficult.
Therefore, attention will be paid to theories dealing with the simpler expression of the Reynolds
stress in equation (the turbulence models).

4.2.4. Boussinesq's hypothesis about eddy (turbulent) viscosity


The basis of mathematical models of turbulence, especially the simpler one there is the
description of a local turbulence state by eddy (turbulent) viscosity expressed by using the
velocity scale u and length scale l .

t l.u

( 4.2.16)

The task of the various turbulence models is to express the turbulent stress, heat flows or other
scalar variables using selected scale to determine the distribution of this parameter in the flow
field. Most of the models makes use of Boussinesq's hypothesis of eddy (turbulent) viscosity.
This hypothesis assumes that, as in laminar flow when Newtonian shear stress relationship is
applied in simplified two-dimensional flow, the turbulent stress and turbulent flows are
proportional to the mean velocity gradient, temperature, concentration, etc., ie.

64

Turbulent flow of real fluid

laminar flow

Boussinesq's

turbulent flow

molecule viscosity

hypothesis (analogy)

eddy turbulent viscosity

du
dy

t uv t

u
y

Generally

u uj 2

uj 2
k ij resp. uiuj t ui
k ij
uiuj t i
x
3
x
3
x
x

i
i
j
j

( 4.2.17)

where k is turbulent kinetic energy

1
k uj uj
2

( 4.2.18)

In great detail k

1
2

u u 2 u
1

j 1..3

u22 u32 . In contrast to laminar flow the turbulent

viscosity is not the physical property of fluid, but the flow. It is strongly dependent on the level
of turbulence and may vary significantly within the flow field. The equation of motion shall
be adjusted using Boussinesq's hypothesis as follows:

1p
ui uiu j
2ui
2ui

fi

t
t
xj
xi
x 2j
x 2j

( 4.2.19)

The equation for heat transfer or other scalar is adjusted in a manner consistent with the
derivation of the equation for momentum transfer for averaging values. After adjusting there
is appeared in these equations member ui representing the turbulent flow of heat or other
scalar variables and like is expressed

ui t

xj

( 4.2.20)

where t is turbulent diffusivity. Most models assume that the turbulent diffusivity is
proportional to the turbulent kinematic viscosity of the relation t

t , where is turbulent
t
t

Prandtl or Schmidt number for heat transfer or concentration.


From the viewpoint of turbulent viscosity modeling in the flow field the turbulence models can
be divided into three groups, zero - equation (algebraic), one - equation and two - equation
models, named after the number of additional differential equations.

65

Turbulent flow of real fluid

5. Statistical models of turbulence


The basic problem of turbulent shear flow calculation is in the presence of Reynolds
stress in the equations describing the mean motion of fluid, so the system of equations of
motion is not closed as in the case of laminar flow. Additional set of equations and empirical
relationships, which together with the equations of motion are solvable system of equations is
called the turbulence model. Turbulence models can be divided into several groups according
to Figure 1.5
Laminar
flow

Direct method
DNS

Matematical
models of
flow
Direct method

Turbulent
flow

Method of large
eddies - LES

Method of time
averaging RANS

Metod of Reynolds
stresses

Boussinesqs
hypothesis

Zero - equation
model

k-
Boussinesqs

One - equation
model

hypothesis

RNG k-
Two - equation
model

k- available

k-

Fig. 5.1 Scheme of flow solution methods.

66

Turbulent flow of real fluid

5.1.

Model of mixing length (zero - equation model) - Prandtl

The first model describing the distribution of turbulent viscosity t , Prandtl suggested.
Turbulent viscosity is expressed according to the mean velocity again in a simplified twodimensional form of the relationship

t t lm 2

u
y

( 5.1.1)

where lm is the mixing length defined by empirical relation l m y , where is von Krmn
constatnt (0.41). This model is suitable for modeling flow in the shear layer. The drawback is
that it assumes a local equilibrium, ie the production of turbulent kinetic energy (TKE) is equal
to the rate of dissipation of TKE. It does not affect the transport of turbulence.

5.2.

One - equation model

In order to affect turbulent transport parameters the differential transport equation for these
parameters must be solved. The simplest models use a transport equation for the velocity
scale of turbulent motion

1 2
1 2
2
2
k , kde k 2 u1 u2 u3 2 uj is kinetic (averaging) energy

of turbulent motion per unit weight. For k an exact equation can be derived from the Navier Stokes equations in the form:

k ujk
ulul
p
2k
u
u ul

jl 2 uluj l l

u j
t xj
xj 2

x
xj
xj xj

j
I
II

III

IV

( 5.2.1)

VI

where I change rate


II convective transport
III turbulent diffusion due to velocity and pressure fluctuations
IV molecule diffusion
V production due to shear stress
VI viscous dissipation
velocity and pressure further production

On the right side, there are members representing diffusion due to turbulent fluctuations of
due to interaction of Reynolds stress and mean

velocity gradient and dissipation due to the conversion of energy to heat. When operating
in the area also Archimedes force, on the right side the member corresponding to production
(destruction) of kinetic energy due to buoyant forces is also placed. In the equation thus derived
the unknown correlations in diffuse and dissipation member are found. To obtain a closed
system of equations, those members must be modeled by:

67

Turbulent flow of real fluid

uu p k
uu
k3/ 2
, l 2 l CD
uj l l t
k xj
x j
l
2

( 5.2.2)

where k a CD are empirical constants. After substituting for these members to the equation

for k and using the relations and for t and t has the equation for k form:

u j ul ul
k u jk
t k
k3/ 2

.
CD
t x j x j k x j t xl x j x j
l

( 5.2.3)

and in accordance to Kolmogorov-Prandtl relation it is


( 5.2.4)

t C k l

where C is empirical constant. Length scale l characterizing the turbulent motion is defined
by means of empirical relations similar to the mixing length model. One- equation models affect
transport of turbulence and are suitable mainly in cases where it is realistic to describe the
distribution of length scale l , but are not suitable for modeling of complex flow cases, when
you can not define with sufficient accuracy its distribution by the empirical relationship. Here it
is necessary to define additional transport equation and switch to two - equation turbulence
model.

5.3.

Two - equation k- model

Two - equation k- model determined turbulent viscosity by two transport equations for k
and . The model uses the Boussinesq 's hypothesis of eddy viscosity and relates t to k ,

and C
t C

k2

( 5.3.1)

The distribution k is given by the transport equation. The exact form of transport equation for

can be derived again from the Navier - Stokes equations, this equation contains complex
correlations, which again must be approximated. The resulting form of dissipation rate equation
used in the model is presented in this form:

u u u
k u jk
t k
k 3/ 2

t j l l CD
.
x x x
t x j x j k x j
l
l
j
j

( 5.3.2)

u j ul ul
u j
t
2

.
C

C2
k
t x j x j x j 1 t xl x j x j

( 5.3.3)

68

Turbulent flow of real fluid

5.4.

RNG k- model

This model is derived from the classical k model when using a mathematical procedure
called renormalization group method (RNG). Renomalization procedure applied to the
turbulence lies in the gradual elimination of small vortices, while the equations of motion
(Navier - Stokes equations) are transform by modifying turbulent viscosity, forces and
nonlinear members. Where it is provided that these eddies are connected with dissipation ,
the turbulent viscosity t or t

t
is dependent on the scale of turbulent eddies and the

RNG viscosity method constructs this viscosity using iterative elimination of narrow band wave
numbers. In detail, this method is given in [13] with that for the iterative process uses the
session

deff

A1l 3

,
dl
(l )2

where
e
l
u
c
e
l
o
m

t
n
e
l
u
b
r
u
t

e
v
i
t
k
e
f
f
e

( 5.4.1)

By integrating this equation over the length scale l for the initial condition mol and for the
scale l l L / Re 3 / 4 , which is the Kolmogorov dissipation scale corresponding to small
d
turbulent eddies, it gets

eff l mol 3 1

3 A1 4 4
l ld
3
4mol

l ld

( 5.4.2)

This equation is the interpolation formula to calculate eff l between viscosity and the
molecular viscosity of dissipation vortices with the limits l l d corresponding to high Reynolds
numbers. For high Reynolds number can be proved that the equation has the form

eff t 0.094l 2 u

( 5.4.3)

RNG method is about one-tenth slower than two - equation classic model, but in areas of
vortices (where the liquid is slow and there is a lower Re number) it is more accurate.

5.5.

Reynolds stress model (RSM)

Reynolds stress model involves the calculation of the individual Reynolds stress
through a differential transport equations in the form (see )

69

Turbulent flow of real fluid

uiuj
uu
p


uiuj
uk i j
uiuj uk kj ui ik uj
x
t
xk
x

k
k
difzn transport

u u
u p u u
uiuk j uj uk i i j 2 i j
xk xk
xk
xk x j xi


produkce

( 5.5.1)

disipace

redistribuce

In order closure equations Fluent approximates some members of equation , see [13]. The
calculated Reynolds stresses are then substituting into the equation for momentum transfer .
Fluent then solves:

six transport equations in the form for the Reynolds stresses

three transport equations for averaging velocity components and the continuity
equation
transport equation for dissipation

transport equation for turbulent energy near the wall in the case of explicit boundary
conditions for the voltage as the sum of equations

5.6.

Modeling of flow in near walls, wall functions

Modeling of the flow near the wall affects the accuracy of numerical solutions in the
whole area. Near the wall the solved variables are rapidly changing, significantly the transfer
of momentum and scalar quantities is here applied. Turbulence is suppressed close to the wall,
in the outer part of the boundary layer, however, a significant production of turbulent kinetic
energy due to Reynolds stresses and mean velocity gradient. Numerous experiments have
shown that the area near the wall, so called boundary layer can be divided into multiple parts.
Immediately near the wall the viscous (laminar) sublayer is placed, the flow is here nearly
laminar and molecular viscosity has a dominant influence on the transfer of momentum, heat
and mass. The outer part of the boundary layer becomes fully turbulent layer and turbulence
plays a dominant role here. between laminar and fully turbulent layer the transition layer
occurs, in which apply equally the effects of molecular viscosity and turbulence. Distribution of
the boundary layer is shown in Fig 5.2

70

Turbulent flow of real fluid

8
8

u-exp
u-lam
u-turb

7
6

experiment

5
4

u [m/s]

vnj vrstva

pln vyvinut turbulence

1
0
0.0

0.5

y [m]

u=(u*/). ln((y+yo)/y
)

1.0

u=u*(y+yo)/y
)

2
1

viskzn podvrstva

pechodov vrstva
i t
0.010

0
0.001

pln vyvinut turbulence

vnj vrstva

0.100

1.000

y [m]

Fig. 5.2 Distribution of area near the wall - in linear and logarithmic coordinates 0

5.6.1. Theory of wall functions by Launder and Spalding


Wall functions based on the theory Launder and Spalding are widely used mainly for
industrial applications. In turbulent flow the boundary layer consists of a viscous sublayer and
the logarithmic law for the averaging velocity in the turbulent field in a simplified twodimensional case:

ln E. y

( 5.6.1)

Dimensionless variables in this equation are defined as:

u
u

u y

( 5.6.2)

where

= von Krmnova constant (=0.42)

= empir. constant (=9.81)

= averaging flow velocity in point P

= friction velocity

= difference of point P from the wall in normal direction

= dynamic viscosityof fluid

Friction velocity u is determined by shear stress defined as Reynolds stress (variables have
an index s ).

71

Turbulent flow of real fluid

u2

w
2
2
uvs wvs

( 5.6.3)

where the total vertical momentum fluxes measured near the wall are determined by relations

Reynolds stresses are calculated using the Boussinesq 's approximation. For

xy uvs a zy wvs w xy2 zy2

turbulence

models in case of local equilibrium of turbulent energy production and dissipation rate are
defined by the relation

uv

u
u
w

y
y

( 5.6.4)

and can be derived in the logarithmic layer the equation for turbulent kinetic energy

u2
kp
C

( 5.6.5)

and dissipation

u3
p
y

( 5.6.6)

In the equations to the friction (shear) velocity appears as a constant quantity. The standard
wall functions are also defined in Fluent and are suitable for many applications. If the abovedefined functions are used for more general flow, shear rate may just cause problems. In
addition, to quantify the turbulent kinetic energy and dissipation the local equilibrium is
assumed, which is a very strong restriction in the flow of a complex character.

5.6.2. Modeling of flow near the wall in Fluent


MODELING OF FLUID FLOW
NEAR THE WALL

Wall function

Two-layer modeling

Standart wall

Nonequilibrium

function

wall funkction

Flow near the wall can be modeled in two ways:

72

Turbulent flow of real fluid

use of wall functions by which the region between laminar sublayer and transition
layer is spanning, where the molecular and turbulent viscosity is appears, ie the area
between the wall and the area of fully developed turbulent flow

near-wall modeling includes the viscous sublayer in connection with the delicacy of
the grid.

The essence of both approaches is illustrated in Fig 5.3

full turbulence

fluid flow

viscous +transient layer

wall
use logarithmic
wall function

near wall
modeling

Fig. 5.3 Access to the modeling of flow near the wall in Fluent.
Wall functions are a set of empirical relationships and functions that allow you to "link" variable
solved in a cell near the wall with the corresponding value on the wall. Wall functions include
logarithmic law for mean velocity and temperature and equations for turbulent quantities near
the wall.
FLUENT offers two basic variants of wall functions:

standard wall functions

non-equilibrium wall functions

In the case of flow with high Reynolds number wall function implementation significantly
reduces the calculation and provides economical and sufficiently accurate solution for most
engineering problems. This approach is inappropriate in the case flow with low Reynolds
number. In these cases it is necessary to choose the second approach, which allows modeling
in near wall region affected by fluid flow viscosity and in FLUENT is defined as

the method of modeling near the wall - two-layer model

73

Turbulent flow of real fluid

When using finite volumes the general wall functions suitable for complex flow were
derived and are given by relationships

u*

ln E. y*

( 5.6.7)

where

u
*

uP k P1 / 2C1 / 4

k P1 / 2C1 / 4 yP
y

( 5.6.8)

*
This logarithmic formula for average velocity is valid for y 30 60 . In Fluent the logarithmic
*
law is recommended for y 11.225 . When the grid density near the wall is such that

y * 11.225 in the cells adjacent to the wall, then applies the laminar relationship, ie

1
*
ln E. y
u
y*

( 5.6.9)

*
u

where

a y* are defined in . Dimensionless sublayer thickness yv* is easily determined as

the intersection of linear and logarithmic profile, and while some are

k 1p/ 2C1 / 4 yv
y
11.23

*
v

( 5.6.10)

Reynolds analogy between momentum and energy transfer allows you to define a
similar logarithmic law for mean temperature. The wall law for temperature includes two
different temperature dependence:

linear temperature dependence of the conductive sublayer, where the conductivity is


of critical importance

logarithmic law for the turbulent region, where turbulence effects are greater than the
conductivity

The thickness of thermally conductive sublayer is different from the viscous sublayer
thickness and depends on the type of fluid. The wall law for the mean temperature is defined
as follows:

T
T

Pr . y y yT
Tp c pC1 / 4 k 1p/ 2
1

q
Prt . ln Ey P y yT

where P is compuded by relation

74

( 5.6.11)

Turbulent flow of real fluid

/4 A
P

sin / 4

1/ 2

Pr
Pr

1 t
Prt
Pr

1/ 4

( 5.6.12)

and where

= von Karman constant(=0.42)

= empir. constant of wall (=9.793)

Tp

= temperature in the cell adjacent to the wall

Tw

= temperature on the wall

Pr

= molecular Prandtl number c p /

Prt

= turbulent Prandtl number (0.85 on the wall)

= Van Driest constant (=26)

= heat flux

Dimensionless thermal sublayer thickness yT in equation is calculated as the value of y, which


is defined by intersection of the linear and logarithmic dependence on the molecular Prandtl
number. Procedure for application of the wall temperature law is such that the molecular
Prandtl number is calculated from the specified physical properties of the fluid, then the thermal
sublayer thickness is calculated as the intersection of linear yT and logarithmic profile, and this
value is stored. During the iteration either linear or logarithmic profile is applied and depend on
the value of y to calculate the wall temperature Tw or thermal flux q'' (see equation ).

5.6.3. Non-equilibrium wall function


Where the flow near the wall is exposed to large pressure gradient, where you can not
assume local equilibrium condition, it is possible to achieve accurate results using nonequilibrium wall functions. The essence of non-equilibrium wall function involves the following
steps:

logarithmic law for the averaging velocity by Launder and Spalding will be specified
depending on the effect of pressure gradient,

balance of turbulent kinetic energy and dissipation in the cell adjacent to the wall is
calculated in two layers, ie, laminar and turbulent.

Wall function for the mean temperature does not differ from a standard wall functions for
temperature. Logarithmic mean velocity profile is calculated using the pressure gradient
according to the relationship

u~ 1
lnEy p
u

( 5.6.13)

75

Turbulent flow of real fluid

y y yv yv2
1 dp yv

u~ u
ln

2 dx k 1 / 2 yv k 1 / 2

( 5.6.14)

and yv is the physical thickness of the viscous sublayer defined by expression

yv

y*

( 5.6.15)

C1 / 4k 1p/ 2

wher y*= 11.225.

5.6.4. Using of wall functions and their limitations


Standard wall functions allow sufficiently accurate solution for large Reynolds numbers.
Non-equilibrium wall functions further extends the application of wall functions in cases where
the flow is exposed to the pressure gradient and imbalance.
This approach is not suitable if the flow is too different from the ideal assumptions on which
the wall functions method is based. These include the following:

flow with low Reynolds number, the great influence of wall (eg, flow in narrow gap, the
flow of a very viscous fluid, flow with low velocity)

strong

pressure

gradient

leading

to

boundary

layer

separation

significant effect of volume forces (eg centrifugal forces, the flow near a rotating disk,
Archimedes force)

three-dimensional flow near the wall (Ekman spiral, strongly curved 3D boundary
layer).

If the character of the flow corresponds to one of the above cases, and if it is necessary to
include these phenomena in solving the problem, then we proceed to the detailed modeling
of flow near the wall (near-wall modeling). For this purpose Fluent offers two-layer model.

5.6.5. Two-layer model (near-wall modelling)


In this model, the whole area is divided into two parts, in the first one the influence of
viscosity is significant, and the second one is the fully turbulent region. The boundary between
the two areas is defined by the turbulent Reynolds number

Re y

kn

( 5.6.16)

is the normal distance middle of the cell from the wall, in FLUENT it is interpreted as

where

the distance from the nearest wall:

it is the position vector at point and

76

(5.6.17)

is the position vector at wall.

where

rw w

rw


n min
r rw

is the

Turbulent flow of real fluid

unification of all the walls at the border. This interpretation allows a uniform definition in a area
of complex shape, which includes many walls.
In the fully turbulent region (Rey 200) the turbulent models described in Chapter 4.1 - 4.3.
are used. In the area affected by the viscosity near the wall (Rey 200), Wolfstein oneequation model is applied, where the equation for momentum transfer and the equation for k
is defined in a known manner, turbulent viscosity is calculated from the relationship

t C k 1 / 2l

(5.6.18)

and the rate of dissipation

k 3/ 2
l

(5.6.19)

Length scales l a l , which occur in these equations are defined as follows:

Re
l Cl y 1 exp y

(5.6.20)

Re y

l Cl y 1 exp
A

(5.6.21)

If in the whole area the Rey 200, then is not solved using the transport equation, but from
the algebraic equation (4.4.22 ). The constants A, A, occurring in these relationships are
defined according to the authors of Chen and Patel:
(5.6.22)

A = 70, A =2 cl

When using the RSM model, then the standard and non-equilibrium functions can be used as
wall functions, two-layer wall function model is not appropriate.

5.6.6. The influence of grid quality on the choice of wall functions for
various models of turbulence
Distance between cells adjacent to the wall from the wall will determine if the correct
approach of logarithmic wall functions is valid or if it is necessary to choose another one

*
logarithmic law is valid for y 30 60

*
two-layer prescription is valid for y 4 5 , ideally at least 10 cells should be in the

laminar sublayer

Spalart Allmaras model uses the-wall logarithmic function assuming a very fine grid (

y * 1 ) or grid for which it is y * 30 .

Large Eddy Simulation model uses a logarithmic wall function for very fine grid (oder

77

Turbulent flow of real fluid

*
of y 1 )

5.6.7. The influence of roughness on the wall function


Wall roughness is taken into account in relation for a logarithmic wall function as follows:

up

u y
ln E * u*B

u*

( 5.6.23)

where u p is the averaging velocity at the point P closest to the wall and y is the distance of
the point P from the wall. Function B depends on the type and size of roughness and it is
computed by B

ln 1 C Ks K s , where K s

K s u*
is a dimensionless roughness and K s

is a actual physical roughness in meters, CKs 0.5 for a regular roughness, higher values

CKs 0.5 1.0 are recommended for irregular roughness.


Roughness can replace regular objects occurring in a certain area (system of tubes in
the cooler, forest cover at flow monitoring in atmospheric circulation, etc.), but it is necessary
to consider how dense the grid near wall will be, if the roughness will not exceed the dimension
size of cells near the wall. Then the obstacles would have been modeled as wrapped objects.
Roughness affects the velocity profile closed to the wall (ie the velocity is reduced), but
all other variables such as temperature profile, the concentration of admixtures, etc. too.
100
U(z0=0.001)
U(z0=0.01)
U(z0=0.1)
U(z0=0.5)
U(z0=1)
U(z0=2)
U(moc)

90
80
70

z[m]

60
50
40
30
20
10
0
-4

-2

U [m/s]

Fig. 5.4 Graphs of velocity influenced by various aerodynamic roughnesses by the flow in
atmosphere

78

Turbulence models for compressible non-isothermal flow

6. A mathematical model of turbulence for compressible


non-isothermal flow
For simplicity, the standard two-equation turbulence model for compressible fluid flow
with boundary conditions involving turbulent variables is introduced 0, 0.

6.1.

k- two-equation model of turbulence

The equations can be derived by the procedure described in Chap. 0 and 0, and their
shape is as follows:
continuity equation valid for time averaging variables

u j

0
t
xj

( 6.1.1)

equation of momentum transferi

u i u i u j
p

t u i

t
xj
xi x j
xj

( 6.1.2)

i 3 g f c ij 3 u j f i

gravity force

Coriolis force

In case of two-equation k- model the equation are supplemented by the equation for turbulent
kinetic energy transfer k and dissipation rate .
u j ul ul
k u j k t k

.
gj t

x x x
t
xj
x j k x j
h x j
j
j
l

( 6.1.3)

u j t
2

.
c1 P c3 G c2
t
xj
x j x j
k

( 6.1.4)

where P and G represent the production of turbulent kinetic energy due to tension and buoyant
forces

u j ul u j

, G g j t
P t

h x j
xl x j xl

( 6.1.5)

where C1=1,44 , C2=1,92, C3=1, k = 1, =1.3 are constants defined empirically and

t
c is Prandtl turbulent number.
t p

For completation Reynolds stresses uiu j are defined by the relation

uiuj t

ui
xj

( 6.1.6)

where turbulent viscosity t is supposed as a function of length and velocity scale by

79

Turbulence models for compressible non-isothermal flow

Kolmogorov-Prandtl hypothesis:

t l.v C

6.2.

k2

( 6.1.7)

Boundary conditions for k- turbulent model

6.2.1. Mass flow rate


Velocity condition is used to define the boundary conditions at the flowing border into
the area at the flow of incompressible fluid. For compressible flow it is assumed the nonconstant density, which depends on state pressure and temperature variables and affects
volumetric flow and the velocity, which can lead to unrealistic results. In this case, the mass
flow rate is entered Qm Q uS .

6.2.2. Turbulent variables


Great importance in connection with the initial boundary condition is set of turbulent
parameters in the form of values of turbulent kinetic energy and dissipation rate. A more
accurate statement of these values is, of course, the profile obtained from empirical data or
from empirical formulas. If the profile is not precisely known, you can enter a constant value
estimated on the basis of experience. The turbulent quantities can be determined easily by
determinable variables such as turbulence intensity, the ratio of turbulent and molecular
viscosity, the hydraulic diameter and the length scale turbulence. The size of turbulent
fluctuations usually is described by intensity of turbulence. Assuming isotropic turbulence (

u1/ 2 u2/ 2 u3/ 2 ) the relative turbulence intensity is explained as the ratio of rms
fluctuation velocity component to the mean velocity in the same pointof the flow usually
expressed as a percentage. Usually there is measured only one directional component:

u1/ 2
I
u1

( 6.2.1)

Ordinary turbulent flow is anisotropic (heterogeneous in coordinate directions), but the


anisotropy is small. The biggest differences are between the longitudinal and transverse
component of motion. In general
/

uj uj
3uu

( 6.2.2)

/
The difference between the velocity fluctuations in the transverse direction u2 and u3/ is

usually very small. The value of intensity is approximately:


I [%]
0.05%

windtunnel

80

Turbulence models for compressible non-isothermal flow

turbulent flow generated by grate

1-5%

wake

2-10%

flow in the boundary layer and by the flow

5-20%

in the tube
drowned stream

20%

recirculation flow with low velocity u

100%

Turbulent scale l is limited by the size of the area, because turbulent vortices can not
be larger than the dimension of the area. Approximate value of the turbulent scale is
determined from the relation l 0.07 L , where L is the characteristic size or hydraulic diameter.
Turbulence intensity and hydraulic diameter are available variables that can be specified as
boundary conditions, the others are then converted by the following relationships
turbulent intensity

uj uj

3uu

l 0.07 L

turbulent scale
rate of turbulent viscosity

turbulent kinetic energy

dissipation rate

3
u.I .l
2

3
u2 nebo k 3 uI 2
2
2
3

k2
k2
C
C t

l
3
4

Of course, turbulent energy and dissipation velocity can also be defined directly. Depending
on the complexity of the mathematical model other variables associated with heat transfer or
other scalar variables can be defined. The value of turbulent intensity in the case of LES is
defined by a random velocity fluctuations at the input.

6.2.3. Pressure at inlet


Pressure condition at the inlet is used, if the total pressure or static pressure and flow
rate or velocity is known. This condition is suitable for flows with consideration of buoyant
forces.
At the input the total relative pressure (relative to the operating pressure) by
relationship derived from Bernoulli's equation is defined, while the density is constant or is a
function of temperature respectively mass fractions of admixtures:

ptot pstat

1
2
u
2

( 6.2.3)

For compressible fluid

81

Turbulence models for compressible non-isothermal flow

1
1
ptot pstat 1
Ma 2
2

where ptot

pstat

( 6.2.4)

total pressure
static pressure

u
u

c rTs 0.5

Ma

Mach number Ma

specific gas constatnt r

rate of specific heats c p

R
, M is molecular weitght
M
cV

sound velocity in fluid

a
M

The difference in the evaluation of the total pressure in the flow of air into the Mach number

0 1 is shown in
0.14

1200

0.12

p dyn
p stat
p celk
p tot stlac
Ma

p [Pa]

800

0.1

0.08

600
0.06
400

Machovo slo [1]

1000

0.04
200

0.02

0
0

10

15

20

25

30

35

40

-1

u [ms ]

Fig. 6.1 Dependence of the pressure on the velocity (air)


If the flow is influenced by the buoyancy forces, then the pressure field is incremented by
hydrostatic pressure:

p ref gxi p

( 6.2.5)

Is to be computed and evaluated the deviation from hydrostatic pressure. However, it is


necessary to specify a reasonable value of the reference density ref

82

at reference

Turbulence models for compressible non-isothermal flow

temperature. Input values of total and static pressure are added to the hydrostatic pressure.
When you specify pressure conditions, it is necessary to define flow direction using
velocity components or by flow rate in the normal direction to the boundary.
Static pressure at the inlet must be specified in the case of supersonic flow. Turbulent
quantities are determined identically as in the case of mass flow boundary conditions.

6.2.4. Pressure at outlet


The pressure boundary condition at the exit is entered in the form of static pressure.
Static pressure is defined only in the case of subsonic flow. If the flow is supersonic, so the
pressure and other variables are extrapolated from the flow within the area. If feedback occurs
during the calculation of flow, this condition is better than outflow because it achieves a better
convergence. For reverse flow but it is necessary to determine the real boundary conditions of
the other calculated values, which is the temperature and turbulent quantities, and other scalar
variables.

6.2.5. Outflow
Outflow is not suitable for compressible flow, unsteady incompressible flow with varying
density and in case of , if specified pressure at the inlet.

83

Vous aimerez peut-être aussi