Académique Documents
Professionnel Documents
Culture Documents
Series B
Teknillinen korkeakoulu. Aerodynamiikan laboratorio.
Sarja B
Espoo 2001, FINLAND
Report B-52
Ville Hmlinen
TEKNILLINEN KORKEAKOULU
TEKNISKA HGSKOLAN
HELSINKI UNIVERSITY OF TECHNOLOGY
Report B-52
Ville Hmlinen
Distribution:
Helsinki University of Technology
Laboratory of Aerodynamics
P.O.Box 4400
FIN-02015 HUT
Tel. +358-9-451 3421
Fax +358-9-451 3418
Ville Hmlinen
ISBN 951-22-5605-3
ISBN 951-22-6824-8 (PDF)
ISSN 1456-6990
Printed in Otamedia
Espoo 2001, FINLAND
Abstract
iii
Contents
Introduction......................................................................................1
2.2
Reynolds averaging................................................................5
2.3
2.4
3.2
3.3
4.2
4.3
4.4
4.5
5.2
5.3
Subroutine ANISFLUX..........................................................42
5.4
Subroutine FLUXP................................................................43
5.4
5.5
5.6
Contents
6.2
6.3
6.4
Bibliography ............................................................................................81
Appendix A, Subroutine EARSM1..........................................................87
Appendix B, Subroutine TTIMES ...........................................................91
Appendix C, Subroutine ANISFLUX.......................................................93
Appendix D, Subroutine FLUXP.............................................................95
Appendix E, Subroutine PEEKOO .........................................................97
Appendix F, Subroutine VELGRAD........................................................99
vi
Nomenclature
Roman alphabet
Model coefficient
aij
C
Cf
Cij( a )
C eff
E
e
fi
H
J
k
l
N
ni
P
Pij
p
qi
Re
S
S ij
T
t
ui
u
u
Cell volume
xi
Model coefficient
Skin friction coefficient
Coriolis tensor
Effective eddy-viscosity coefficient
Total energy
Specific internal energy
Body force vector
Matrix defined by the equation (4.44)
Matrix defined by the equation (4.45)
Turbulent kinetic energy, Heat transfer coefficient
Turbulent length scale
Symbol defined by the equation (4.25), Non-dimensional rotation rate
Cell face unit normal vector
Production of turbulence
Production of turbulence tensor
Pressure
Heat flux vector
Reynolds number
Cell face area
Mean strain tensor
Temperature
Time
Velocity vector
Friction velocity
Fluctuating component of the u
Cartesian coordinate vector
Dimensionless wall distance
vii
Nomenclature
Greek alphabet
ij
ij
ijk
ij
w
ij
T
ij
*ij
ijR
ijS
kS
Invariants
II S
II
III
IV
viii
Chapter 1
Introduction
In earlier days fluid dynamics, like other physical sciences, was divided into
theoretical and experimental branches. The equipment and vehicles involving fluid flow were designed and analysed by these two methods. With
the evolution of the digital computer, a third method called Computational
Fluid Dynamics (CFD) has become available. In this computational approach the equations that govern a process of interest are solved numerically at certain discrete points of space.
The evolution of numerical methods for solving ordinary and partial differential equations began approximately at the beginning of the twentieth
century. The automatic digital computer was invented in the early 1940s
and was used from nearly the beginning to solve problems in fluid dynamics. The explosion in computational activity did not, however, begin until the
high-speed digital computers began to be generally available in the 1960s
(Ref. [1]).
The three key elements of CFD are algorithm development, grid generation
and turbulence modelling. In this study only the third element is scrutinised.
Turbulence is inherently three-dimensional and time dependent, and an
enormous amount of information is thus required to completely describe a
Introduction
turbulent flow. This is beyond the capability of the existing computers for
virtually all practical flows. Thus, some kind of approximate and statistical
method, called a turbulence model, is needed.
Helsinki University of Technology has quite a long history in the field of
CFD. The development of the parallel multi-block Navier-Stokes flow solver
called FINFLO was initiated in 1987. The original two-man development
group has grown along with new applications. Nowadays, in 1995 established CFD group consists of about 15 researchers from the Laboratory of
Aerodynamics, the Laboratory of Applied Thermodynamics and the Laboratory of Ship Hydrodynamics, all utilising the FINFLO code. The FINFLO is
nowadays suitable for compressible, time dependent, laminar and turbulent
flows and has been applied to dozens of demanding research and development projects. The code is able to handle structured multi-block grids
and the equations are solved by an implicit pseudo-time integration scheme
using Roes flux splitting.
The CFD-group has always tried to keep up with the most recent turbulence modelling. Prior to this work the FINFLO included the following turbulence models; Baldwin-Lomax [2], Cebeci-Smith [3], Chiens low Reynolds number k model [4] and different variants of Menters k
model (BSL), (SST) [5] [6] and (RCSST) [7]. The aim of this thesis has
been to implement into the FINFLO a new turbulence model called the Explicit Algebraic Reynolds Stress Model (EARSM) developed by Stefan Wallin and Arne V. Johansson from Sweden. The formulation of the model is
presented briefly in this thesis, but the reader is encouraged to find the
complete description in reference [8]. The EARSM was programmed using
Fortran 77 and 90 as they are used throughout the main code. After the
programming was completed, four test cases were selected, calculated and
analysed to verify the correct implementation of the model.
Chapter 2
Governing equations and eddy-viscosity turbulence models
In this chapter the equations governing the flow field are presented in their
time-accurate and Reynolds averaged form. Then some general remarks of
turbulence are made and importance for the turbulence modelling is emphasised. At the end of the chapter the basic aspects of the so-called eddyviscosity turbulence models are discussed.
2.1
Navier-Stokes equations
The equations of viscous flow have been known for more than 100 years.
The exact number of basic equations depends upon personal preference,
but some relations are, however, more basic than others. Usually the basic
system of equations is considered to be the three laws of conservation for
physical systems:
- Conservation of mass (i.e. the continuity equation)
- Conservation of momentum (i.e. the Newtons second law)
- Conservation of energy (i.e. the first law of thermodynamics)
The continuity equation simply states that the mass must be conserved. In
the Cartesian coordinates xi this equation can be written as
( u i )
+
=0
t
xi
(2.1)
where is the density of the fluid, t time and u i the velocity vector. Tensor notation will be used throughout the text whenever practical. The second equation, conservation of momentum, states that momentum must be
conserved. It can be written in the Cartesian coordinates as
( u i ) (u i u j )
p ij
+
= f i
+
t
xi
xi x j
(2.2)
u u 2 u
ij = i + j ij k
x j xi 3 xk
(2.3)
where is the molecular viscosity and ij the Kroneckers delta. The third
equation, conservation of energy, states that the energy must be conserved. It can be written as
+
[u j (E + p )] (ui ij q j ) = 0
t x j
x j
(2.4)
E = e + u i ui
2
(2.5)
qi = k
T
xi
(2.6)
2.2
Reynolds averaging
1
ui = lim
T T
t +T
u (t )dt
(2.7)
In practice taking the limit to infinity means that the integration time T
needs to be long enough relative to the maximum period of the assumed
velocity fluctuations.
The Reynolds averaged Navier-Stokes equations (RANS) are obtained
from the continuity and momentum equations, (2.1) and (2.2), by taking the
time average of all the terms in the equations. The continuity equation does
not change since it is linear in terms of the velocity. However, the momentum equation is non-linear, which means that all the fluctuating components
do not vanish. An extra term, called Reynolds stress u iu j , appears in the
momentum equation (2.2). The result can be written as
( ui ) (ui u j )
p ij uiu j
+
= f i
+
t
xi
xi
x j
(2.8)
where the overbar has been dropped from the mean values. This convention will be used throughout the text whenever obvious. The equation (2.8)
presents the fundamental problem of turbulence. In order to compute all the
2.3
Many basic definitions of turbulence have been written, but probably the
most accurate was formed by Bradshaw in 1974:
and mixing and spreading rate. It also reduces the separation tendency of
the flow by energising the boundary layer (Ref. [15]).
The non-linearity of the Navier-Stokes equations leads to interactions between turbulent fluctuations of different wavelengths and directions. According to reference [14] the wavelengths of motion usually extend all the
way from a maximum comparable to the width of the flow to a minimum
fixed by viscous dissipation of energy. The main physical process that
spreads the motion over a wide range of wavelengths is called vortex
stretching. The turbulence gains energy if the vortex elements are primarily
oriented in a direction in which the mean velocity gradients can stretch
them. This is called production of turbulence. The turbulent kinetic energy is
then convected, diffused and dissipated.
The larger-scale turbulent motion carries most of the energy and is mainly
responsible for the enhanced diffusivity and attending stresses. The large
eddies have memory and their orientation is sensitive to the mean flow.
The large eddies randomly stretch the smaller eddies, cascading energy to
them. Small eddies lose their orientation preference and become statistically isotropic. Energy is dissipated by viscosity in the shortest wavelengths, although the long-wavelength motion at the start of the cascade
sets the rate of dissipation of energy. The shortest wavelengths simply adjust accordingly. This kind of turbulence is called equilibrium turbulence.
The ratio of largest to smallest scales increases rapidly as the Reynolds
number increases (Ref. [14]).
If the unsteady Navier-Stokes equations were calculated, a vast range of
time and length scales would have to be computed. In other words, a very
fine grid and very small time steps would be required. This is possible with
todays computers for only very simple problems with small Reynolds numbers. Thus a turbulence model is needed to account at least some of the
fluctuating motion by a statistical approach. The model should be, in principle, simple, broadly general and applicable, based on physics rather than
intuition, computationally stable and coordinately invariable. This is, of
course, an impossible list of requirements. The next sections of this chapter
describe traditional ways to model the turbulence using a so-called Boussinesq eddy-viscosity approximation.
2.4
u j u i 2 u k 2
ij
u iu j = T
+
ij k
xi x j 3 xk 3
(2.9)
For the zero-equation models, which do not make use of the turbulent kinetic energy k u iui 2 , the last term of the equation is zero. The Boussinesq approximation is used to compute the Reynolds stress tensor as the
product of the kinematic eddy-viscosity T and the mean strain-rate tensor.
The kinematic eddy-viscosity will be referred hereafter as the eddy-viscosity
for simplicity. The Reynolds stress components are calculated from the
eddy-viscosity for an incompressible flow as
2
uiu j = 2 T S ij ij k
3
(2.10)
1 u u j
S ij = i +
2 x j xi
(2.11)
2
T = l mix
dui
dy j
(2.12)
where l mix is the mixing length analogous with the molecular mean free
path in molecular mixing.
Well-known and much used algebraic models are the Baldwin-Lomax [2]
and the Cebeci-Smith [3] models, both of which are two-layer models with
separate expressions for the computation of the eddy-viscosity in each
layer. The Cebeci-Smith model is simple and easy to implement. Most
computational effort goes to the calculation of the boundary layer velocity
thickness. The Baldwin-Lomax model was formulated for use in computations where boundary layer properties such as the boundary layer and the
boundary layer velocity thickness are difficult to determine.
Algebraic models are conceptually very simple, economical in terms of
computer resources and rarely cause any unexpected numerical difficulties.
The user of the algebraic models must always be aware of the issue of incompleteness. Both the Cebeci-Smith and Baldwin-Lomax models work
well only for the boundary layer flows for which they have been fine-tuned.
They reproduce skin friction and velocity profiles well for incompressible
turbulent boundary layers provided the pressure gradient is not too strong.
However, they can not be applied to other flow cases, such as wake flows
or free jets.
Dk
ui
+
= ij
Dt
x j
x j
k 1
1
x 2 uiuiu j pu j
j
(2.13)
uiuiu j 2 is the turbulent flux of the turbulent kinetic energy, k , and the last
term p u j is the so-called pressure diffusion term. The last term is usually neglected because its contribution is very small.
The is the dissipation rate per unit mass, defined as
u i u i
xk xk
(2.14)
T = C l mix k
(2.15)
10
k rather than from gradients of mean velocity. This also implies that,
by obtaining the solution for the turbulent velocity scale from a differential
transport equation, some account is taken of the history effects, which become important in non-equilibrium flows. The differential transport equation
also removes the problems associated to the flow field points where the
local mean velocity gradient is zero.
The main drawbacks with one-equation models are largely the same as for
the mixing-length models. The history effects are not accounted for the
length scale l, which is still prescribed as an algebraic function of local
quantities. According to reference [18] the Spalart-Allmaras model performs
better than the Chiens k model in a decelerating flow with adverse
pressure gradient because it is specially designed for aerodynamical purposes. It is one of the most popular turbulence models in the field of aeronautical applications, especially in the U.S.A.
11
proposals have been presented. By far two of the most popular dependent
variables for the second variable have been the dissipation rate and the
Year
Variable
Symbol
Physical meaning
Kolmogorov
1942
k 1 2 l 1
Rotta
1951
Length scale
Rotta
1968
kl
kl
1968
k 3 2 l 1
Spalding
1969
kl 2
1969
lk 1 2
Eddy viscosity
Speziale
1992
lk 1 2
Frequency
Time-scale
The k model is the best-known two-equation turbulence model because it is simple to understand and use and relatively easy to program.
The model dates back to the late 1960s but the most used formulation, referred as the standard k model, was presented in 1972 by Jones and
Launder [19]. The eddy-viscosity used with the Boussinesq approximation
is calculated as
T = C
k2
(2.16)
where C is a model coefficient. The k model is used widely in practical engineering calculations even though the standard model can be used
only with attached flows with thin shear layers. The model fails to reproduce
the correct flow behaviour in many important flow situations, such as: ad-
12
verse pressure gradients, bluff-body flows, separation, streamline curvature, swirl, buoyancy, turbulence driven secondary motion, compressibility
and unsteadiness.
The k model is based on the choice of the specific dissipation rate as
the second variable. The eddy viscosity is calculated as
T =
(2.17)
Even though the wall boundary condition for the is more difficult to formulate and program than for the , the k model has found its way to
many engineering, especially aerodynamic, applications. This is mainly due
to the fact that it can also reproduce the flow field behaviour with adverse
pressure gradient. It usually also predicts separation better than the other
linear two-equation eddy-viscosity models. Actually, the k SST model
[7] predicts the separation fairly well, but it is no longer really a linear
model.
13
Chapter 3
Differential Reynolds stress models
3.1
15
3.2
The exact transport equation for the Reynolds-stress tensor u iu j is obtained from the momentum equation (2.2) by multiplying the instantaneous
u j
u
Du iu j
= uiu k
Terms I and II
+ u j u k i
t
xk
xk
u iu j
1
pui jk + pu j ik
Term III
uiu j u k +
xk
xk
p u i u j
+
x j xi
u j
2 ui
xk xk
Terms IV and V
(3.1)
16
17
3.3
With the exception of the convection and production terms of the equation
for the Reynolds stress tensor, all the other terms introduce new unknown
correlations that must be modelled in terms of known or knowable quantities in order to close the equations.
The diffusion term is a sum of three parts, which are called the viscous,
pressure and turbulent diffusion. The contribution of the viscous diffusion
term to the total rate of transport of u iu j is small at high values of the turbulence Reynolds number. This term is thus often neglected in high Reynolds number applications even though it could be included in the numerical simulations without any difficulty.
Little is known about the pressure diffusion term since direct measurements
can not be conducted. Estimates of its magnitude are done by indirect
methods, which contain all the errors made in the measurements of the
other terms. The consensus of several experiments, however, suggests
that this term is relatively unimportant and may therefore be neglected (Ref.
[15]).
Daly and Harlow [21] were the first to model the turbulent diffusion term
using the gradient transport hypothesis, meaning that the diffusion of a
quantity is assumed to be proportional to the spatial gradient of the same
quantity. According to reference [15] the turbulent diffusion can be written
as
uiu j u k = C S
uiu j
k
u k ul
xl
(3.2)
18
ducing better overall performance. Examples of such models are Hanjalic &
Launder [22] and Lumley & Khajeh-Nouri [23].
The redistribution term modelling is based on the Poisson equation for
the instantaneous pressure. It is obtained by differentiating the NavierStokes equations in a manner that is beyond the scope of this text. Then,
by subtracting the mean, the following equation for the fluctuating pressure
is obtained
2 uiu j uiu j
ui ui
1 2 p
=
+
2
xi2
x j xi
x j x j
(3.3)
where a sum of two very distinct terms is identified in the parentheses. The
first term of the sum contains only turbulence quantities and second term
contains mean-velocity gradients. When the equation is solved for homogeneous turbulence, the so-called Chous integral for the pressure-strain
correlation is obtained
1
p ui
=
x j 4
where
3 ul*u m* ui
ul 2 u m* ui dvol
2
+
rl rm rj xm rl r j r + ij , w
(3.4)
is a surface integral, which is important only when the typical size of the
energy containing eddies is of the same order as distance from a wall (Ref.
[15]).
Launder, Reece and Rodi (LRR) proposed that the first and the second
term in the parentheses of the equation (3.4) are modelled separately [24].
This is the traditional approach to modelling Chous integral and the great
majority of Reynolds-stress model developers have followed it.
Speziale, Sarkar and Gatski (SSG) proposed that the Chous integral could
be modelled as a whole [25]. This approach is rapidly becoming more
popular than (LLR) as it does not appear to require a specific model for the
surface integral ij,w .
19
The dissipation term is based on the fact that the molecular viscosity converts the turbulent kinetic energy into internal heat by acting on the smallscale, high frequency motions. Normally these motions can be assumed to
be isotropic. This implies that the dissipation rate of the Reynolds stress
component may be related to , the total dissipation rate of the turbulent
kinetic energy as
2
ij = ij
3
(3.5)
can be written as
D
k
=
C u k ul
+ (C 1 Pkl S lk C 2 )
Dt xk
xl k
(3.6)
20
Chapter 4
Formulation of an explicit algebraic Reynolds
stress model
4.1
The Reynolds stress components can be divided into an isotropic part and
an anisotropic part, which is simply defined as the deviation from the isotropic part. The Reynolds stress anisotropy is defined as
aij =
uiu j
2
ij
k
3
21
(4.1)
Also a transport equation for the Reynolds stress anisotropy tensor can be
construed in a similar was as the transport equation (3.1) for the Reynolds
stress component tensor. According to reference [8] it can be presented in
a rotating Cartesian coordinate system as
+
+ Cij( a )
=
1 +
Dt
xl
k xl
k
(4.2)
where the dissipation rate tensor ij and the redistribution tensor ij need
to be modelled. On the other hand, the production terms Pij and P = Pii 2
and the Coriolis term Cij( a ) do not need any modelling since they can be
calculated directly from the Reynolds stress tensor.
In flows where the Reynolds stress anisotropy varies slowly in time and
space, the transport equation for the Reynolds stress anisotropy tensor is
reduced to an implicit algebraic relation. Many inhomogeneous flows of engineering interest consist of a steady flow and equilibrium turbulence assumption can thus be made. Therefore the convection and diffusion of the
Reynolds stress anisotropy may be neglected. This is equivalent to the assumption made in reference [27] that the convection and diffusion of each
Reynolds stress component scale with the convection and diffusion of the
turbulent kinetic energy. This is indeed the traditional ARSM idea, to neglect convection and diffusion terms in the exact transport equation for the
Reynolds stress anisotropy. This means that the left-side terms in the
equation (4.2) can be neglected and set to zero
k Daij 1 u iu j u l u iu j ku l
=0
Dt
xl
k xl
(4.3)
The convection term Daij Dt is exactly zero for all stationary parallel mean
flows, such as fully developed channel and pipe flows. For inhomogeneous
flows the assumption of negligible diffusion effects can cause problems,
particularly in regions where the production term is small or where the inhomogeneity is strong. However, the ARSM assumption incorporates in a
natural way the effects of rotation, effects of streamline curvature and
three-dimensionality of the flow. The assumption results in an implicit alge-
22
braic equation for the Reynolds stress anisotropy tensor, which can be
written as
u iu j
k
P Pij ij ij
+ + Cij( a )
1 =
(4.4)
The production terms Pij and P = Pii 2 and the Coriolis term Cij( a ) do not
need any modelling since they can be calculated directly from the Reynolds
stress tensor. However, the dissipation rate tensor ij and the redistribution
ij need to be modelled. In a non-rotating coordinate system, the production term is normally written as implied in the equation (3.1). It is rewritten
here for the sake of completeness as
Pij = uiu k
u j
xk
u j u k
u i
xk
(4.5)
To illustrate the natural way in which rotational effects enter in this type of
formalism it is convenient to split the mean velocity gradient tensor into a
mean strain and a mean vorticity tensor. Symbols S ij and ij are used
here to represent these tensors, normalised with the turbulent time-scale as
u u j
S ij = i +
2 x j xi
u u j
ij = i
2 x j xi
(4.6)
(4.7)
A consistent formulation of the equation (4.4) can then be obtained by replacing the mean vorticity tensor by the absolute vorticity tensor. According
to reference [8], this can formally be done introducing the absolute mean
vorticity tensor
*ij = ij + ijS
23
(4.8)
ijS = jik kS
(4.9)
where ijk is the permutation tensor and kS is the constant rotation rate
vector of the system. The permutation tensor is unity when the indexes are
123, 231 or 312. It is minus unity when the indexes are 213, 321 or 132. In
other cases it is zero. Now, it is possible to rewrite the production term (4.5)
using the equations (4.1), (4.6) and (4.8). It is presented here normalised
by the dissipation rate as
4
= S ij (aik S kj + S ik akj ) + aik *kj + *ik akj
Pij
(4.10)
The Coriolis term Cij( a ) arises from the transformation of the convection
term. It is presented in this text for completeness, even though it was not
programmed into the FINFLO, as the EARSM was only implemented into a
non-rotating coordinate system. For rotational purposes, FINFLO uses a
semi-rotational formulation, which is presented in reference [28]. The
Coriolis term can be written according to reference [8] as
(4.11)
For the present modelling purpose the dissipation rate tensor is assumed to
be isotropic. The equation is written here normalised by the dissipation rate
as
ij 2
= ij
3
(4.12)
The redistribution term is modelled in two subparts, slow and fast redistribution, as proposed in reference [8]. According to reference [29], the slow
redistribution rate can be though to be linear in terms of the anisotropy tensor as
ij( s )
= C1aij
24
(4.13)
where C1 is a model constant. For the rapid redistribution rate the general
linear Launder, Reece and Rodi (LRR) model [24] is chosen. It is normally
written for a non-rotating system as
2
C2 + 8
30C 2 2 ui u j
+
k
Pij ij P
11
3
55
x j xi
8C 2 2
2
Dij ij P
11
3
ij( r ) =
(4.14)
Dij = uiu k
u k
u
u j u k k
x j
xi
(4.15)
ij( r )
=
+
4
9C 2 + 6
2
S ij +
aik S kj + S ik a kj a km S mk ij
5
11
3
7C 2 10
(aik *kj *ik akj )
11
(4.16)
When the equations for the production term (4.5), the Coriolis term (4.11),
the dissipation term (4.12), the slow redistribution term (4.13) and the fast
redistribution terms (4.16) are inserted to the equation (4.4), the implicit algebraic equation for the Reynolds stress anisotropy tensor is then obtained
as
C1 1 + aij
8
S ij
15
5 9C 2
11
7C 2 + 1
(aik kjR ikR akj )
11
2
(4.17)
Here the effective mean vorticity tensor ijR is dependent on the model
constant C 2 and therefore on the choice of the redistribution model.
25
The effective mean vorticity tensor ijR of the equation (4.17) can be written
as
ijR = *ij +
11
7C 2 + 12 S
ij
ijS = ij +
7C 2 + 1
7C 2 + 1
(4.18)
ijR = ij , for the reasons discussed earlier. The dissipation rate must be
modelled by a transport equation similar to the one used by the twoequation eddy-viscosity models. It should be noted that equation (4.17) represents a non-linear relation, since the production to dissipation ratio is defined as
P
aik S ki
(4.19)
The algebraic Reynolds stress model has been formulated in the form of
equation (4.17). In the next section this is further simplified.
4.2
The implicit ARSM relation for the Reynolds stress anisotropy tensor has
been found to be numerically and computationally cumbersome since there
is no diffusion or damping present in the equations. This usually means
convergence problems. In many applications the computational effort has
been found to be excessively large and the benefits of using ARSM instead
of the full Reynolds stress transport form are then successively lost, as
Wallin discusses [8]. Therefore a more simple and straightforward way to
calculate the Reynolds stress anisotropy is needed. A model, where the
Reynolds stresses are explicitly related to the mean flow field, is called an
explicit algebraic Reynolds stress model. It is much more numerically robust and has been found to have almost a negligible effect on the computational effort as compared to the linear k or the linear k model.
The procedure used here to obtain an explicit form is to avoid the nonlinearity by considering the production to dissipation ratio P as an extra
26
unknown. The resulting linear equation system can then be formally written
as
L ij (akl , S kl , klR , P ) = 0
(4.20)
1
1
a = 1S + 2 S 2 II S I + 3 2 II I + 4 (S S )
3
3
2
2
+ 5 S 2 S 2 + 6 S 2 + 2S IVI + 7 S 2 2 + 2S 2 VI (4.21)
3
3
+ 8 SS 2 S 2 S + 9 S 2 2S + 10 S 2 2 2S 2
II = trace( 2 ) = ij ji
III = trace(S 3 ) = S ij S jk S ki
IV = trace(S ) = S ij jk ki
2
V = trace(S 2 2 ) = S ij S jk kl li
Other scalar parameters may also be involved.
27
(4.22)
The value of C 2 in the rapid redistribution model, the equation (4.14), was
originally suggested to be 0.4 by Launder et. al. [24], but more recent
studies, such as [34] and [35], have suggested a higher value close to 5 9 .
This means that the last term in the ARSM equation (4.17) is quite small, if
not zero. By setting C 2 = 5 / 9 the last term of the equation (4.17) is exactly zero and a simplified but still implicit equation is obtained as
P
8
4
C1 1 + a = S + (a a )
15
9
(4.23)
The boldface notation of the tensor polynomial (4.21) has been used in
equation (4.23) again and will be used throughout the text whenever practical. The removal of the last term in the equation (4.17) gives a substantial
simplification of the solution, especially in three-dimensional mean flow.
The full model without the simplification from the equation (4.17) to the
equation (4.23) is further discussed in section 4.5.
The simplified implicit algebraic Reynolds stress equation (4.23) is then
multiplied by 9 4 to get a similar formulation as in reference [8]:
6
Na = S + (a + a )
5
(4.24)
N = C1 +
9 P
4
(4.25)
where
C1 =
9
(C1 1)
4
(4.26)
The so-called Rotta coefficient, C1 , is here set to 1.8 . With the simplifications made the equation system becomes quasi-linear, as the tensor equation for a is linear and the corresponding scalar equation for N is nonlinear.
28
The general form of the anisotropy, the tensor polynomial (4.21), is inserted into the simplified ARSM equation (4.24) where N is not yet
determined. Now N is considered to be a known parameter. This results in a linear equation system for the coefficients.
2)
The linear equation system can be solved using the fact that higherorder tensor groups can be reduced with the aid of the CayleyHamilton theorem. The solution is unequivocal because the ten groups
in the general form (4.21) form a complete basis for the system. The
solution consist of many pages of complicated tensor algebra and it is
not essential to reproduce it here. The -coefficients are now functions
of N , or the production to dissipation ratio.
3)
The next step is to formulate and solve the non-linear scalar equation
for N . This is done by inserting the solution of the coefficients into
the tensor polynomial (4.21) for the Reynolds stress anisotropy tensor.
4)
The final step is to insert the resulting equation to the simplified ARSM
equation (4.24). Then a non-linear scalar equation for N is obtained,
which for a general three-dimensional flow field is of sixth order.
The solution for the simplified ARSM equation (4.24) is presented in the
following section 4.3 for two- and 4.4 for three-dimensional mean flows. In
section 4.5, the solution for the model without the simplification made from
the equation (4.17) to (4.23) is also presented.
4.3
For two-dimensional mean flows the simplified solution of the ARSM equation is reduced to only two non-zero coefficients, which can be expressed
according to reference [8] as
1 =
N
6
2
5 N 2 II
6
1
4 =
2
5 N 2 II
29
(4.27)
In the equation (4.27) it is clearly seen that the denominator cannot become
singular since II is always negative. The non-linear equation for N in twodimensional mean flow can be derived by inserting the tensor polynomial
(4.21) for the Reynolds stress anisotropy tensor with the coefficients from
the equation (4.27), into the definition of N, equation (4.24). The resulting
equation is cubic and can be written following reference [8] as
27
N 3 C1N 2
II S + 2 II N + 2C1II = 0
10
(4.28)
The equation can be solved in a closed form with the solution for the positive root being
1
1
C1
3
3
P
P
P
P
sign P1 P2
+
+
1 +
2
1
2
3
N =
1
C1
P1
3
P
P
3
2
1
, P2 0
(4.29)
, P2 < 0
C12
9
2
P1 =
+
II S II C1
3
27 20
C1
9
2
P2 = P12
+
II S + II
10
3
9
(4.30)
It can easily be shown that N remains real and positive for all possible
values of II S and II . When the N is known from the equation (4.29), the
production to dissipation ratio is calculated from the equation (4.25) and the
system is completely solved. The formulation of this simplified twodimensional EARSM has been included in this text for the sake of completeness. The simplified two-dimensional model, and therefore this section, will also be used in the formulation of the simplified three-dimensional
EARSM in a manner to be presented in the next section. However, the
simplified two-dimensional EARSM is not discussed further.
30
4.4
1 =
N 2 N 2 7 II
Q
3 =
12 N 1 IV
Q
2 N 2 2 II
Q
6N
6 =
Q
6
9 =
Q
4 =
(4.31)
where all the other -coefficients are identically zero. The denominator Q
is calculated as
Q=
5 2
(N 2 II ) (2 N 2 II )
6
(4.32)
5
5
27
N 6 C1N 5
II S + II N 4 + C1II N 3
2
2
10
189
81
81 2
+ II 2 +
II S II V N 2 C1II 2 N
IV = 0
20
5
5
(4.33)
Equation (4.33) cannot be solved in a closed form, which means that this
approach gets into an inextricable dilemma and a recourse is necessary. A
31
II . The other invariants are III S = IV = 0 and V = II S II 2 . The resulting equation (4.28) is rewritten here for completeness
27
N c3 C1N c2
II S + 2 II N c + 2C1II = 0
10
(4.34)
IV = 1
V=
(4.35)
1
II S II + 2
2
and assuming that 1 and 2 are independent of each other. When the
equation (4.35) is inserted into the three-dimensional equation (4.33) for N
the result is after some rearrangement
) (
162 1 + 2 N c2
N = Nc +
+ O 12 , 22 , 1 2
D
(4.36)
(4.37)
32
It could also be considered that N was kept implicit during the iteration
procedure to obtain a steady-state solution. This would perhaps give
slightly more accurate results according to Wallin [8]. The consequences of
this on the stability and numerical behaviour are not, however, known and
therefore this approach should be avoided (Ref. [8]).
4.5
The removal of the last term in the equation (4.17) lead to a substantial
simplification of the solution, especially in three-dimensional mean flow.
The simplification was done by setting C 2 = 5 / 9 in the implicit equation
(4.17). The simplified implicit equation (4.23) was obtained, which is rewritten here as a reminder
P
8
4
C1 1 + a = S + (a a )
15
9
(4.38)
Na = A1S + (a a ) A2 aS + Sa trace(aS )I
3
(4.39)
N = A3 + A4
(4.40)
11(C1 1)
7C 2 + 1
11
A4 =
7C 2 + 1
88
11(7C 2 + 1)
5 9C 2
A2 =
7C 2 + 1
A1 =
A3 =
33
(4.41)
The values of the A-coefficients can be found from the table 4.1 for the different models.
Table 4.1. The coefficients of the general ARSM for the different models.
A1
A2
A3
A4
1.20
1.80
2.25
1.54
0.37
1.45
2.89
1.22
0.47
0.88
2.37
1.22
0.47
5.36
Model
According to reference [8], the solution of the linear equation system where
N = A1 1 + J A2 H
(4.42)
which can also be written in the standard form for linear equation systems
as
(N
J + A2 H ) = A1 1
(4.43)
According to reference [8], the matrixes H and J are written for a threedimensional mean flow as
0
2
0
0
0
H =
0
0
0
0
1
3
II S
0
0
2
3
2
3
II
0
0
0
0
0
IV
2 II
II S
1
2
II S
13 V
IV
1
3
0
0
0
0
III S
IV
II
II S
III S
0
1
2
1
3
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
34
1
1
3 V 6 II S II (4.44)
23 IV
II
3
1
3 II S
0
0
0
and
0
0
0
1
0
J =
0
0
0
0
0 0 II
0 0
0
0 0
0
0
II
2 II S
0
0
0
1
2
0
0
0
2V II S II
2 IV
0
II 2
0
2 IV
0
II
0
0
0
0
0 0
1 0
0
0
0
0
0 0
0 0
3
0
0
3
0
0
0
0
II S
0
2 II
0
0 0
0 0
0
0
0
0
0
1
0
0
0
0
0
0
0 0
II
0
1
2
2
II
2 II S II 2V
0
(4.45)
2 II
A1 N
30 A2 IV 21NII 2 A23 III S + 6 N 3 3 A22 II S N
2Q
AA
2 = 1 2 6 A2 IV + 12 NII + 2 A23 III S 6 N 3 + 3 A22 II S N
Q
3A
3 = 1 2 A22 III S + 3NA2 II S + 6 IV
Q
A
4 = 1 2 A23 III S + 3 A22 II S N + 6 A2 IV 6 NII + 3N 3
Q
1 =
5 =
9 A1 A2 N 2
Q
9 A1 N 2
Q
18 A1 A2 N
7 =
Q
6 =
9 A1 A22 N
Q
9A N
9 = 1
Q
10 = 0
8 =
(4.46)
35
15
Q = 3 N 5 + II A22 II S N 3 + (21A2 IV A23 III S )N 2
2
2
2
(4.47)
+ (3II 2 8 II S II A22 + 24 A22V + A24 II S2 )N + A25 II S III S
3
+ 2 A23 II S IV 2 A23 II II S 6 A2 II IV
The equation for N can also be derived for three-dimensional mean flow
and is a sixth order polynomial equation. According to reference [8] the expression is, however, much more complicated than the equation (4.33) and
of small practical interest. As for the solution of the simplified ARSM equation, the two-dimensional solution of N can also be used here as a first
approximation, as Wallin discusses [8]. The exact formulation of the solution of N is, however, clearly beyond the scope of this text.
It is noted that the general quasi-linear two-dimensional model has been
implemented into the two-dimensional version of the FINFLO. The test calculations with the model have been made using the SSG-coefficients of
reference [25]. There were no significant improvements of the results with
the general quasi-linear model compared to the results of the simplified
two-dimensional EARSM, as can be seen from references [36] and [37].
This is not necessarily true, though, for the three-dimensional model.
36
Chapter 5
Programming approach and written subroutines
In this chapter the programming of the EARSM is discussed. The turbulence model was implemented using Fortran 77 and 90 into the NavierStokes solver called FINFLO for three-dimensional flows. The implemented
version of the turbulence model is the simplified EARSM for threedimensional flows, which is described in section 4.4. In the beginning of the
chapter the five subroutines that were written are presented and discussed.
A brief description of the modifications of the boundary routines is also presented.
5.1
Subroutine EARSM1
The main core of the EARSM is a subroutine called EARSM1 where the
effective eddy-viscosity coefficient and the extra anisotropy components
are calculated. The source code is presented in the appendix A. A brief description of the main elements of the subroutine is presented here.
The EARSM was implemented to use the k model as a background.
The contribution of the EARSM is most easily implemented when the Reynolds stress components are divided into two parts. The isotropic part of
37
C eff =
1
(1 + II 6 )
2
(5.1)
Note that also a part of the 6 term is calculated with the 1 term. By this
formulation the effective eddy-viscosity coefficient adapts to the local strainand vorticity field by the invariants. This is the fundamental improvement of
the EARSM, because in the linear eddy-viscosity models the eddy-viscosity
coefficient can be though of being constant. This improvement removes the
need for the SST-limitation of the k model. The kinematic eddyviscosity used by the k model is calculated from the eddy-viscosity coefficient as
T = C eff k
(5.2)
u iu j = k ij 2C eff S ij + aij(ex )
3
(5.3)
The extra anisotropy tensor is written, using the boldface to represent the
second-rank tensors, as
a (ex )
= 3 S 2 II S I + 4 (S S )
3
+ 6 S + S II S IVI + 9 (S 2 2S )
3
38
(5.4)
where the coefficients are calculated from the equation (4.31). This way
the extra anisotropy can be added to the equations and to the calculation
routines as fully explicit additional terms. This is formally done in the different subroutine called ANISFLUX, which is presented in the section 5.3.
The strain and vorticity tensors are calculated from the main velocity gradients and scaled with the turbulent time-scale as
ui u j
+
S ij =
2 x j xi
ui u j
ij =
2 x j xi
(5.5)
S11
S = S12
S13
S12
S 22
S 23
S13
S 23
S 33
0
= 12
13
12
0
23
13
23
0
(5.6)
The invariants of the strain and vorticity tensors are needed for the solution
of the -coefficients and for the solution of the corresponding tensor components. They are calculated as implied by the equation (4.22). The square
invariant of the strain tensor is calculated as
(5.7)
It can be seen that the invariant II S can not become negative. The square
invariant of the vorticity tensor is calculated as
2
2
II = 2(12
+ 13
+ 223 )
(5.8)
It is noted that the invariant II is always equal to or less than zero. The
cube invariant of the strain tensor is presented here for the sake of completeness even though it is not used by the simplified version of the
EARSM.
39
III
2
= S11 (S112 + S122 + S132 ) + S 22 (S122 + S 22
+ S 232 )
(5.9)
The cube invariant, where the strain tensor is linear and the vorticity tensor
is squared, is calculated as
IV
2
2
= S11 (12
+ 13
) S 22 (122 + 223 ) S33 (132 + 223 )
+ 2( S12 13 23 + S13 12 23 S 2312 13 )
(5.10)
The fourth order invariant where both the strain and the vorticity invariants
are squared is calculated as
2
2
= (S112 + S122 + S132 ) (12
+ 13
)
2
) (122 + 223 )
(S122 + S 222 + S 23
2
(S132 + S 232 + S 332 ) (13
+ 223 )
2(S12 S13 + S 22 S 23 + S 23 S 33 ) 12 13
+ 2(S11 S13 + S12 S 23 + S13 S 33 ) 12 23
2(S11 S12 + S12 S 22 + S13 S 23 ) 13 23
(5.11)
The tensor component terms of the tensor component equation (5.4) for the
anisotropy tensor to be used with 3 are presented here as an example.
They are calculated as
1
2 1
2
2
II I = 12 13 II
3
3
11
2 1
II I = 13 23
3
12
2 1
II I = 12 23
3
13
1
2 1
2
2
II I = 12 23 II
3
3
22
2 1
II I = 12 13
3
23
40
(5.12)
The sixth term (33) of the tensor needs not to be calculated because the extra anisotropy is traceless. It can thus be calculated simply as
a33 = a11 a 22
(5.13)
The tensor component terms to be used with 4 , 6 and 9 are not presented here because of their complexity. Their formulation can be read
from appendix A where the subroutine EARSM1 is presented. It is thus unnecessary to repeat the whole calculation routine of the chapter four. The
reader is encouraged to consult the appendix A for further details.
It is noted that in the FINFLO formalism a different symbol is used for the
extra anisotropy tensor. The extra anisotropy tensor is referenced in the
code as b(ex), which is simply one half of the a(ex) used here in this text. The
relationship aij = 2bij is confusing, but it is based on the historical aspects
of the FINFLO notation and was thus used in the programming.
The correct programming of the subroutine was tested several times using
different approaches.
5.2
Subroutine TTIMES
tur =
1
*
(5.14)
vis = C
*k
41
(5.15)
where the model coefficient C = 6.0 . The actual turbulent time-scale, defined by the equation (5.15), goes to zero as the wall is approached because the turbulent kinetic energy vanishes. It would be unacceptable to let
the numerical turbulent time-scale also go to zero, because it would zero
the strain and vorticity tensors that are scaled with the time-scale. The
Kolmogorov scale stays positive but small when the wall is approached.
Therefore the lower limit of the turbulent time-scale is given by the Kolmogorov scale as
(5.16)
This is, in fact, the only near-wall correction used with the present form of
the EARSM.
5.3
Subroutine ANISFLUX
The FINFLO calculates the fluxes using the isotropic part of the Reynolds
stresses with the k model running on the background. However, also
the anisotropic parts of the Reynolds stress components have to be added
to the fluxes (see the equation 5.3). This is calculated in a subroutine called
ANISFLUX, which is presented completely in the appendix C.
First, the cell boundary values of the velocity, turbulent kinetic energy and
extra anisotropy components are calculated as simple arithmetic means of
the values on both sides of the boundary. Then the anisotropic parts of the
momentum fluxes Fi are calculated as
Fi = k Sn j aij
(5.17)
where k is the mean value of turbulent kinetic energy, S is the cell face
area, n j is the cell face unit normal vector component and aij is the mean
extra anisotropy component. The anisotropic part of the energy flux Fe is
calculated as
Fe = k Sni u j aij
42
(5.18)
where u j is the cell boundary value of the corresponding velocity component. At the end of the subprogram the anisotropic parts of the fluxes are
added to the momentum and energy fluxes. The reader is encouraged to
consult the appendix C for further details. This subprogram was also tested
separately for correct programming.
5.4
Subroutine FLUXP
During the programming and testing of the EARSM it also became apparent that a subroutine called FLUXP was to be modified. The subroutine calculates the circumferential fluxes for an axisymmetric flow case, and a correction of the fluxes similar to the subroutine ANISFLUX was also needed
in the subroutine FLUXP. As the discussion of the previous section also
applies to this section, no further details of the subroutine are presented.
The reader is encouraged to consult the appendix D for further details.
5.5
Subroutine PEEKOO
u u
2 u k
2
uiu j = T i + j
ij + k ij + aij(ex )
3
x j xi 3 xk
(5.19)
P = u iu j
u i
u j
(5.20)
In the subroutine also a possibility to force the flow laminar has been included as can been noted from the appendix E.
43
5.6
Subroutine VELGRAD
The values of the mean flow velocity gradients, the strain invariant and vorticity components are calculated and stored in a subroutine called
VELGRAD. It is presented in the appendix F. The gradient of the velocity
component u m in the direction of xn is basically calculated for a cell
( i, j, k )
as
u m
xn
(u m S n )i +1 2 (u m S n )i 1 2
Vi , j , k
(u m S n ) j +1 2 (u m S n ) j 1 2
+
(u m S n )k +1 2 (u m S n )k 1 2 ]
(5.21)
where the Vi , j , k is the volume of the cell, the (u m )i + 1 2 is the velocity com-
ponent on the cell wall and the (S n )i + 1 2 is the cell face area perpendicular
to the xn . The velocity component values of the cell walls are calculated as
a simple arithmetic mean of the centre values of the adjacent cells.
The calculation procedure is based on the finite volume method and depends on the grid geometry formulation, and further details are thus beyond
the scope of this text. If the reader is interested in the calculation method,
he or she is encouraged to get acquainted with the appendix F.
5.7
Boundary routines
There are ten different types of boundary conditions in the FINFLO [11]:
-
CON (connectivity)
PER (periodic)
MIR (mirror)
INL (inlet)
OUT (outlet)
EXT (external)
SOL (solid)
SNG (singularity)
44
Among the other quantities, also the extra anisotropy has to be connected
to another block face (routines CON and PER). Also, the extra anisotropy
has to be extrapolated to the ghost cells to ensure that the momentum and
energy fluxes are not miscalculated at the edges of each block (routines
MIR, INL, OUT and EXT). There are two columns or rows of ghost cells
around each block as shown in the figure 5.1.
45
Chapter 6
Test cases
In this chapter the test cases are presented and discussed. Four test cases
were selected to verify that the EARSM has been correctly implemented.
The test cases were calculated with Roes flux splitting using a third order
upwind biased MUSCL extrapolation.
First, the effective eddy-viscosity coefficient C eff and its connection with
the k BSL model were tested. A two-dimensional boundary layer over
a flat plate was chosen, as it is an easy starting point.
Secondly, the second order effects of the EARSM were tested with a fully
developed flow inside a rectangular duct. Secondary flows occur in turbulent flows along any noncircular duct due to the anisotropy of the Reynolds
stresses. The test case was thus used to verify the implementation of the
second order terms, namely 3 (S 2 II S I 3) and 4 (S S ) .
Thirdly, the third order effects of the implemented EARSM were tested with
a fully developed flow inside a rotating pipe. This is indeed a very good test
case, because the three-dimensional effects of the flow field are purely turbulence driven. This behaviour is very extreme since in most cases the
three-dimensional effects driven by turbulence are quite weak compared to
47
Test cases
The fourth test case selected to test the model was a flow over a cylinder
part of which rotates. This test case was selected to further verify the sound
implementation of the third order terms, which were already tested with a
fully developed flow. However, this fourth case is fundamentally different
than the third case because the flow is developing due to the sudden strain
caused by the moving surface of the cylinder. Also the transient behaviour
of the model is thus also tested.
6.1
A boundary layer flow above a flat plate with a zero pressure gradient was
chosen to be the first test case for the model. This is a very well-known flow
case with a variety of available approximate solutions, which makes it an
easy starting point. A large number of experimental measurement results
also exist, of which maybe the best-known are the ones of P. S. Klebanoff
presented in reference [38]. The results are presented in a point where the
local Reynolds number from the front edge of the plate is 4.2 million.
6.1.1 Grid
The grid consisted of two blocks. The flat plate itself was located on the
bottom of the second block. The first block was used to provide a correct
steady inflow in front of the plate. It consisted of 8 x 96 x 1 cells in the direction of x, y and z, respectively. The second block consisted of 128 x 96 x
1 cells. The grid is presented in figure 6.1.
Figure 6.1. The grid of the flat plate model. The first block is red and the
second green.
48
Test cases
The length, height and width of the first block were unity. The size of the
smallest cell on the lower right corner of the block, just before the beginning
of the plate was 0,01605 x 0,00001 x 1 units. The grid was geometrically
expanded to both directions using a constant ratio between two adjacent
cells.
The height and width of the second block were also unity. The length of the
block was five units. The second block used the same size of the smallest
cell just above the beginning of the plate on the lower left corner of the
block and the grid was geometrically expanded to both directions. At the
point where the local Reynolds number was 4.2 million the local xcoordinate measured from the beginning of the plate was 1.922, which was
the 75th cell of the block in x-direction. The results are drawn at this point.
The Reynolds number at the end of the plate was 10.927 million.
The non-dimensional y+ value of the lowest cell is defined as
y+
u y
(6.1)
(6.2)
1
w U 2 c f
2
(6.3)
y + = ReL
cf y
2 L
(6.4)
49
Test cases
edged that values of the y+ around unity are sufficiently small. The first cells
of the grid inside the boundary layer were thus small enough to capture the
large gradients of quantities that appear in the sublayer.
Block 1
EXT
MIR
MIR
CON
EXT
MIR
Block 2
CON
SOL
MIR
EXT
EXT
MIR
Where EXT means external or free stream condition, MIR symmetric mirror
image flow, SOL solid wall and CON connection between the face number
four of the first block and the face number one of the second block.
50
Test cases
6.1.3 Results
The calculation was carried out using Courant numbers of six on the fine
grid level and nine on the coarser grid levels. Three multi-grid levels were
used and it took about 8 000 iteration cycles for the convergence to be
reached. The criterion for the convergence was that the residuals of each
component of the momentum vector and the turbulence quantities did not
decrease any more in time. The total pressure, mass, kinetic energy and
turbulent kinetic energy remained also constant when the convergence was
reached. The same criteria was also used in the other test cases.
First, velocity profiles are shown in figure 6.3. The experiment results are
taken from the Klebanoffs report, reference [38]. The velocity profiles with
both the k BSL and the EARSM follow the experimental results closely
deviating slightly from each other only at the edge of the boundary layer,
because the k BSL has not really been fine-tuned to work perfectly
with the EARSM. The present model gives slightly wrong results in the areas where the strain dissappears, i.e. II S 0 , because the diffusion term
of the anisotropy tensor has been neglected. The fine-tuning of the k
BSL model was beyond the scope of the thesis. It has, however, been
started at the moment of writing.
1.0
0.9
0.8
u/U0
0.7
0.6
0.5
0.4
0.3
BSL
0.2
EARSM
0.1
Experiment
0.0
0.0
0.1
0.2
0.3
0.4
0.5
y/
0.6
0.7
0.8
0.9
1.0
Figure 6.3. Velocity profiles with the EARSM and the k BSL compared
to the experimental of reference [38]. Rex = 4.2 10 6 .
51
Test cases
BSL
1.4E+05
EARSM
P [m2/s3]
1.2E+05
1.0E+05
8.0E+04
6.0E+04
4.0E+04
2.0E+04
0.0E+00
0.0000
0.0005
0.0010
0.0015
0.0020
0.0025
0.0030
0.0035
0.0040
0.0045
0.0050
y [m]
Figure 6.4. Production of turbulence with the EARSM and the k BSL.
Rex = 4.2 10 6 .
The turbulent kinetic energy is presented in figure 6.5. The EARSM predicts
a slightly narrower boundary layer than the k BSL. The same conclusion can, of course, be made from figure 6.3.
25
BSL
20
EARSM
k [m /s ]
15
10
0
0.000
0.005
0.010
0.015
0.020
0.025
0.030
0.035
y [m]
Figure 6.5. Turbulent kinetic energy with the EARSM and the k BSL.
Rex = 4.2 10 6 .
52
Test cases
The Reynolds stress components are presented in figures 6.6 and 6.7 calculated with the EARSM. The agreement with the Klebanoffs experimental
results [38] is very good the only thing not predicted correctly being the
peak of u u very close to the wall. With the present EARSM, no wall corrections or damping functions are used to correct this minor shortcoming.
Such corrections have been tested with the two-dimensional version of the
FINFLO, but the effect on the flow field in general is only minor.
0.10
u/U, Experiment
0.09
v/U, Experiment
0.08
w/U, Experiment
u/U, EARSM
0.07
u/U, v/U, w/U
v/U, EARSM
0.06
w/U, EARSM
0.05
0.04
0.03
0.02
0.01
0.00
0.0
0.2
0.4
0.6
y/
0.8
1.0
1.2
1.4
Figure 6.6. The distributions of the turbulent intensities with the EARSM
compared to the experimental results of reference [38]. Rex = 4.2 10 6 .
0.0030
0.0025
0.0020
2
2u 0.0015
v/
U
Experiment
0.0010
EARSM
0.0005
0.0000
0.0
0.2
0.4
0.6
0.8
1.0
1.2
y/
Figure 6.7. The distribution of the turbulent shearing stress with the
EARSM compared to the experimental results of reference [38].
Rex = 4.2 10 6 .
53
Test cases
The skin friction coefficients of the plate are presented in figure 6.8. The
experimental results are from reference [40]. The k BSL gives almost
identical results with the experiments. The curve called White is calculated
with an equation for a turbulent boundary layer from reference [41]. The
transition point is fixed at the front edge of the plate. The equation can be
written as
Cf =
0.455
[ln(0.06 Rex )]2
(6.5)
where Rex is the local Reynolds number. The equation (6.5) gives slightly
higher skin friction coefficients than measured or calculated with k
BSL. The EARSM has not been fine-tuned yet and gives slightly smaller
skin friction coefficients.
0.0040
0.0035
0.0030
Cf
0.0025
0.0020
BSL
0.0015
EARSM
0.0010
Experiment
0.0005
White
0.0000
0.0E+00 1.0E+06 2.0E+06 3.0E+06 4.0E+06 5.0E+06 6.0E+06 7.0E+06 8.0E+06 9.0E+06 1.0E+07
ReX
Figure 6.8. Skin friction coefficients with the EARSM and the k BSL.
The experimental results are from reference [40] and the curve White is
calculated with the equation (6.5).
The connection between the eddy-viscosity coefficient of the EARSM and
the k BSL seems to be correctly implemented on the basis of this test
case. However, the underlying k model needs some fine-tuning.
54
Test cases
6.2
Noncircular ducts are used often in industry. It is well known that secondary
flows of Prandtls second kind occur in turbulent flows along these ducts.
The occurrence of this secondary flow pattern is of great practical interest
because it causes additional pressure losses and enhances mixing. According to reference [42], this secondary motion is generated by the imbalance between gradients of the secondary Reynolds shear stress and the
normal stress anisotropy. Although the strength of the secondary flow generated solely by the turbulence field is usually at least an order of magnitude weaker than the mean flow field, it still has profound effects on the
lower-order flow statistics.
A classical example of the secondary flow field is the fully developed turbulent flow in a straight square duct, which has been used as a test case
for the assessment of turbulence models for more than 25 years, for example [42] and [43]. The test case is considered to be in a fully developed
state and the stress transport effect and the convection term is thus of no
importance. Therefore, according to reference [43], the EARSM is a fairly
accurate approximation of the second-moment closure.
The results of the calculations are compared to the well-known experimental measurements conducted by Yokosawa, Fujita, Hirota and Iwata in reference [44].
6.2.1 Grid
Only a quarter of the duct was modelled because of symmetry. The grid
consisted of two blocks. The first block was a so-called inlet block, which
was used to give sound values for the density, momentum components,
total temperature, turbulence level and turbulent viscosity. The inlet block
consisted of 2 x 96 x 96 cells in the direction of x, y and z, respectively. The
second block, in which the actual solution was calculated, consisted of 96 x
96 x 96 cells. The grid is presented in figure 6.9.
55
Test cases
Figure 6.9. The grid of the rectangular duct. The inlet block is green and
the calculation block red. The figure has been stretched in the y-direction
for clarity.
The height and width of the inlet block were unity. Its length was four units.
The dimensions of the first cell next to the wall were 2 x 0.0003 x 0.0003
units. The height and width of the second block were also unity and its
length was 200 units. The second block used the same size of the first cell
just at the beginning of the duct. The Reynolds number referred to the axial
bulk velocity and to the width of the whole duct was 65 000. The nondimensional y+ value of the lowest cell can be calculated in this case as
cf y
2 H
y + = ReH
(6.6)
INL
SOL
SOL
CON
MIR
MIR
CON
SOL
SOL
EXT
MIR
MIR
56
Test cases
Where INL mean user specified inlet condition, where density, momentum
components, total temperature, turbulence level and turbulent viscosity are
given. CON means connection between the face numbers four of the inlet
and one of the actual calculation block.
6.2.3 Results
The results of the calculations were compared to the experimental results
found from reference [44]. The Reynolds number based on the axial mean
velocity and the channel width was 65 000. The results are drawn at a station close to the outlet where the flow was fully developed.
First the axial velocity distributions in three different cross sections are presented in figures 6.10, 6.11 and 6.12. The reference value h denotes the
height or the width of the quarter of the channel.
1.0
0.9
0.8
0.7
U1/UC
0.6
0.5
0.4
0.3
Experiment
0.2
BSL
EARSM
0.1
0.0
0.0
0.1
0.2
0.3
0.4
0.5
y/h
0.6
0.7
0.8
0.9
1.0
Figure 6.10. Axial velocity distribution in section where z/h = 0.2 with the
EARSM and the k BSL compared to the experimental results of reference [44].
57
Test cases
1.0
0.9
0.8
0.7
U1/UC
0.6
0.5
0.4
0.3
Experiment
0.2
BSL
EARSM
0.1
0.0
0.0
0.1
0.2
0.3
0.4
0.5
y/h
0.6
0.7
0.8
0.9
1.0
Figure 6.11. Axial velocity distribution in section where z/h = 0.6 with the
EARSM and the k BSL compared to the experimental results of reference [44].
1.0
0.9
0.8
0.7
U1/UC
0.6
0.5
0.4
0.3
Experiment
0.2
BSL
0.1
EARSM
0.0
0.0
0.1
0.2
0.3
0.4
0.5
y/h
0.6
0.7
0.8
0.9
1.0
Figure 6.12. Axial velocity distribution in section where z/h = 1.0 with the
EARSM and the k BSL compared to the experimental results of reference [44].
58
Test cases
The velocity distributions of the secondary flow in y-direction in three different cross sections are presented in figures 6.13, 6.14 and 6.15.
0.015
0.010
U2/UC
0.005
0.000
Experiment
-0.005
BSL
EARSM
-0.010
0.0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1.0
y/h
0.010
EARSM
U2/UC
0.005
0.000
-0.005
-0.010
0.0
0.1
0.2
0.3
0.4
0.5
y/h
0.6
0.7
0.8
0.9
1.0
59
Test cases
0.015
Experiment
BSL
0.010
EARSM
U2/UC
0.005
0.000
-0.005
-0.010
0.0
0.1
0.2
0.3
0.4
0.5
y/h
0.6
0.7
0.8
0.9
1.0
0.010
EARSM
U3/UC
0.005
0.000
-0.005
-0.010
0.0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1.0
y/h
60
Test cases
0.015
Experiment
BSL
0.010
EARSM
U3/UC
0.005
0.000
-0.005
-0.010
0.0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1.0
y/h
61
Test cases
means that only one eighth of the grid points are calculated. The calculation
is thus roughly eight times faster than on the first grid level. The third grid
level means that only one 64th of the grid points are calculated, the calculation being roughly 64 times faster than on the first level. There are certainly
other techniques for the testing of numerical uncertainty, but, according to
reference [39], systematic grid convergence studies are the most common,
most straightforward and arguably the most reliable.
Figure 6.18 represents the axial velocity distribution for the different grid
levels using the EARSM. The results are from the section where z/h = 0.2.
1.0
0.9
0.8
0.7
U1/UC
0.6
0.5
0.4
0.3
0.2
0.1
0.0
0.0
0.1
0.2
0.3
0.4
0.5
y/h
0.6
0.7
0.8
0.9
1.0
Figure 6.18. Axial velocity distribution in section where z/h = 0.2 with the
EARSM on different grid levels.
From figure 6.18 it is concluded that the third grid level was too coarse. The
second grid level was dense enough since the results of the second and
the first grid level are virtually similar.
For demonstrational purposes, also a picture of the cross section of the
quarter of the pipe is presented in figure 6.19. The vorticity in x-direction is
presented as a background colour. Some streamlines are presented in the
foreground with white lines.
62
Test cases
Figure 6.19. Axial vorticity magnitude and some streamlines with the
EARSM.
In the next section the emphasis is diverted to the third order terms.
6.3
Turbulent flow in pipes has been a popular case for the testing and evaluation of both theories and turbulence models during for many decades, for
example [45], [46] and [47]. According to reference [45], the problem of turbulent flow in an axially rotating pipe has come to be of considerable interest. The laminar counterpart of this problem is not interesting, because the
velocity profile relative to the rotating pipe is identical to its non-rotating
counterpart; i.e. the velocity profile is parabolic. However, for a fully developed turbulent flow there is a profound difference. The flow field is completely three-dimensional yet being a function of only one spatial coordinate
in a cylindrical coordinate system, i.e. radius.
63
Test cases
Relative to an observer, who is rotating with the pipe, the turbulent flow is
no longer unidirectional in the averaged sense. There is a non-zero tangential component of the mean velocity present. Because the continuity
equation forces the radial mean velocity to be zero, there is just one other
component of the mean velocity in addition to the axial component. Furthermore, both these components vary significantly with the rotation rate of
the pipe.
6.3.1 Grid
The grid consisted of a two-degree slice of the pipe because the flow is axisymmetric. The grid was constructed of two blocks. The first block was the
inlet block and consisted of 2 x 160 x 1 cells in the direction of x, y and z,
respectively. The second block, in which the actual solution was calculated,
consisted of 160 x 160 x 1 cells. The grid is presented in figure 6.20.
Figure 6.20. The grid of the rotating pipe. The inlet block is green and the
calculation block red. The figure has been heavily stretched in the ydirection for clarity.
The height of the first block was unity. Its length was 1.6 units. The dimensions of the first cell next to the wall were 0.8 x 0.0005 x 0.035 units at the
outer edge. The height of the second block was unity and its length was
600 units. The second block used the same size of the first cell just at the
beginning of the pipe. The Reynolds number referred to the axial mean velocity and to the pipe diameter was 20 000. The same Reynolds number
was used in the experimental measurements of reference [48], which the
calculations were compared to.
64
Test cases
y + = ReD
cf y
2 D
(6.7)
INL
SNG
MIR
CON
MIR
MIR
CON
SNG
PER
EXT
MOV
PER
Where SNG means singular condition meaning that all the fluxes are set
zero. CON means connection between the face numbers four of the inlet
block and one of the calculation block. PER means a periodic boundary
condition between faces three and six of the calculation block. MOV means
a moving wall for which the direction and magnitude are specified in a different file.
6.3.3 Results
The results of the calculations with three different rotation rates are compared to the experimental results of reference [48]. The Reynolds number
based on the axial mean velocity and pipe diameter is 20 000 and the same
Reynolds number was used also in the calculations.
65
Test cases
In figure 6.21 the axial velocity distribution is presented for three different
rotation rates for a fully developed flow.
1.6
1.4
1.2
U(r)/Um
1.0
N = 0, Exp
N = 0, BSL
0.8
N = 0, EARSM
0.6
N = 0.5, Exp
N = 0.5, BSL
0.4
N = 0.5, EARSM
N = 1.0, Exp
0.2
N = 1.0, BSL
N = 1.0, EARSM
0.0
0.0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1.0
r/R
Figure 6.21. Axial velocity distributions in a rotating pipe with the EARSM
and the k BSL compared to the experimental results of reference [48].
The tangential velocity distribution is presented in figure 6.22 for two different rotation rates for a fully developed flow.
1.0
N = 0.5, Exp
0.9
N = 0.5, BSL
0.8
N = 0.5, EARSM
0.7
N = 1.0, Exp
V(r)/Vm
0.6
N = 1.0, BSL
0.5
N = 1.0, EARSM
0.4
0.3
0.2
0.1
0.0
0.0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1.0
r/R
66
Test cases
N=
U (R )
U mean
(6.8)
N = 0.5.
67
Test cases
1.4
1.2
U(r)/Um
1.0
0.8
0.6
0.0
0.0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1.0
r/R
Figure 6.23. Axial velocity profiles with different grid levels calculated with
the EARSM.
1.0
0.9
0.8
0.7
V(r)/Vm
0.6
0.5
0.4
0.3
0.2
0.1
0.0
0.0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1.0
r/R
Figure 6.24. Tangential velocity profiles with different grid levels calculated
by the EARSM.
From figures 6.23 and 6.24 it is concluded that the third grid level was too
coarse. The second grid level was dense enough since the results do not
change between the second and the first grid level.
The subroutine EARSM1 (see the appendix A) and its correct implementation were also tested using an example found from reference [8]. The mo-
68
Test cases
d 2U 1 dU U 2 d (ka r )
ka
+
2 =
+ 2 r
2
r dr
r
dr
r
dr
(6.9)
where U is the local tangential velocity, r the local radial coordinate and
U (r ) = U (R )
r r kar
d
R r
(6.10)
where R is the radius of the pipe. According to reference [8], the first term
corresponds to the linear tangential velocity profile and the second term is
the correction that may give a parabolic-like profile if the ar anisotropy is
positive. The results of the test were consistent with this description and the
tangential velocity distribution was exactly as figure 6.22 presents. It is thus
not presented here.
After these different approaches to the test case it is deducted that also the
third order terms of the EARSM are correctly implemented. The EARSM
seems to be working properly with any kind of fully developed flow. The
emphasis is therefore diverted to a developing flow in the last section of this
chapter.
6.4
The fourth test case was an external axial flow over a cylinder. The first part
of the cylinder does not move and the flow is allowed to develop. At a certain point, where the flow is considered as fully developed, the cylinder
starts to rotate rapidly. This causes a sudden tangential strain into the flow
field and constitutes a relatively simple means of studying threedimensional boundary layer in a developing flow. The results of the calculations are compared to the experimental results made by Bissonette and
Mellor in 1974 [49].
69
Test cases
6.4.1 Grid
The grid consists of a two-degree slice of the cylinder and was constructed
of two blocks. The first block was the inlet block, which consisted of 2 x 192
Figure 6.25. The grid of the rotating cylinder. The inlet block is green and
the calculation block red. The figure has been stretched in the y-direction
for clarity.
The height of the first block was 2.2 units and the length 0.3 units. The grid
was constructed with an inner radius of unity and an outer radius of 3.2
units. The dimensions of the first cell next to the wall were 0.15 x 0.00009 x
0.035 units. The height of the second block was the same as the height of
the first block. The length of the block was 19.4 units. The second block
used the same size of the first cell just at the beginning of the duct. The
Reynolds number referred to the axial mean velocity and to the cylinder radius was 79 500 which is the same as the Reynolds number used in the
experiments of reference [49] that were compared to the calculations. The
non-dimensional y+ value of the lowest cell can be calculated in this case
as
y + = ReR
cf y
2 R
(6.11)
70
Test cases
INL
MIR
MIR
CON
MIR
MIR
CON
MOV
PER
EXT
MIR
PER
Where CON means connection with the face number four of the inlet and
one of the calculation block. PER means periodic boundary condition between faces three and six of the calculation block.
6.4.3 Results
The results are compared to experimental results of reference [49]. They
are drawn at the point were the local Reynolds number based on the mean
flow velocity and x-coordinate from the beginning of the rotating section is
730 000 and x R = 9.1 . The axial and tangential velocity distributions are
presented in figures 6.26 and 6.27.
71
Test cases
1.2
1.0
U/U0
0.8
0.6
0.4
BSL
0.2
EARSM
Experiment
0.0
0.00
0.05
0.10
0.15
0.20
0.25
0.30
0.35
0.40
y/R
Figure 6.26. The axial velocity distribution with the EARSM and the k
BSL compared to the experimental results of reference [49].
1.0
BSL
0.9
EARSM
0.8
Experiment
0.7
W/W0
0.6
0.5
0.4
0.3
0.2
0.1
0.0
0.00
0.05
0.10
0.15
0.20
y/R
0.25
0.30
0.35
0.40
Figure 6.27. The tangential velocity distribution with the EARSM and the
k BSL compared to the experimental results of reference [49].
Surprisingly, the velocity profiles of figures 6.27 and 6.28 are almost identical. Therefore some Reynolds stress distributions are also presented in figures 6.28, 6.29 and 6.30.
72
Test cases
25
BSL
20
EARSM
uu (m/s)2
Experiment
15
10
0
0.00
0.05
0.10
0.15
0.20
y/R
0.25
0.30
0.35
0.40
Figure 6.28. Reynolds stress component u u with the EARSM and the
k BSL compared to the experimental results of reference [49].
8
BSL
7
EARSM
6
Experiment
-uv (m/s)2
5
4
3
2
1
0
0.00
0.05
0.10
0.15
0.20
y/R
0.25
0.30
0.35
0.40
Figure 6.29. Reynolds stress component u v with the EARSM and the
k BSL compared to the experimental results of reference [49].
73
Test cases
6
BSL
5
EARSM
Experiment
vw (m/s)2
0
0.00
0.05
0.10
0.15
0.20
0.25
0.30
0.35
0.40
y/R
Figure 6.30. Reynolds stress component vw with the EARSM and the
k BSL compared to the experimental results of reference [49].
For demonstrational purposes, also a picture of the same Reynolds stress
component vw as in figure 6.30 is shown in figure 6.31 as this is the Reynolds stress component that corresponds with the tangential shear stress
component. The figure is calculated with the EARSM and shows an area of
the calculation space close to the cylinder surface. The points where the
rotation starts and stops are clearly seen in the figure.
Figure 6.31. The Reynolds stress component vw with the EARSM close
to the cylinder surface.
74
Test cases
The local skin friction coefficients are presented in figure 6.32 for the axial
friction and in figure 6.33 for the tangential friction. The local Reynolds
numbers are referred to the axial mean velocity and the distance from the
beginning of the rotating section.
0.008
0.007
0.006
Cf
0.005
0.004
0.003
Axial, BSL
0.002
Axial, EARSM
0.001
0.000
-2.0E+05
Axial, Exp
-1.0E+05
0.0E+00
1.0E+05
2.0E+05
3.0E+05
4.0E+05
5.0E+05
6.0E+05
Figure 6.32. The axial friction coefficients with the EARSM and the k
BSL compared to the experimental results of reference [49].
0.008
0.007
0.006
Cf
0.005
0.004
0.003
Tangential, BSL
0.002
Tangential, EARSM
0.001
0.000
-2.0E+05
Tangential, Exp
-1.0E+05
0.0E+00
1.0E+05
2.0E+05
3.0E+05
4.0E+05
5.0E+05
6.0E+05
Figure 6.33. The tangential friction coefficients with the EARSM and the
k BSL compared to the experimental results of reference [49].
75
Test cases
1.0
U/U0
0.8
0.6
0.4
0.05
0.10
0.15
0.20
0.25
0.30
0.35
0.40
y/R
Figure 6.34. Axial velocity profiles with different grid levels calculated with
the EARSM.
From figure 6.34 it is concluded that the third grid level was already dense
enough since the results do not change between the third and the second
grid level. The calculation was performed on the second grid level to make
sure that also the skin friction coefficients were also correct. The calculation
on the first grid level was useless in the terms of the computer resources.
Based on the results of this last test case it is concluded that the EARSM is
working properly also in the case of a developing three dimensional flow.
However, the results of the EARSM and k BSL are very similar and no
large differences are noted. This can not be seen as a shortcoming of the
EARSM mainly because the results of the k BSL model are already
very good. Still, it was expected that the results of the EARSM would differ
more from the corresponding results of the k BSL. The following discussion tries to explain why the author assumed such an expectation.
76
Test cases
77
Chapter 7
Summary and conclusions
79
EARSM under the application of a sudden strain component. This test case
also proved to be successful and increased the understanding in the physical and numerical behaviour of the EARSM.
It was also concluded that the second and third order terms of the EARSM
are usually of only minor importance in describing the flow field. Their effect
remains fairly small in most cases of engineering interest. However, there is
one major advantage in the formulation of the EARSM over the eddyviscosity models. The effective eddy-viscosity coefficient of the EARSM
adapts to the local strain and vorticity field by their invariants. In the linear
eddy-viscosity models there is no such eddy-viscosity coefficient, i.e. the
coefficient can be thought of as being constant. Actually, when the eddyviscosity coefficient of the EARSM is assigned a value of unity, the model
behaves similarly to the k BSL.
To sum the thesis up, it can be said that EARSM has proved to be an improvement of the flow solver FINFLO. The author hopes it will be used in
many practical applications in future.
80
Bibliography
[1]
braic Model for Separated Turbulent Flows, AIAA Paper, 1978, pp.
78-257.
[3]
gebraic Turbulence Models for Navier-Stokes Methods , AIAA Journal, Vol. 27, No. 1, 1989, pp. 5-14.
[4]
Aerodynamic Flows, In 24th AIAA Fluid Dynamics Conference, Orlando, Florida, U.S.A., 1993, AIAA Paper 93-2906.
81
Bibliography
[7]
Mixture of Thermally Perfect Gases to the FINFLO flow solver , Report No B-48, Series B, Laboratory of Aerodynamics, Helsinki University of Technology, Finland, 1995.
[11]
[12]
Navier-Stokes Solver FINFLO-SHIP, Masters Thesis, Helsinki University of Technology, Finland, 2000.
[13]
[15]
[16]
82
Bibliography
[17]
CFD applications course lecture material , Department of Mechanical engineering, UMIST, UK, 1996, (unpublished).
[21]
[22]
lence and Its Application to Thin Shear Flows, J. Fluid Mech., Vol.
52, 1972, pp. 609-.
[23]
83
Bibliography
[27]
[30]
[31]
els for Complex Turbulent Flows, J. of Fluid Mech., Vol. 254, 1993,
pp. 59-78.
[34]
[35]
84
Bibliography
[37]
with Zero Pressure Gradient , Report 1247, National Advisory Committee for Aeronautics (NACA), U.S.A., 1955.
[39]
[40]
[42]
turbulent flow in a square duct with roughened walls on two opposite sides, Int. J. Heat and Fluid Flow, Vol. 10, No. 2, 1989, pp. 125130.
[45]
85
Bibliography
[46]
rotating pipe, Int. J. Numer. Meth. Fluids, Vol. 33, 2000, pp. 681694.
[47]
Near-Wall Effects in Axially Rotating Pipe Flow by Elliptic Relaxation, AIAA Journal, Vol. 36, No. 7, 1998, pp. 1164-1170.
[48]
in an axially rotating pipe, Int. J. Heat and Fluid Flow, Vol. 17, No. 5,
1996, pp. 444-451.
[49]
Dimensional, Shear-Driven, Turbulent Boundary Layer, AIAA Journal, Vol. 25, No. 1, 1987, pp. 35-42.
[51]
model for turbulent curved flows , Phys. Fluids, Vol. 9, 1997, pp.
1067-1077.
[53]
86
SUBROUTINE EARSM1(VIS,EPS2,EPS4,RK,DUIDXJ,BIJ,IMAX,JMAX,KMAX,TTS)
*****************
C
C
C
P3,P6,TT,C1,C1P,C1P3,C1PSQ,PRS,EPS2UP,EPS4UP
:: ISTRID,JSTRID,IL,KA,K,KK,J,JJ,I,L
S11,S22,S33,S12,S13,S23,W12,W13,W23
S11SQ,S22SQ,S33SQ,S12SQ,S13SQ,S23SQ,W12SQ,W13SQ,W23SQ
HTTS,SII,WII,WIIP3,SWWIV,SWWIVTT,SSWWV
TERM3C11,TERM3C12,TERM3C13,TERM3C22,TERM3C23
TERM4C11,TERM4C12,TERM4C13,TERM4C22,TERM4C23
TERM6C11,TERM6C12,TERM6C13,TERM6C22,TERM6C23
TERM9C11,TERM9C12,TERM9C13,TERM9C22,TERM9C23
P1,P2,SQP2,PM,PMP,SQPM,FACOS,FNC,D,FII1,FII2,FN,FNSQ,Q,PQ
BETA1,BETA3,BETA4,BETA6,BETA9,CMUEFF,PVIS,EPS2LO,EPS4LO
! One third
! One sixth
! Two thirds
Actual loops
DO K = 1, KMAX
KK = K*IL + KA
DO J = 1, JMAX
JJ = J*ISTRID + KK
DO I = 1, IMAX
L = JJ + I
87
S22
S33
= TTS(L)*DUIDXJ(L,5)
= TTS(L)*DUIDXJ(L,9)
S12
S13
S23
= HTTS*(DUIDXJ(L,2) + DUIDXJ(L,4))
= HTTS*(DUIDXJ(L,3) + DUIDXJ(L,7))
= HTTS*(DUIDXJ(L,6) + DUIDXJ(L,8))
W12
W13
W23
= HTTS*(DUIDXJ(L,2) - DUIDXJ(L,4))
= HTTS*(DUIDXJ(L,3) - DUIDXJ(L,7))
= HTTS*(DUIDXJ(L,6) - DUIDXJ(L,8))
= S12*S12
= S13*S13
= S23*S23
W12SQ
W13SQ
W23SQ
= W12*W12
= W13*W13
= W23*W23
88
- WII*S11
- WII*S22
- WII*S12
- WII*S13
- WII*S23
Coefficients (betas)
BETA1
= BETA3
= BETA4
= BETA6
= BETA9
=
C
C
PQ*FN*(2.0*FNSQ - 7.0*WII)
PQ*12.0*SWWIV/FN
PQ*2.0*(FNSQ - 2.0*WII)
PQ*6.0*FN
PQ*6.0
=
=
=
=
1.0/VIS(L)
-0.5*(BETA1 + WII*BETA6)
1.0 + CMUEFF*RK(L)*TTS(L)*PVIS
1.0 + CMUEFF*RK(L)*TTS(L)*PVIS*PRS
89
Lo-limiter (minimum)
EPS2LO = 1.0 + FRSMUT*PVIS
EPS4LO = 1.0 + FRSMUT*PVIS*PRS
EPS2(L) = MAX(EPS2LO, EPS2(L))
EPS4(L) = MAX(EPS4LO, EPS4(L))
Hi-limiter (maximum)
EPS2(L) = MIN(EPS2UP, EPS2(L))
EPS4(L) = MIN(EPS4UP, EPS4(L))
END DO
END DO
END DO
! End of I-loop
! End of J-loop
! End of K-loop
RETURN
END
90
SUBROUTINE TTIMES(RO,VIS,RK,REPS,ITURB,IMAX,JMAX,KMAX,TTS)
*****************
C
C
C
Model coefficients
CT
= 6.0
BSTAR = 0.09
C
C
91
SUBROUTINE ANISFLUX(IMAX,JMAX,KMAX,JADD,KADD,IL,U,V,W,RK,
&
BIJ,A,AX,AY,AZ,FRM,FRN,FRW,FE)
*******************
C
C
C
C
C
93
SUBROUTINE FLUXP(FRM,FRN,FRW,RO,RM,RN,RW,P,RK,BIJ,UROT,A,AX,AY,AZ,
&
IMAX,JMAX,KMAX,IL,JADD,KADD)
****************
C
C
C
= ISTRID*(JMAX+JADD) - IN + 1
IF (ITURB.GE.3) THEN
! 2-eq models, combine P and RK
DO KG = 1, KMAX+KADD
IA = ((KG-1+KN)*JSTRID + JN)*ISTRID
DO IG = 1+IN, IJSLB
II
= IA + IG
IM
= II - IL
UM
VM
WM
= 0.5*(RM(IM)+RM(II))
= 0.5*(RN(IM)+RN(II))
= 0.5*(RW(IM)+RW(II))
PERRO
RMCM
VFLOM
= 1.0/RO(II)
= AX(II)*UM + AY(II)*VM + AZ(II)*WM
= A(II)*(RMCM*PERRO-UROT(II))
PAM
FRM(II)
FRN(II)
FRW(II)
END DO
END DO
=
=
=
=
(P(II)+P23*RK(II))*A(II)
FRM(II) + PAM*AX(II) + VFLOM*UM
FRN(II) + PAM*AY(II) + VFLOM*VM
FRW(II) + PAM*AZ(II) + VFLOM*WM
+
+
+
+
+
95
BIJ(IM,1)
BIJ(IM,2)
BIJ(IM,3)
BIJ(IM,4)
BIJ(IM,5)
B33CM
= 0.5*(RM(IM)+RM(II))
= 0.5*(RN(IM)+RN(II))
= 0.5*(RW(IM)+RW(II))
PERRO
RMCM
VFLOM
= 1.0/RO(II)
= AX(II)*UM + AY(II)*VM + AZ(II)*WM
= A(II)*(RMCM*PERRO-UROT(II))
PAM
FRM(II)
FRN(II)
FRW(II)
END DO
END DO
END IF
=
=
=
=
P(II)*A(II)
FRM(II) + PAM*AX(II) + VFLOM*UM
FRN(II) + PAM*AY(II) + VFLOM*VM
FRW(II) + PAM*AZ(II) + VFLOM*WM
RETURN
END
96
SUBROUTINE PEEKOO(VIS,EPS2,PHITUR,DUIDXJ,BIJ,IMAX,JMAX,KMAX,
&
RK,PTUR)
*****************
C
C
C
One third
P3
= 1.0/3.0
= 0.5*(DUIDXJ(L,2) + DUIDXJ(L,4))
= 0.5*(DUIDXJ(L,3) + DUIDXJ(L,7))
= 0.5*(DUIDXJ(L,6) + DUIDXJ(L,8))
Production of turbulence
PTUR(L) =-2.0*(HUU*S11 + HVV*S22 + HWW*S33
&
+ 2.0*(HUV*S12 + HUW*S13 + HVW*S23))
97
98
SUBROUTINE VELGRAD(DUIDXJ,STRAIN,OHMI,OMX,OMY,OMZ,U,V,W,BLNK,
&
A1,A2,A3,VOL,A1X,A1Y,A1Z,A2X,A2Y,A2Z,A3X,A3Y,A3Z,
&
IMAX,JMAX,KMAX)
******************
C
C
C
,
,
,
,
,
REAL :: U1M,V1M,W1M,U1P,V1P,W1P,S11,S12,S13,S22,S23,S33
REAL :: U2M,V2M,W2M,U2P,V2P,W2P,P3,PVOL,DIVVP3
REAL :: U3M,V3M,W3M,U3P,V3P,W3P
INTEGER , INTENT(IN) :: IMAX,JMAX,KMAX
INTEGER :: ISTRID,JSTRID,IL,IXCL,K,IA,IJ,L
C
One third
P3
= 1.0/3.0
XI-direction
U1M = A1(L) *(U(L) + U(L-1))
V1M = A1(L) *(V(L) + V(L-1))
W1M = A1(L) *(W(L) + W(L-1))
U1P = A1(L+1)*(U(L) + U(L+1))
V1P = A1(L+1)*(V(L) + V(L+1))
W1P = A1(L+1)*(W(L) + W(L+1))
ETA-direction
U2M = A2(L)
*(U(L) + U(L-ISTRID))
V2M = A2(L)
*(V(L) + V(L-ISTRID))
W2M = A2(L)
*(W(L) + W(L-ISTRID))
U2P = A2(L+ISTRID)*(U(L) + U(L+ISTRID))
V2P = A2(L+ISTRID)*(V(L) + V(L+ISTRID))
W2P = A2(L+ISTRID)*(W(L) + W(L+ISTRID))
ZETA direction
U3M = A3(L)
*(U(L) + U(L-IL))
V3M = A3(L)
*(V(L) + V(L-IL))
W3M = A3(L)
*(W(L) + W(L-IL))
U3P = A3(L+IL)*(U(L) + U(L+IL))
V3P = A3(L+IL)*(V(L) + V(L+IL))
W3P = A3(L+IL)*(W(L) + W(L+IL))
PVOL
PVOL = 0.5*BLNK(IJ)/VOL(L)
99
Velocity gradients
DUIDXJ(L,1) = PVOL*(
&
A3X(L+IL)
*U3P
&
A2X(L+ISTRID)*U2P
&
A1X(L+1)
*U1P
DUIDXJ(L,2) = PVOL*(
&
A3Y(L+IL)
*U3P
&
A2Y(L+ISTRID)*U2P
&
A1Y(L+1)
*U1P
DUIDXJ(L,3) = PVOL*(
&
A3Z(L+IL)
*U3P
&
A2Z(L+ISTRID)*U2P
&
A1Z(L+1)
*U1P
DUIDXJ(L,4) = PVOL*(
&
A3X(L+IL)
*V3P
&
A2X(L+ISTRID)*V2P
&
A1X(L+1)
*V1P
DUIDXJ(L,5) = PVOL*(
&
A3Y(L+IL)
*V3P
&
A2Y(L+ISTRID)*V2P
&
A1Y(L+1)
*V1P
DUIDXJ(L,6) = PVOL*(
&
A3Z(L+IL)
*V3P
&
A2Z(L+ISTRID)*V2P
&
A1Z(L+1)
*V1P
DUIDXJ(L,7) = PVOL*(
&
A3X(L+IL)
*W3P
&
A2X(L+ISTRID)*W2P
&
A1X(L+1)
*W1P
DUIDXJ(L,8) = PVOL*(
&
A3Y(L+IL)
*W3P
&
A2Y(L+ISTRID)*W2P
&
A1Y(L+1)
*W1P
DUIDXJ(L,9) = PVOL*(
&
A3Z(L+IL)
*W3P
&
A2Z(L+ISTRID)*W2P
&
A1Z(L+1)
*W1P
- A3X(L)*U3M +
- A2X(L)*U2M +
- A1X(L)*U1M)
- A3Y(L)*U3M +
- A2Y(L)*U2M +
- A1Y(L)*U1M)
- A3Z(L)*U3M +
- A2Z(L)*U2M +
- A1Z(L)*U1M)
- A3X(L)*V3M +
- A2X(L)*V2M +
- A1X(L)*V1M)
- A3Y(L)*V3M +
- A2Y(L)*V2M +
- A1Y(L)*V1M)
- A3Z(L)*V3M +
- A2Z(L)*V2M +
- A1Z(L)*V1M)
- A3X(L)*W3M +
- A2X(L)*W2M +
- A1X(L)*W1M)
- A3Y(L)*W3M +
- A2Y(L)*W2M +
- A1Y(L)*W1M)
- A3Z(L)*W3M +
- A2Z(L)*W2M +
- A1Z(L)*W1M)
=
=
=
=
DUIDXJ(L,8) - DUIDXJ(L,6)
DUIDXJ(L,3) - DUIDXJ(L,7)
DUIDXJ(L,4) - DUIDXJ(L,2)
SQRT(OMX(L)**2 + OMY(L)**2 + OMZ(L)**2)
END DO
END DO
RETURN
END
100
B-51
B-50
Antti Hellsten,
On the Solid-Wall Boundary Condition of in the k - -Type Turbulence Models, 1998.
B-49
Antti Hellsten,
Implementation of a One-Equation Turbulence Model into the FINFLO Flow Solver, 1996.
B-48
Petri Kaurinkoski,
Development of an Equation of State for an Arbitrary Mixture of Thermally Perfect Gases to the
FINFLO Flow Solver, 1995.
B-47
B-46
B-45
B-44
Jari Vilenius,
Katsaus ilmataistelun simulointiin, 1994
B-42
Reijo Lehtimki,
POISS3: a 3D Poisson Smoother of Structured Grids, 1993.
B-41
Jaakko Hoffren,
Computational Study of GA(W)-1 Airfoil Near Stall, 1993.
B-40
Huachen Pan,
Two-Dimensional Navier-Stokes Computations of Subsonic and Supersonic Flows through Turbine
Cascades, 1993.
B-39