Science & Mathematics">
Bachelorthesis
Bachelorthesis
Bachelorthesis
Bachelor Thesis
by
cand. chem. ing. Henning Bonart
I declare that I have developed and written the enclosed thesis completely by myself,
and have not used sources or means without declaration in the text.
Contents
Figures, Tables and Listings
III
Nomenclature
1. Introduction
1.1. Motivation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.2. Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.3. Structure of the Thesis . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1
1
3
3
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
5
5
7
7
8
9
10
11
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
13
13
14
15
15
16
16
17
17
18
18
20
21
21
22
.
.
.
.
.
.
.
25
26
27
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
29
29
30
31
31
32
34
34
35
36
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
37
37
38
40
40
42
44
44
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
46
46
48
49
52
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
54
55
B. Reaction Mechanism
57
II
Figures
1.1. World energy-related CO2 emissions by scenario . . . . . . . . . . . . . .
2.1. Species and temperature profiles for a laminar, premixed flat methaneoxygen flame. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.2. Schematic representation of the turbulent kinetic energy spectrum E as
a function of the wavenumber k. . . . . . . . . . . . . . . . . . . . . . . .
2.3. Kinematic interaction between a turbulent eddy and a propagating flame
front. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.4. Schematic representation of the turbulent flame velocity. . . . . . . . . .
2.5. Schematic classification of turbulent combustion regimes. . . . . . . . . .
9
10
11
14
24
. . . . . . . . . . .
simulate the flow
. . . . . . . . . . .
. . . . . . . . . . .
6
8
25
27
. . . . . .
. . . . . .
interface
. . . . . .
32
33
38
39
7.1.
7.2.
7.3.
7.4.
47
48
48
III
34
41
43
44
45
49
50
51
53
Tables
6.1.
6.2.
6.3.
6.4.
37
38
39
40
42
7.1. Physical and numerical conditions of the turbulent, premixed flame in 3D. 46
Listings
A.1. Implementation of the species equation 5.8 in OpenFOAM. . . . . . . . .
A.2. Implementation of the energy equation 5.12 in OpenFOAM. . . . . . . .
A.3. Initialization during run time and performing a downcast to obtain access
to derived class functions in OpenFOAM. . . . . . . . . . . . . . . . . . .
55
56
57
IV
56
Nomenclature
Latin symbols
h0f . . . . . . . . . . . .
D ..............
M .............
M ..............
A ..............
A? . . . . . . . . . . . . .
cp . . . . . . . . . . . . . .
Co . . . . . . . . . . . . .
D ..............
d ...............
d ...............
DkT . . . . . . . . . . . . .
Da . . . . . . . . . . . . .
E ..............
Ea . . . . . . . . . . . . .
F ..............
f ...............
f ...............
g ...............
H ..............
h ...............
hc . . . . . . . . . . . . . .
hs . . . . . . . . . . . . . .
I ...............
j ...............
K ..............
k ...............
k ...............
Ka . . . . . . . . . . . . .
L ...............
l ...............
Le . . . . . . . . . . . . .
m ..............
N ..............
n ...............
p ...............
[J/kg]
[m2 /s]
[-]
[kg/kmol]
[m2 ]
[varies]
[J/(kgK)]
[-]
2
[m /s]
[m]
[1/m]
[kg/(ms)]
[-]
[J]
[J/mol]
[kgm/s2 ]
[-]
[s3 /m6 ]
[kgm/s2 ]
[-]
[J/kg]
[J/kg]
[J/kg]
[-]
3
[kg/(m s)]
[-]
[varies]
[1/m]
[-]
[-]
[m]
[-]
[kg]
[-]
[-]
[Pa]
Q ..............
q ...............
r ...............
Rs . . . . . . . . . . . . .
Re . . . . . . . . . . . . .
S ...............
s ...............
Sc . . . . . . . . . . . . . .
T ..............
t ...............
TO . . . . . . . . . . . . .
V ..............
V ..............
v ...............
w ..............
X ..............
x, y, z . . . . . . . . . .
Y ..............
Source
Heat flux
Chemical reaction rate
Specific gas constant
Reynolds number
Surface
Flame speed
Schmidt number
Temperature
Time
Inner reaction layer temperature
Mass diffusion velocity
Volume
Velocity
Convective or diffusive flux
Mole fraction
Direction
Mass fraction
Greek symbols
...............
...............
...............
...............
...............
...............
...............
0 . . . . . . . . . . . . . .
...............
...............
...............
...............
...............
...............
...............
...............
...............
...............
..............
...............
Temperature exponent
Molecular collision
Thickness of inner reaction layer
Rate of dissipation of turbulent kinetic energy
Perturbation function
Transport coefficient
Air equivalence number
Thermal conductivity
Dynamic viscosity
Kinematic viscosity
Stoichiometric coefficient
Ordering parameter
Mass density
Collision diameter
Stress tensor
Time scale
Physical quantity
Quantity
Reduced collision integral
Rate of progress
VI
[-]
[J/(m s)]
[kg/m3 ]
[J/(kgK)]
[-]
[m2 ]
[m/s]
[-]
[K]
[s]
[K]
[m/s]
[m3 ]
[m/s]
[-]
[-]
[m]
[-]
2
[-]
[-]
[m]
[m2 /s3 ]
[-]
[-]
[-]
[W/(mK)]
[kg/(ms)]
[m2 /s]
[-]
[-]
[kg/m3 ]
[m]
[kg/(ms2 )]
[s]
[-]
[-]
[-]
[kg/(m3 s)]
...............
...............
...............
..............
~ ...............
c ...............
i ...............
k ...............
L ...............
T ..............
Mean value
Transposed
Time derivation/rate
Surrounding
Vector
Characteristic
Species i
Species k
Laminar
Turbulent
Constants . . . . .
kB . . . . . . . . . . . . . Boltzmann constant (1.38064881023 )
NA . . . . . . . . . . . . . Avogadro constant (6.022141291023 )
R . . . . . . . . . . . . . . Universal gas constant (8.3144621)
Abbreviations
1D . . . . . . . . . . . . .
3D . . . . . . . . . . . . .
fvc . . . . . . . . . . . . .
fvm . . . . . . . . . . . .
CFD . . . . . . . . . . .
BLAS . . . . . . . . . .
CFL . . . . . . . . . . . .
CG . . . . . . . . . . . . .
CHEMKIN . . . . .
DNS . . . . . . . . . . .
FDM . . . . . . . . . . .
FVM . . . . . . . . . . .
GPL . . . . . . . . . . .
LAPACK . . . . . . .
LES . . . . . . . . . . . .
LU . . . . . . . . . . . . .
MATLAB . . . . . .
MPI . . . . . . . . . . . .
MPI . . . . . . . . . . . .
NRBC . . . . . . . . .
ODE . . . . . . . . . . .
OpenFOAM . . . .
[J/K]
[mol1 ]
[J/(molK)]
One dimension
Three dimensions
finite volume calculus
finite volume method
Computational Fluid Dynamics
Basic linear algebra subprograms
CourantFriedrichsLewy condition
Conjugate gradients
Software for chemical kinetics
Direct numerical simulation
Finite Difference Method
Finite Volume Method
General Public License
Linear algebra package
Large eddy simulation
Lower upper
Matrix laboratory
Message Passing Interface
Message passing interface, e.g. MPICH2/OpenMPI
Non-reflecting boundary conditions
Ordinary differential equation
Open Source Field Operation and Manipulation, registered trademark
of OpenCFD Limited
PBiCG . . . . . . . . . Preconditioned biconjugated gradient
PCG . . . . . . . . . . . Preconditioned conjugate gradient
PDE . . . . . . . . . . . Partial differential equation
VII
PISO . . . . . . . . . . .
RANS . . . . . . . . . .
SIMPLE . . . . . . .
SUNDIALS . . . .
VIII
1. Introduction
1.1. Motivation
Chemically reacting flows impact many aspects of human life via, for example, medicinal
chemistry, chemical synthesis, material processing and combustion processes [1]. Combustion of hydrocarbon fossil fuels (or fuels stemming from renewable sources) is still an
important part of almost every energy conversion [2].
Technical applications based on combustion processes are important for transportation,
power generation and chemical engineering. At the same time pollution caused by
combustion processes leads to environmental problems. For instance, the contribution
of CO2 emissions to global warming is now considered to be proven and may be a
main threat to our standard of living. Figure 1.1 shows the world-energy related CO2
emissions by different scenarios. To reach the 450 Scenario1 an improvement of direct
and indirect energy conversion efficiency is without alternative [2].
Fig. 1.1.: World energy-related CO2 emissions by scenario. Figure taken from [2].
Other pollutants, such as unburnt hydrocarbons, soot, nitrogen oxides and sulfur oxides, can contribute to health hazards and cause smogs or acid rain [3]. However, due to
stricter government regulations for, e.g., the automotive industry and the energy sector,
pollutants emission has been reduced. In order to be conform to such legal regulations
1
The 450 Scenario describes pathways to a long-range CO2 concentration in the atmosphere of 450
parts per million, see [2].
1.1. MOTIVATION
and to meet the public expectation about cleaner and more efficiently industrial processes as well as to reach the 450 Scenario target of the Internal Energy Agency, it is
still of crucial importance to improve combustion technology.
Since most of the industrial applications of combustion involve turbulent flows, a deeper
understanding of the interplay between turbulence and combustion is needed. In many
cases turbulence increases combustion. On the other hand the heat release leads to gas
expansion and density variations and therefore influences the turbulent flow [4]. This
interaction of turbulence and chemical reaction is still not fully understood. Due to the
small length and time scales, details of the mixing process, as well as the structures in
turbulent flows, have not been fully investigated, yet. Therefore, a deeper understanding
of the interplay between turbulence and chemical reaction processes is of large interest
in order to improve efficiency in combustion.
The mechanisms involved in such turbulent combustion flows have been the object of
numerous theoretical, experimental and numerical scientific research in the last century [46]. Thereby, experimental studies have greatly advanced our knowledge on turbulent combustion. Recently, experiments that simultaneously measured the turbulent
velocity fields and the reacting scalar concentrations, together with the local temperature, have contributed to a more realistic understanding of such turbulent burning
processes. However, in order to gain detailed insight into the fundamental physics of the
turbulence-chemistry interaction on small space and time scales, numerical simulations
are to date without alternative.
In numerical simulations of turbulent combustion, additionally to the standard complexities of turbulent non-reacting simulation, other difficulties, such as the strong heat
release and the complex chemistry behind the combustion process, have to be taken
into account [7]. The computational grid has to be sufficient small in order to resolve
the smallest eddies in the turbulent flow. Due to numerical stability reasons very small
time steps are necessary. Hence, direct numerical simulations of turbulent reacting flows
demand a prohibitive amount of computational time. However, the huge progress in
computer technology in the past two decades now offers the opportunity for direct numerical simulations of three-dimensional (3D) turbulent reacting flows for certain cases.
This allows for studying the chemistry-turbulence interaction in more detail (see e.g. [8,
9]).
For a direct numerical simulation the underlying physical and chemical models which
describe chemical kinetics or molecular transport are required to be as precise as possible.
Thanks to extensive research in chemical kinetics a lot of chemical mechanisms can now
be modeled with great precision. Consequently, highly realistic chemical kinetic models
are implemented in many fluid dynamics codes. However, the use of multicomponent
transport equations based on the Maxwell-Stefan diffusion model or the rigorous kinetic
theory of ideal gases is still rare in computational fluid dynamics. The reason is probably
the additional complexity of the implementation and the higher computational cost.
Numerous studies have shown that, when omitting multicomponent diffusion equations,
significant errors occur in simulations of laminar flames [1, 1013]. As to turbulent flow,
1.2. OBJECTIVES
scientific publications comparing different diffusion models are very rare but it has been
argued by [9, 14] that accuracy should be improved when using the full multicomponent
transport equations.
1.2. Objectives
In the present thesis the main objective is to implement and validate a DNS solver which
is able to simulate turbulent, chemically reacting flows with a detailed diffusion modeling
and complex chemical kinetics. The equations are implemented with as little simplifications as possible and mostly derived from the rigorous kinetic theory of gases. The C++
toolbox OpenFOAM is used as the underlying structure for the DNS solver. The main
advantages of OpenFOAM are its high numerical accuracy and its free availability [15].
Moreover, multicomponent transport coefficients, which are obtained from the extended
Chapman-Enskog theory [16] and based on the molecular properties of the gases, are
used. These multicomponent diffusion coefficients are calculated with Cantera, an open
source chemical kinetics software. Cantera features a high calculation speed when calculating chemical source terms based on complex chemical mechanisms as well as efficient
calculation routines for multicomponent coefficients [17]. The interconnection between
OpenFOAM 2.0.1 and Cantera is newly programmed based on an library by [18] for
OpenFOAM 1.5.
To validate the solver laminar premixed flames are simulated and compared to calculations obtained with CHEMKIN/PREMIX with respect to numerical accuracy and
stability. Furthermore, the simulation of a turbulent premixed flame in 3D is carried
out. For that purpose, the solver, as well as the OpenFOAM framework and the Cantera
routines, are adapted for the hardware structure of the high performance cluster Cray
XE6 in Stuttgart, Germany, where the simulations have been carried out.
Cantera is presented and the new solver for DNS of chemically reacting flows with multicomponent diffusion modeling is introduced. In chapter 6 the developed solver is applied
to numerical simulations of flat premixed flames for validation purpose. The results are
compared with calculations obtained from CHEMKIN/PREMIX. Finally the solver is
used for DNS of 3D turbulent premixed flames and the results are briefly discussed in
chapter 7. The thesis finishes with a conclusion and a perspective.
lc v
,
(2.1)
where lc is a characteristic length, v is the flow velocity, is the mass density and
is the dynamic viscosity. If a critical value of Re is reached the laminar flow starts to
become unstable and changes to turbulent flow. For example in an internal channel flow,
this happens at Re 2000.
Laminar premixed flames propagate towards a premixed mixture of fuel and air. They
occur in gas ranges, heating appliances and Bunsen burners. The understanding of
laminar premixed flames is a prerequisite to study turbulent premixed flames [10]. Due
its simple configuration laminar premixed flat flames have been an important object
in numerical combustion science. Therefore a lot of specialized numerical codes, like
CHEMKIN/PREMIX [20] and Cantera [17], exist.
Fig. 2.1.: Species and temperature profiles for a laminar, premixed flat methane-oxygen flame. Figure
taken from [4].
In order to distinguish different mixtures of fuel and oxidizer the air number is defined
as [10]
air =
(2.2)
where Xair (Xf uel ) are the mole fractions of the air (fuel) in the mixture, and Xair,stoich.
(Xf uel,stoich. ) are the mole fractions of the air (fuel) in the stoichiometric mixture. Based
on the value of air premixed combustions can be divided into different classes: rich
combustion with air < 1, stoichiometric combustion with air = 1 and lean combustion
with air > 1.
The schematic structure of a premixed, flat, methane-air flame is shown in Figure 2.1.
It consists of three main regions. In the chemically inert preheating zone, heat released
from the reaction is transported by conduction. The reaction layer is typically thin and
called fuel consumption layer or inner layer with thickness and temperature TO . This
layer is responsible for keeping the reaction process alive. Here the fuel is consumed and
the radicals are depleted by chain-breaking reactions. The inner layer temperature TO
corresponds to the crossover temperature between chain-branching and chain-breaking
reactions. In the oxidation layer the final oxidation to the products is accomplished
and the temperature reaches its maximum. The thickness of the reaction zone can be
calculated from the temperature profile with [21]
=
T2 T1
.
max T
x
(2.3)
In a steady flow of premixed gas, the flame propagates upstream until the flow velocity
normal to the flame front is equal to the laminar flame speed sL . The laminar flame
speed can be calculated from the integral of the burning rate across the flame brush
with [21]
Z +
1
sL =
rf uel dx .
(2.4)
0 Yf uel,0
The laminar burning velocity dependence on the fuel type, the air number, the pressure, the unburnt flow temperature, etc. and is a very important characterization of
combustions [4].
v 0 lT
(2.5)
Fig. 2.2.: Schematic representation of the turbulent kinetic energy spectrum E as a function of the
wavenumber k.
turbulence macroscale l0 , since eddies of that scale contain most of the kinetic energy.
For larger wavenumbers corresponding to the inertial sub-range the energy spectrum decreases following the k 5/3 law. Finally, there is a cutoff at the Kolmogorov microscale
lK . In the viscous sub-range, the energy per unit wavenumber decreases exponentially
owing to viscous effects. Therefore, the Kolmogorov microscale represents the smallest
length scales associated with a turbulent flow [4].
To determine the necessary grid resolution and time step in numerical simulations of
turbulent flows one has to know about the value of the smallest scales. The Kolmogorov
microscale for length lK and time K are defined in [22] to
lK = ( 3 /)1/4 and K = (/)1/2 ,
(2.6)
= 2 hsij sij i =
vj
vi
+
xj xi
+*
vj
vi
+
xj xi
+)
(2.7)
and is the kinematic viscosity. Here, sij is the fluctuating strain rate and hi is the
expectation.
expansion. In addition, turbulent eddies wrinkle the flame front (as illustrated in figure
2.3) and enhance the chemical reaction. In some cases on the other hand, the flow can
completely inhibit the chemical reaction and lead to flame quenching [4].
Fig. 2.3.: Kinematic interaction between a turbulent eddy and a propagating flame front.
(2.8)
with m
equal the mass flow rate of the unburnt gas mixture and 0 equal the unburnt
mixture mass density. Consequently the ratio of turbulent flame speed to local laminar
flame speed is equal to the ratio of wrinkled flame area to the mean flame area from
which sT can be calculated to
AT
sT
AT
= sT = sL .
sL
A
A
(2.9)
10
(2.10)
Fig. 2.4.: Schematic representation of the turbulent flame velocity. Figure similar to [4].
Z
VF l.
T .
rf uel (V ) dV = 0 Yf uel,0 AT sL = 0 Yf uel,0 As
(2.12)
Z
VF l.
rf uel (V ) dV
rf uel,i Vi = VCV
rf uel,i ,
(2.13)
with VCV as the volume of a single cell which is equal for all cells in an equidistant mesh.
Consequently, it must apply locally in cell i, that
(sT )i (AT )i VCV (rf uel )i .
(2.14)
11
Finally, by inserting the expressions in equation (2.11) the flame stretch rate can be
expressed as
1 dAT
1 drf uel
=
=
.
(2.15)
AT dt
rf uel dt
This equation describes the fractional rate of change of the fuel consumption rate rf uel .
Note, that this equation is valid for every reactant.
DaT =
(2.16)
(2.17)
DaT describes the ratio between the turbulent time scale T and the characteristic chemical time scale c . The interaction of the chemical reaction with the dissipative turbulent
structures of the flow field is described with Ka, which is the ratio of the characteristic
chemical time scale and the characteristic time scale of the smallest Kolmogorov eddy
K . Additionally, the turbulent Reynolds number introduced before is used in the diagram 2.5.
12
By using the reduced numbers ReT , Ka and Da, turbulent premixed combustions can be
classified into three major categories. The thin reaction zone regime or flamelet regime
exists for Ka < 1, which means, that the flame thickness is smaller than the Kolmogorov
length scale. It assumes, that the flame structure is not effected by turbulence. The
flame sheet is wrinkled by vortices not small enough to enter it. At Da > 1 and Ka > 1,
the smallest eddies can enter into the flame front and enhance the diffusion inside of the
flame, which leads to a thickened flame. Here, the turbulent flow is intense enough to
generate eddies able to effect the structure of the reaction zone. Since it is expected,
that the lifetime of such eddies is very short, their impact on the reaction zone is thus
limited. If the reaction time is greater than the time needed for turbulent fluctuation,
a well stirred reactor regime occurs. It is characterized by Da < 1 and Ka > 1.
Consequently, most of the eddies can enter into the reactive-diffusive layer during their
lifetime and enhance the diffusivity within the reaction zone. It is even possible, that
nearly all of the eddies are embedded into the reaction zone. Hence, the flame front is
very thick and behaves similar to an ideally stirred reactor. Since in a turbulent flow a
wide range of length scales occur, a turbulent premixed flame is not represented by a
single point in figure 2.5, but by a zone that may cross the different regimes.
3. Mathematical Description of
Chemically Reacting Flows
In the following an introduction to statistical thermodynamics and the rigorous kinetic
theory of gases (see [1, 24, 25]) is presented. The focus in this section is on the ChapmanEnskog formulation and will not go through detailed derivations of all results. After,
the transport equations, as well as the equations for the molecular fluxes are derived
from the Chapman-Enskog formulation. A brief discussion of chemical kinetics follows,
to close the mathematical description of the partial differential equations.
(3.1)
where p is the pressure, V is the volume, N is the number of molecules, kB the Boltzmann
constant, T the temperature, n the number of moles, NA is the Avogadro constant and
R is the universal gas constant.
14
X h (+)
j
()
kj kj
(3.2)
As shown in figure 3.1, equation (3.2) describes the time evolution of the velocity distribution function fk (~x, ~vk , t). The quantity fk (~x, ~vk , t)d~xd~vk is the mean number of
molecules of species k at time t, which are located in the volume element d~x around ~x,
and which have velocities within the range d~vk around ~vk . The population of molecules
propagating to a different position in phase space after a time dt is increased by some
(+)
(+)
collisions kj and decreased by others kj . The kj involve the intermolecular potential energy function, e.g. the Lennard-Jones-Potential, and all details of the collision
trajectories [19]. The quantity F~k is an external force acting on a molecule of species k.
Different from [25] from now vector-tensor notation is used, e.g. [19]
15
In the following subsections, the Boltzmann equation is used to derive the transport
equations for mass, momentum and energy, as well as formulations for the molecular
fluxes and the transport properties.
F~k k
(nk k ) ~
k
~
+ (nk k~vk )nk
+ ~vk k +
=
t
t
mk ~vk
Z
X h (+)
j
kj
()
kj
(3.3)
d~vk ,
where nk is the number of moles of species k and where the overbars indicate averaged
quantities. A summation of equation (3.3) over all species k gives the transport equation
for quantity of the entire gas mixture.
P
For conserved quantities, such as momentum ( = k mk~vk ), kinetic plus internal energy
P
P
(int)
( = k 21 mk vk2 + ek ) or the global mass ( = k mk ) it is explicitly shown in [25],
that the right hand side of equation (3.3) vanishes as it should. Note that, however, that
the mass of one species k is not conserved in case of a chemical reaction: By choosing
k = mk the sum of the right hand side of equation (3.3) represents the conversion rate
of molecules of species k which is in general not zero.
In section 3.2 Enskogs general transport equation (3.3) is used to derive explicit formulations for the transport equations of mass, momentum and energy.
[1]
[2]
[r]
fk = fk + fk + 2 fk + r fk ; ,
(3.4)
with as an ordering parameter. One can find an analytical solution for the 0-th
approximation of fk [25]. Now the first-order approximation to fk can be written in
terms of a perturbation function k as
[1]
[0]
fk = fk k ,
[1]
(3.5)
16
the unknown scalar functions in finite series of Sonine polynomials, one can use the
results to obtain first-order approximations of the molecular fluxes and the transport
properties [25]. Approximations of higher order are not worthwhile since the calculation
is very time consuming and the additionally gained accuracy is small [16].
()
|t {z }
Transient term
~ (~v )
~ ( )
~ +
=
|
{z
Convection term
{z
Diffusion term
(3.6)
|{z}
Source term
with the conserved quantity and transport coefficient . The transient term accounts
for the accumulation of and the source term represents any sources or sinks in the
concerned control volume. The fluxes over the control volume faces are described by
either the convective term due to the flow velocity field ~v or the diffusion term due to
its gradients.
~ (Yk~v )
~ ~jk + rk
(Yk ) =
t
k = 1, 2, 3, , K ,
(3.7)
Yk = 1,
N
X
k=1
~j k = 0,
N
X
k=1
rk = 0
(3.8)
17
one obtains the transport equation for the total mass of a multicomponent reacting
mixture [19, 25]
~ (~v ) .
=
(3.9)
t
~ (~v~v )
~ + ~g ,
(~v ) =
t
(3.10)
~ = p
~ +
~ ~
(3.11)
where
is the rate of momentum addition by molecular transport with ~ as the molecular momentum flux vector (compare section 3.3).
~ (h~v )
~ ~q : ~
~ v + Dp + Q source ,
(h) =
t
Dt
(3.12)
where ~q is the molecular heat flux (compare section 3.3), Q source is a combination of
is the reversible rate of enthalpy due
all heat source terms like the radiative flux, Dp
Dt
~
to compression and ( : ~v ) is the irreversible rate of enthalpy due to viscous dissipation.
Further with the sensible enthalpy hs and the chemical enthalpy hc the total enthalpy
h can be expressed as [21]
h = hs + hc =
Z T
T0
N
X
cp (T ) dT +
{z
h0f,k Yk ,
(3.13)
k=1
sensible enthalpy
{z
chemical enthalpy
with the heat capacity for an ideal gas at constant pressure [24]
cp (T ) =
h
T
(3.14)
Neglecting viscous dissipation and heat source terms like the radiative flux, one obtains
the equation of energy in terms of sensible enthalpy to
~ (hs~v )
~ ~q + Dp + ~qreaction .
(hs ) =
t
Dt
(3.15)
18
The separation of sensible enthalpy from the heat of formations gives this equation the
advantage over equation (3.12), that the heat of formations become the only source term
~qreaction =
N
X
h0f,k rk .
(3.16)
k=1
Additionally, this equation can be used as a definition for the heat release rate.
To obtain the temperature from the sensible enthalpy, the definition of the sensible
enthalpy (3.13) is solved for T . In general, the mixture averaged specific heat cP (T ) =
PK
k=1 cp,k (T )Yk is a function of T and therefore, the integral in (3.13) has to be solved
iteratively [21]. The temperature dependencies of the pure species specific heat capacities
cp,k are fitted by 4-th order NASA polynomials:
k
cp,k (T )M
= a1,k + a2,k T + a3,k T 2 + a4,k T 3 + a5,k T 4
R
(3.17)
Here, an,k are coefficients of the k-th species which has to be given as input.
N
1 X
DT 1 ~
M j Dkj d~j k T
,
Yk T
Xk M j=1
(3.18)
19
(3.20)
Equation (3.20) shows that the mass flux can be caused by three different phenomena.
The ordinary diffusion flux due to a gradient in concentration, the flux due to a pressure
gradient and the thermal diffusion flux due to a temperature gradient. The flux due to
a pressure gradient is very small compared to other effects and can be neglected [25].
Additionally, a flux due to external forces can occur for example in charged mixtures.
Mass Diffusion Coefficients
Based on the theory provided by [25] and laid out for computational purpose by [16],
the multicomponent diffusion coefficients Dkj and the multicomponent thermal diffusion
coefficients DkT in equation (3.20) are computed from a system of equations defined as
(L)-matrix which consists of nine sub-matrices:
0
L00,00 L00,10
0
a1
00
L10,00 L10,10 L10,01 a1 = X
10
X
0
L01,10 L01,01
a101
(3.21)
with the right hand side vector composed by the mole fraction vectors Xk .
Every component of the L matrix is a K K, with total number of species K, matrix.
For example the elements of the matrix L00,00 are calculated with
L00,00
=
jk
N
Xl
16T X
[M k Xk (1 jl M j Xj (jk kl )] ,
25p l=1 M j Djl
(3.22)
where is a small value due to prohibit species concentration values of exactly zero and
Djk is the binary diffusion coefficients calculated from Chapman-Enskogs theory with
3 3
T /mjk
3 2kB
=
.
(1,1)?
2
16 pjk
jk
Djk
mk mj
mk +mj
(3.23)
16T
M (Pjk Pjj ) ,
25pM k
(3.24)
20
8M k Xk 1
ak00 .
5R
(3.25)
Here, R is the universal gas constant and a1k00 is calculated from the (L)-matrix. Equation (3.24) shows two characteristics of the multicomponent diffusion matrix predicted
by [25],
Djj = 0 and Djk 6= Dkj .
(3.26)
For further details on the (L)-matrix one should consult [1, 16].
(3.27)
Here, is the mixture viscosity and is the identity matrix. Note, that the momentum
flux is not derived from expressions obtained from the rigorous kinetic theory of gases,
but from hydrodynamic equations [25].
The viscosity of a mixture is calculated from Wilkes mixture rule [28] modified by [19]
=
K
X
k=1
Xk k
,
j=1 Xj kj
with
kj
1
Mk
= 1+
Mj
8
(3.28)
PK
!1/2
k
1 +
j
!1/2
Mj
Mk
!1/4 2
and the pure species viscosity derived from the rigorous kinetic theory of gases
5 mk kB T
k =
.
16 k2 (2,2)?
kk
(3.29)
(3.30)
kB is the Boltzmann constant, k is the collision diameter for the k-k interaction poten(2,2)?
tial, mk is the mass of molecule k and kk the reduced collision integral.
It has been shown by [25] that Wilkes mixture rule is a very good approximation to
the equation derived from the rigorous kinetic theory. One should note, that the pure
species viscosities calculated with equation (3.30) are still based on the rigorous kinetic
theory.
21
N
X
k=1
~jk hk
N
X
RT
DkT d~k ,
M
X
k
k
k=1
(3.31)
where 0 is the special mixture thermal conductivity, ~jk is the diffusive mass flux discussed before, hk is the specific enthalpy of species k and dk is the diffusive driving force
see equation (3.19)
As one can see from equation (3.31) heat can be transported through a multicomponent
gas caused by a temperature gradient known as Fouriers law, a diffusive flux by species,
and the reciprocal process to thermal diffusion called Dufour effect [25]. Like the ordinary
and thermal diffusion coefficients, the thermal conductivity 0 is calculated with a1i10 and
a1i01 from the L-matrix (3.21) with
0 = 0,trans. + 0,inter. = 4
Xk (a1i10 + a1i01 )
(3.32)
K
X
ki Mk *
)
k=1
ki 00 Mk
(i = 1, , I) ,
(3.33)
where K is the total number of chemical species, I is the total number of chemical reactions, Mk is the name of species k and ki is the stoichiometric coefficient of species
k in the forward direction respectively reverse direction in the i-th reaction.
To obtain the rate of progress i of a two-body reaction i the reaction rates of for- and
backward reaction have to be combined to [1]
i = kf,i
K
Y
k=1
K
Y
00
[Mk ]ki ,
(3.34)
k=1
where kf,i and kr,i are the rate constants for the forward and reverse direction of reaction
i and [Mk ] is the concentration of species k.
The rate constant k is computed by a modified three-parameter Arrhenius form
k = A? T exp(Ea /RT ) ,
(3.35)
22
I
X
i
(ki00 ki0 )i .
(3.36)
=
=
v,
t
x t
x
(3.38)
!1
(x)
v
x
(3.39)
This equation describes the variation of a quantity with location x multiplied by the
velocity v. One should note, that equation (3.39) is mathematically not clearly defined
for mass fraction gradients equal zero.
For turbulent premix flames it is assumed, that the chemical time scale is not affected
by turbulence as long as the smallest eddies can not penetrate into the thin reaction
zone [4].
~=
~v dS
Z
S
~ dS
~+
()
Z
V
q dV ,
(4.1)
24
Fig. 4.1.: Two control volumes with centers P and N are connected through face f with face normal
~f . Figure taken from [31].
S
Here, P and N are the control volume centers, f is the connecting cell face, d~ is the
~f is the face area vector.
distance between the cell centers and S
Figure 4.2 shows how a structured grid divides the solution domain of a duct into a finite
number of small control volumes. Equation (4.1) applies to each single control volume.
A sum over all control volumes results in the global conservation equation, since surface
integrals over inner control volumes cancel out. This provides a principal advantage of
FVM thus global conservation is build in.
~=
w
~ dS
XZ
k
Sk
w
~ dS~k ,
(4.2)
where w is the convective or diffusive flux vector from (4.1). Usually, values for velocity
and physical quantities are taken from the last time step. To preserve conservation,
control volumes are not allowed to overlap so that each control volume face is unique to
the two control volumes which lie on either site. Each cell face has only one owner and
25
Wall
Inlet
Wall
Outlet
Wall
Wall
Fig. 4.2.: Example of a 2D, structured, non-orthogonal grid to simulate the flow through a duct. Figure
similar to [7].
The cell face integral Sk in equation (4.2) can not be calculated exactly, since only discrete values of f at the control volume center exist. Therefore w has to be approximated,
e.g. by the midpoint rule:
Z
Sf
wf dSf = wf Sf wf Sf
(4.3)
Here, the integral is approximated as a product of the mean value over the surface
wf , which has to be approximated itself, and the cell-face area Sf . To obtain higher
approximations, the flux has to be calculated at more than two locations.
Volume Integrals
The last term in equation (4.1) requires integration over the volume. The simplest
second-order approximation can be obtained by replacing the volume integral by the
product of the mean value of the integrand, which is approximated as the value at the
center of the control volume:
Z
V
q dV = qV qP V ,
(4.4)
where qP is the value of q at the center of the control volume. To obtain approximation
of higher order, one has to interpolate between values of q besides the value at the center.
26
f = N
xf xP
xN xP
xf xP
1
xN xP
+ P
(4.5)
2
x2
(xf xP )(xN xf )
+H ,
(4.6)
where H denotes higher-order terms. One can see, that the leading truncation error is
proportional to the square of the gird spacing. Therefore the scheme is second order
accurate.
Upwind Interpolation Scheme (UDS)
In upwind interpolation, f is approximated as
f =
(4.7)
A Taylor series expansion about P gives for a Cartesian grid and (~v S~f )f > 0
f = P + (xf xP )
x
!
P
(xf xP )2
+
2
2
x2
+H ,
(4.8)
One can see, that the UDS is of first order. Its leading truncation error term is diffusive
and will therefore never yield oscillatory solutions but at the expense of accuracy. Peaks
or rapid variations in the variables will be smeared out.
27
Fig. 4.3.: Approximation of the time integral f (t) over an interval t. From left to right: explicit Euler,
implicit Euler, trapezoidal rule, midpoint rule [7].
Z tn+1
d
n+1
n
f (t, (t)) dt ,
dt =
=
dt
tn
(4.10)
~v t
Comax ,
x
(4.11)
which represents the fraction of the cell that the flow advances during a time step.
Normally, the maximum Courant number is taken to Comax = 1 [7].
(4.12)
28
(4.13)
(4.14)
~ n+1 =
~n =
~ it must be
Since, at convergence,
P A=M N
and
~ =PQ
~ ,
B
(4.15)
Open Source Field Operation and Manipulation, registered trademark of OpenCFD Limited
30
31
the coupling interface between OpenFOAM and Cantera was rewritten to meet the requirements of OpenFOAM in Version 2.0.1.
The interface makes use of templates to work with existent solvers through the run-time
selection mechanism. The extensive use of OpenFOAM respectively C++ programming
principles enables easy development of further extensions. Additionally, the coupling
offers access to sensible enthalpies, multicomponent or mixture-averaged transport properties or chemical reaction rates. The input files containing molecular properties and
chemical mechanism data are in the classical CHEMKIN compatible format.
Type casting is converting an expression of a given type into another type. Downcasting is converting
a bass-class reference or pointer to a derived-class. The opposite process is called upcasting [36, 37].
32
Fig. 5.1.: Inheritance and dependency diagram for the coupling library. Dotted arrow contains an
object of, normal arrow derived from.
Figure 5.2 shows the initialization sequence of the coupling library in any solver during
runtime. The order in which the class constructors are called indicates the high level of
interconnection between original classes and classes from the interface. It is important
that the start of the initialization is performed by the original function psiChemistryModelNew. This function is already implemented in existent solvers and guarantees
the connection to OpenFOAMs runtime selection mechanism. It reads input files and
chooses the chemistry class, here the canteraChemistryModel. The function hsCombustionThermoNewType chooses the thermo class from input files. Here, the class canteraHsPsiMixtureThermo is used, which calls the subclass constructors until finally the class
canteraGasMixWrapper deploys the connection to Canteras original classes. Listing A.3
in the appendix shows the implementation of the initialization.
33
Fig. 5.2.: Initialization sequence of the coupling library in a solver during runtime (order: top left first,
bottom right last).
dent data like the chemical reaction rates rk or transport properties like , , Dkj , DkT .
Cantera then returns per reactor vectors of dimension number of species K for rk or DkT ,
simple scalars for or , and matrices of dimension (K K) for Dkj . The interface
collects the values of every cell and constructs vectors or matrices with cell values for
every control volume and returns matrices of dimension (N K) for the reaction rates
or of dimension (N K K) for the ordinary diffusion coefficients Dkj and vectors of
dimension (N ) for or .
34
Fig. 5.3.: Data exchange between OpenFOAM and Cantera through the interface canteraFoamModel.
~ (Yk~v ) +
~ (Y
~ k ) + rk
(Yk ) =
t
~ (hs~v ) +
~ ( h
~ s ) + Dp + ~qreaction
(hs ) =
t
cp
Dt
(5.1)
(5.2)
One can see, that equation (5.1) is based on the assumption that the ratio of momentum
diffusivity and mass diffusivity is unity. Thus, the dimensionless Schmidt number Sc
yields
Sc =
= 1 D = .
(5.3)
D
Therefore, the mass diffusivity D has to be the same for all species and the species
diffusion process is entirely controlled by the mixture viscosity, which is calculated from
35
Sutherlands law. Additionally, cross diffusion process based on pressure and temperature gradients are neglected.
In equation (5.2) a unity Lewis number Le as well as the disregards from above are
assumed:
Le =
=1
= D
(5.4)
Dcp
cp
It has been shown by [12], that equations (5.1) and (5.2) yield large errors while simulating chemically reacting flows.
(5.5)
N
X
~ j Mk
Dkj Y
M
j=1
N
X
Dkj Yj
j=1
N
X
M ~
1~
Yi DkT T
,
T
i=1 M i
(5.6)
N
X
N X
N
H
X
X
Mk
Mk
~ k DT 1 T
~
~
~ ,
Dkj Yj
Dkj Yj Yi
Dkj Yj Y
k
T
M
M
i
j6=k i6=k
j6=k
j6=k
(5.7)
so that the third term on the right hand side can be discretized implicit by OpenFOAM.
Finally, by inserting the expression for the mass flux above into equation (3.7) the
transport equation for species k reads
N
X
~ (Yk~v )
~ (Dkj Yj Y
~ k) =
(Yk ) +
t
j6=k
N X
N
X
Mk
~
~
~
~ M k Dkj Yj Y
~ i +
~ DT 1 T
Dkj Yj +
+ rk ,
k
T
M
M
i
j6=k
j6=k i6=k
(5.8)
N
X
36
in which all terms discretized implicit by OpenFOAMs class fvm stand on the left hand
side and all terms included and calculated as explicit source terms by OpenFOAMs class
fvc stand on the right hand side. Listing A.1 in the appendix shows the implementation
of equation (5.8) in OpenFOAM.
N
X
k=1
~ k,
hk Y
(5.9)
one can, by express the specific enthalpy with the sum of sensible and chemical enthalpy
(3.13), modify Fouriers law to
~
T
=
N
X
~
~
h
hk Yk
cp
k=1 cp
N
N
N
X
X
X
~
~
~ k
~
hs +
hc,k Yk
hs,k Y
hc,k Yk
=
cp
cp
c
c
p
p
k=1
k=1
k=1
N
X
~
~ k.
=
hs
hs,k Y
cp
c
p
k=1
(5.10)
Now, the first term on the right hand side can be discretized implicit by OpenFOAM.
The diffusive species flux from equation (3.31) in terms of sensible Enthalpy gives
N
X
k=1
~jk hk =
N
X
(5.11)
k=1
Combining equations (3.15), (3.31), (5.10), (5.11) and neglecting viscous dissipation
~ v and the Soret effect one obtains
: ~
!
~ (hs~v )
~ h
~ s =
(hs ) +
t
cp
N
N
N
X
X
Dp X
~
~
~
~
hs,k Yk
(hs,k jk )
hc,k rk ,
Dt k=1
cp
k=1
k=1
(5.12)
in which all terms discretized implicitly by OpenFOAMs class fvm stand on the left hand
side and all terms included and calculated as explicit source terms by OpenFOAMs
class fvc stand on the right hand side. The diffusive species flux ~jk is calculated by
interpolation from the species equation noted in listing A.1 as J[k]. Listing A.2 in the
appendix shows the implementation of equation 5.12 in OpenFOAM.
1.0
YCH4 ,in
YO2 ,in
YN2 ,in
Tin [K]
p [bar]
vx,in [m/s]
0.055
0.2202
0.7248
300
1.0
0.4
The mixture is stoichiometric with = 1 and the mass fractions at the inlet are YO2 ,in =
0.2202, YCH4 ,in = 0.055 and YN2 ,in = 0.7248. The fluids temperature at the inlet is
Tin = 300 K with an inflow velocity vx,in = 0.4 m/s. The pressure in the whole domain
as well as outside is constantly p = 1 bar. The physical conditions (shown in table 6.1)
are chosen to be the same as in the reference calculation.
38
Coarse
Fine
Domain [m]
Cells
t [s]
x [m]
0.03
0.03
600
3000
5 107
1 107
5 105
1 105
Figure 6.2 shows the numerical domain. At the inlet, fixed values are chosen as boundary condition for all physical properties. The boundary conditions at the outlet differ
because of different requirements. For mass fraction and temperature a simple zero gradient boundary condition is adequate. To control possible backflow at the outlet a mixed
boundary condition, the inletOutlet condition, is needed for the velocity. It switches the
boundary condition between a fixed value and zero gradient depending on direction of
the velocity. Since the numerical domain is just a clipping of the infinity large physical
domain, the front, back, top and bottom sides are defined empty. Additionally, the numerical domain is only divided into cells, marked by the dashed lines, in the x-direction.
Therefore, only a solution in this direction is approached leading to a one dimensional
case.
39
In the calculations the implicit Euler method is used to discretize the time integral.
Like mentioned in chapter 4 the implicit Euler method is of order O(1)t . The spatial
discretization is accomplished via Gaussian integration and using linear interpolating
schemes of order O(2)x . The discretization schemes used in OpenFOAM for the different
terms in the transport equations are listed in table 6.3.
Mathematical Term
/t
()
()
Expression in OpenFOAM
Discretization
Order
ddt
grad
div
laplacian
interpolation
Euler implicit
Gauss linear
Gauss linear/limitedLinear 1
Gauss linear corrected
linear
O(1)t
O(2)x
O(2)x
O(2)x
O(2)x
Tab. 6.3.: In OpenFOAM used discretization schemes for the mathematical terms.
To obtain similar conditions like in CHEMKIN/PREMIX, no transport equation for velocity and pressure is solved. The remaining transport equations are solved using different iterative solver and preconditioners, namely for density the Preconditioned conjugate
gradient (PCG) solver with Diagonal incomplete-Cholesky (DIC) preconditioning and
for sensible enthalpy and species mass fractions the Preconditioned biconjugate gradient
(PBiCG) solver with Diagonal incomplete-LU (DILU) preconditioning.
For the initialization of the simulation a homogeneous flow field with conditions like at
the inlet is shortly ignited. Therefore, an spatial limited source term is included in the
transport equation of enthalpy with an ignition strength of 5 109 J/m3 s for 0.0002 s.
In the ignited cells two flame fronts develop. The downstream traveling flame front
leaves the domain and is not of further interest.
40
= 0 v0 = v = const. v =
and =
.
(6.1)
A
T Rs
in which Rs = R/M is the specific gas constant of the mixture. For this reason, the
pressure is forced to remain constant at all times in the complete domain. Furthermore,
in CHEMKIN/PREMIX the inlet mass flux m
is changed during the simulation in such
a way to hold the flame front steady. Due to missing moving mesh features implemented
into the new solver it is therefore not possible to completely prevent a motion of the
flame front. CHEMKIN/PREMIX is capable of dynamic mesh refinement and applies
for the current case a total number of only 185 grid points with the minimal distance of
xmin 3 106 m.
YCOmax
YCH3 max
YOHmax
YH2 max
sL [m/s]
CHEMKIN/PREMIX
OpenFOAM
0.051967
0.05240
0.00277
0.00274
0.00510
0.00497
0.00163
0.00163
0.373
0.376
0.83 %
1.08 %
2.54 %
0.00 %
0.8 %
Deviationa
a
In figure 6.3 the species mass fractions YCH4 , YO2 , YCO2 , YCO and YH2 O (solid) are compared to the reference calculation (circles). As one can see, the solution obtained from
41
OpenFOAM is very similar to the reference solution. The profiles of intermediate species
mass fractions YOH , YO , YH2 , YCH3 and YCH2 O as well as the minimal species mass fractions YCH2 , YH , YH2 O2 , YHCO and YHO2 confirm that conclusion, although there are tiny
discrepancies (see table 6.4) between the reference calculation and OpenFOAM which
have a maximum variation at YOH of about 1.3 104 . Again, the different grid resolution between OpenFOAM and CHEMKIN/PREMIX in these regions may be the reason. By using equation (2.4) the laminar burning velocity calculates to sL = 0.376 m/s.
As one can see in table 6.4 this is very similar to the value obtained from CHEMKIN/PREMIX. Additionally, a comparison with experimental results, e.g. [39], confirms
a very good agreement of OpenFOAMs value, too.
Axial distance x [cm]
Temperature T [K]
1.05
1.1
1.15
1.2
OpenFOAM
CHEMKIN
1.05
1.1
1.15
1.2
0.2
O2
1500
CO2
1000
CH4
0.1
H2 O
CO
1
2000
500
0
104
103
4
OH
CH3
HO2
O
2
HCO
H2 O2
H2
CH2
CH2 O
0
1
1.05
1.1
1.15
0
1.2
1.05
1.1
1.15
1.2
Fig. 6.3.: Temperature and species mass fraction profiles obtained from OpenFOAM (lines) and from
CHEMKIN/PREMIX (circles).
42
YCOmax
YCH3 max
YOHmax
YH2 max
sL [m/s]
600 Cells
3000 Cells
0.05080
0.05240
0.00248
0.00274
0.00497
0.00497
0.00162
0.00163
0.385
0.376
Deviationa
3.14 %
10.0 %
0.0 %
0.61 %
2.33 %
Figure 6.4 shows the major species mass fractions YCH4 , YO2 , YCO2 , YCO and YH2 O for 600
Cells (dashed) compared to 3000 Cells (line). One can see, that the solution obtained
from the coarser grid is very similar to the one obtained with the finer grid. The
profiles of the minor species mass fractions YOH , YO , YH2 , YCH3 and YCH2 O as well as the
minimal species mass fractions YCH2 , YH , YH2 O2 , YHCO and YHO2 in figure 6.4 confirm
this conclusion. From the differences between the mass fractions profiles of 600 Cells
and 3000 Cells one can see, that the peaks of the intermediate species differ only slightly
in magnitude and spatial position. The laminar burning velocity sL is nearly the same
for all grids.
43
Temperature T [K]
2000
1.05
1.1
1.15
1.2
1.05
Coarse
Fine
1.1
1.15
1.2
0.2
O2
1500
CO2
1000
0.1
H2 O
CH4
CO
500
104
OH
CH3
HO2
O
HCO
CH2 O
H2
H2 O2
CH2
103
0
1
1.05
1.1
1.15
1.2
1.05
1.1
1.15
1.2
109
4
3
2
1
0
1.05
1.1
1.15
1.2
44
1
200
1.05
1.1
1.15
1.2
1.05
1.1
H2 O
OH
CH3
CO2
1.15
0
CO
200
H2
CH4
CH2 O
O2
400
1.2
40
20
0
20
40
5
H
CH2
HO2
H2O2
HCO
1.05
1.1
1.15
1.2
45
6.6 shows the time scales for T , O2 and OH against the temperature.
100
101
OH
102
T
O2
103
104
105
300
600
900
1200
1500
1800
2100
Temperature T [K]
Fig. 6.6.: Calculated chemical time scales for T , O2 and OH.
One can see, that in an region, which corresponds to the main reaction zone, the time
scales are almost constant. For intermediate species the time scales show characteristic
peaks which correspond to formation and oxidation reactions. The minimum of the
calculated time scales determines the chemical time scale of the simulation. Here, the
time scale ranges between 105 s and 104 s. The time scale of temperature, which is
the most important for combustion modeling, is 2 104 s in this case.
YCH4 ,in
YO2 ,in
YN2 ,in
Tin [K]
p [bar]
~vin [m/s]
0
~vin
[m/s]
Re
1.0
0.055
0.2202
0.7248
300
1.0
4.0
2.0
2000
Domain [m]
Cells
t [s]
x [m]
Discret. Order
6.75 106
5 107 s
5 105
O(2)x O(1)t
Tab. 7.1.: Physical and numerical conditions of the turbulent, premixed flame in 3D.
47
Since the flow is three dimensional, solutions in directions outside the domain (in addition to the in- and outlet) are needed. To ensure, that no mass is lost, the front, back,
top and bottom faces of the domain are defined as symmetry planes. The boundary
conditions at the in- and outlet for temperature T and species mass fractions Yi are
the same as for the one dimensional case. To avoid reflections of pressure waves at
the in- and outlet, non-reflective boundary conditions (NRBC) are used for pressure.
To generate a turbulent flow at the inlet a turbulent inflow generator by [41] is used
for the velocity field. The boundary condition is based on digital filtering of random
data to provide temporally and spatially correlated velocities. The mean flow velocity
is ~vin = 4.0 m/s with a turbulence level of 50 %. The turbulent length scale lT and the
turbulent time scale T are set to lT = 1 mm and T = 0.5 ms.
48
Fig. 7.2.: Initial velocity and temperature fields of the premixed turbulent flame.
Figure 7.3 shows the Kolmogorov scales. They are calculated from the produced initial
conditions by using equations (2.6). One can see, that the Kolmogorov length scale lL
varies between 2 105 m and 2.5 104 m. Since the small values occur mostly near
the inlet the used grid spacing can be expected to resolve the smallest eddies near the
flame front sufficiently. The Kolmogorov time scale K varies between 2 105 s and
2.83 103 s. Since K is relatively great, the used time step is limited by the Courant
number due to numerical stability reasons.
49
Fig. 7.4.: Isosurface of YCH4 . Bottom with eddy dissipation rate and backside with vorticity.
The ratio of mean flame surface and turbulent flame surface calculates to AAT = 2.33.
Additionally, by using equation 2.10 the turbulent burning velocity calculates to sT =
0.704 m/s, which is less than two times the laminar burning velocity calculated for the
laminar flame in the chapter before. The difference in the laminar flame velocities is
caused by the curved and stretched turbulent flame.
Figure 7.5 shows contour plots of the temperature and velocity field. The flame front
is marked by iso-contours of the heat release rate. The structure of the turbulence is
visible at the inlet and the flow is accelerated by passing the flame front. The temperature increases over the flame front from 300 K up to 2200 K. The velocity gradients
in the burnt mixture are clearly smaller caused by high viscosity. A distinct feature
of the flame topology is the presence of an instantaneous wrinkled flame front. In areas in which the flame front wrinkles with a convex geometry into the burnt gas, the
50
Fig. 7.5.: Two dimensional slices of the temperature field and the vorticity field with heat release rate
of the turbulent premixed flame.
heat release is higher. Additionally, due to the turbulent flow, the flame front varies in
thickness. In this case, small eddies penetrate the flame front and enhance the diffusion
process, leading to a thickened flame front. In areas where the cold flow is slow the flame
front even propagates into the unburnt gas. It is evident that the vorticity is greatly
damped in the burned gas side because the gas viscosity increases with temperature.
Additionally, in figure 7.6 the mass fractions of CH4 , O2 , H2 and OH as well as the
corresponding reaction rates are shown. One can see, how the reaction zone varies in
thickness and the strain of the flame front influences the reaction rates.
51
52
53
Figure 7.7 shows the intranode scale-up (left) and internode scale-up (right) calculated
with Sn = ts /tn [7]. Here ts is the execution time with the reference processor number
and tn is the execution time using n processors. The reference processor number for the
intranode scale-up is 1 CPU and for the internode scale-up equal the number of CPUs
per node (32 CPUs). One can see, that the intranode speedup is far from the linear
speed up marked as a solid line. Thus, it is not worthwhile using the Cray XE6 with
only a few CPUs on one node. On the contrary, the internode performance scales very
well up to 2048 processors. Between 64 processors and 1024 processors the scale-up
is even superlinear1 [7]. The scale-up indicates a very good scalability of Cray XE6 in
conjunction with the solver even for 6.75 106 Cells. Therefore, in the DNS of the
turbulent flame in the section before 2048 CPUs have been used.
ideal
ideal
24
Internode scale-up
Intranode scale-up
25
23
22
1
24
22
20
20
20
21
22
23
24
No. of CPUs
25 = 32
25
27
29
211 = 2048
No. of CPUs
Superlinear is a speedup of more than p if p processors are used. It occurs rarely in parallel computing.
[43] showed with a simple example how a superlinear speedup is achieved.
18
19
20
f v S c a l a r M a t r i x YEqn
(
fvm : : ddt ( rho , Y[ k ] )
+ mvConvection>fvmDiv ( phi , Y[ k ] )
==
c h e m i s t r y .RR( k )
);
f o r A l l (Y, j )
{
i f ( j !=k )
{
f o r A l l (Y, i )
{
i f ( i !=k )
{
YEqn = f v c : : l a p l a c i a n (W[ k ] /W[ i ] rho c o m p o s i t i o n .D( k , j ) Y[ j ] ,
Y[ i ] , " l a p l a c i a n (D,Y[ k ] ) " ) ;
J [ k ] = f v c : : i n t e r p o l a t e (W[ k ] /W[ i ] rho c o m p o s i t i o n .D( k , j ) Y[ j ] )
( f v c : : i n t e r p o l a t e ( f v c : : grad (Y[ i ] ) ) & mesh . S f ( ) ) ;
}
}
21
22
23
24
25
26
27
28
29
30
56
31
32
33
34
J [ k ] = f v c : : i n t e r p o l a t e ( c o m p o s i t i o n .DT( k ) /T)
( f v c : : i n t e r p o l a t e ( f v c : : grad (T) ) & mesh . S f ( ) ) ;
YEqn . r e l a x ( ) ;
s o l v e (YEqn , mesh . s o l v e r ( "Y[ k ] " ) ) ;
Listing A.1: Implementation of the species equation 5.8 in OpenFOAM.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
f v S c a l a r M a t r i x hsEqn
(
fvm : : ddt ( rho , hs )
+ mvConvection>fvmDiv ( phi , hs )
fvm : : l a p l a c i a n ( t u r b u l e n c e >a l p h a E f f ( ) , hs )
==
DpDt
+ chemistrySh
);
f o r A l l (Y, k )
{
hsEqn = f v c : : l a p l a c i a n ( thermo . a l p h a ( ) h s i [ k ] , Y[ k ] ) ;
hsEqn = f v c : : d i v ( J [ k ] , h s i [ k ] , " d i v ( J i , h s i ) " ) ;
}
hsEqn . r e l a x ( ) ;
hsEqn . s o l v e ( ) ;
Listing A.2: Implementation of the energy equation 5.12 in OpenFOAM.
1
2
3
4
5
B. Reaction Mechanism
Listing B.1 shows the chemical reaction mechanism by Kee et al [38], which was used in
the numerical simulations of the 1D flame as well as in the direct numerical simulations.
It consists of 17 species and 58 reactions.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
CO2 H2O2
N2
c a l / mol
8 . 0 0 E26
3.000
7 . 9 0 E13
0.000
2 . 2 0 E04
3.000
1 . 6 0 E06
2.360
1 . 6 0 E06
2.100
6 . 8 0 E13
0.000
1 . 0 0 E12
0.000
1 . 5 0 E13
0.000
9 . 0 0 E13
0.000
1 . 4 0 E19
2.000
2 . 5 0 E13
0.000
4 . 5 0 E13
0.000
3 . 3 0 E13
0.000
5 . 7 0 E13
0.000
3 . 0 0 E13
0.000
3 . 4 0 E12
0.000
1 . 1 0 E11
0.000
3 . 0 0 E13
0.000
5 . 0 0 E13
0.000
1 . 6 0 E12
0.000
5 . 0 0 E13
0.000
6 . 9 0 E11
0.000
1 . 9 0 E10
0.000
8 . 6 0 E10
0.000
4 . 3 0 E10
0.000
3 . 4 3 E09
1.180
2 . 1 9 E08
1.770
3 . 3 1 E16
0.000
1 . 8 1 E13
0.000
0.
56000.
8750.
7400.
2460.
0.
0.
5000.
15100.
0.
0.
3000.
0.
0.
0.
690.
1000.
0.
0.
1000.
9000.
500.
1000.
500.
500.
447.
3000.
81000.
3082.
58
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
HCO+OH=CO+H2O
5 . 0 0 E12
0.000
0.
HCO+M=H+CO+M
1 . 6 0 E14
0.000
14700.
HCO+H=CO+H2
4 . 0 0 E13
0.000
0.
HCO+O=CO2+H
1 . 0 0 E13
0.000
0.
HCO+O2=HO2+CO
3 . 3 0 E13
0.400
0.
CO+O+M=CO2+M
3 . 2 0 E13
0.000
4200.
CO+OH=CO2+H
1 . 5 1 E07
1.300
758.
CO+O2=CO2+O
1 . 6 0 E13
0.000
41000.
HO2+CO=CO2+OH
5 . 8 0 E13
0.000
22934.
H2+O2=2OH
1 . 7 0 E13
0.000
47780.
OH+H2=H2O+H
1 . 1 7 E09
1.300
3626.
H+O2=OH+O
5 . 1 3 E16
0.816
16507.
O+H2=OH+H
1 . 8 0 E10
1.000
8826.
H+O2+M=HO2+M
3 . 6 1 E17
0.720
0.
H2O/ 1 8 . 6 / CO2/ 4 . 2 / H2 / 2 . 8 6 / CO/ 2 . 1 1 / N2 / 1 . 2 6 /
OH+HO2=H2O+O2
7 . 5 0 E12
0.000
0.
H+HO2=2OH
1 . 4 0 E14
0.000
1073.
O+HO2=O2+OH
1 . 4 0 E13
0.000
1073.
2OH=O+H2O
6 . 0 0 E08
1.300
0.
H+H+M=H2+M
1 . 0 0 E18
1.000
0.
H+H+H2=H2+H2
9 . 2 0 E16
0.600
0.
H+H+H2O=H2+H2O
6 . 0 0 E19
1.250
0.
H+H+CO2=H2+CO2
5 . 4 9 E20
2.000
0.
H+OH+M=H2O+M
1 . 6 0 E22
2.000
0.
H2O/ 5 . 0 /
H+O+M=OH+M
6 . 2 0 E16
0.600
0.
H2O/ 5 . 0 /
H+HO2=H2+O2
1 . 2 5 E13
0.000
0.
HO2+HO2=H2O2+O2
2 . 0 0 E12
0.000
0.
H2O2+M=OH+OH+M
1 . 3 0 E17
0.000
45500.
H2O2+H=HO2+H2
1 . 6 0 E12
0.000
3800.
H2O2+OH=H2O+HO2
1 . 0 0 E13
0.000
1800.
!
END
Listing B.1: The used reaction mechanism in CHEMKIN format
Bibliography
[1] R. J. Kee, M. E. Coltrin, and P. Glarborg. Chemically reacting flow : theory and
practice. Hoboken, NJ: Wiley Interscience, 2003.
[2] World energy outlook. Paris, 2010.
[3] S. R. Turns. An introduction to combustion: concepts and applications. McGrawHill series in mechanical engineering. Boston: McGraw-Hill, 2000.
[4] N. Peters. Turbulent combustion. Cambridge monographs on mechanics. Cambridge: Cambridge University Press, 2000.
[5] E. O. Lawrence. Mixing and chemical reactions in turbulent flow reactors. PhD
thesis. University of California, 1964.
[6] T. Echekki, ed. Turbulent combustion modeling : advances, new trends and perspectives. Fluid mechanics and its applications ; 95. Springer, 2011.
[7] M. Ferziger J. H. ; Peri. Numerische Strmungsmechanik. Berlin: Springer, 2008.
[8] J. H. Chen. Petascale direct numerical simulation of turbulent combustion. In:
Proceedings of the Combustion Institute 33 (2011), pp. 99123.
[9] C. Cabrit and F. Nicoud. Direct simulations for wall modeling of multicomponent
reacting compressible turbulent flows. In: Physics of Fluids 21.055108 (2009).
[10] J. Warnatz, U. Maas, and R. W. Dibble. Combustion : physical and chemical
fundamentals, modeling and simulation, experiments, pollutant formation. Berlin:
Springer, 2006.
[11] M. Dsilets, P. Proulx, and G. Soucy. Modeling of multicomponent diffusion in
high temperature flows. In: International Journal of Heat and Mass Transfer
40.18 (1997), pp. 4273 4278.
[12] J. Keller. Influence of Molecular Diffusion Flux Modeling on the Structure of
Non-Premixed and Partially Premixed Flames. MA thesis. Technische Universitt
Bergakademie Freiberg, 2011.
[13] A. Spille-Kohoff, E. Preu, and K. Bttcher. Numerical solution of multi-component
species transport in gases at any total number of components. In: International
Journal of Heat and Mass Transfer 55.1920 (2012), pp. 5373 5377.
[14] A. W. Cook. Enthalpy diffusion in multicomponent flows. In: Physics of Fluids
21.055109 (2009).
[15] H. Jasak, A. Jemcov, and Z. Tukovic. OpenFOAM: A C++ Library for Complex
Physics Simulations. In: International Workshop on Coupled Methods in Numerical Dynamics. 2007.
Bibliography
60
[16] G. Dixon-Lewis. Flame Structure and Flame Reaction Kinetics. II. Transport
Phenomena in Multicomponent Systems. In: Proceedings of the Royal Society of
London. Series A, Mathematical and Physical Sciences 307 (1986), pp. 111135.
[17] D. Goodwin. Cantera: Object-oriented software for reacting flows. September 2012.
url: \\http://code.google.com/p/cantera/.
[18] M. Rehm. Numerische Strmungssimulation der Hochdruckvergasung unter Bercksichtigung detaillierter Reaktionsmechanismen. PhD thesis. Technische Universitt Bergakademie Freiberg, 2010.
[19] R. B. Bird, W. E. Stewart, and E. N. Lightfoot. Transport phenomena. New York:
Wiley, 2002.
[20] F.M. Rupley, R.J. Kee, and J.A. Miller. PREMIX: A Fortran Program for Modeling Steady Laminar One-dimensional Premixed Flames. In: Sandia National
Laboratories Tech. Report SAND85-8240 (1995).
[21] T. Poinsot and D. Veynante. Theoretical and numerical combustion. Philadelphia,
PA: Edwards, 2001.
[22] S. B. Pope. Turbulent flows. Cambridge University Press, 2000.
[23] L. P. H. de Goey and J. H. M. ten Thije Boonkkamp. A Mass-Based Definition
of Flame Stretch for Flames with Finite Thickness. In: Combustion Science and
Technology 122.1-6 (1997), pp. 399405.
[24] R. Brdika. Grundlagen der physikalischen Chemie. Berlin: Dt. Verl. d. Wiss.,
1977.
[25] J. O. Hirschfelder, C. F. Curtiss, and R. B. Bird. Molecular theory of gases and
liquids. Structure of matter series. New York [u.a.]: Wiley [u.a.], 1954.
[26] S. Chapman and T. G. Cowling. The Mathematical theory of non-uniform gases :
an account of the kinetic theory of viscosity, thermal conduction and diffusion in
gases. Cambridge: Univ.Pr., 1970.
[27] M. Frenklach et al. GRI-Mech - An Optimized Detailed Chemical Reaction Mechanism for Methane Combustion. In: Gas Research Institute Topical Report GRI95/0058 (1995).
[28] C. R. Wilke. A Viscosity Equation for Gas Mixtures. In: The Journal of Chemical
Physics 18 (1950), pp. 517519.
[29] J. I. Steinfeld, J. S. Francisco, and W. L. Hase. Chemical kinetics and dynamics.
Englewood Cliffs, NJ: Prentice Hall, 1989.
[30] H.-P. Schmid. Ein Verbrennungsmodell zur Beschreibung der Wrmefreisetzung
von vorgemischten turbulenten Flammen. PhD thesis. Universitt Karlsruhe (TH),
1995.
[31] OpenFOAM - The Open Source CFD Toolbox, Programmers Guide. 2.1.0. OpenFOAM Foundation. 2011.
[32] OpenFOAM - The Open Source CFD Toolbox, User Guide. 2.1.1. OpenFOAM
Foundation. 2012.
Bibliography
61