chemkin 介绍 - 北京大学工学院 · 2014-01-22 · 《燃烧学基础》第四章 chemkin...
TRANSCRIPT
![Page 1: CHEMKIN 介绍 - 北京大学工学院 · 2014-01-22 · 《燃烧学基础》第四章 CHEMKIN 北京大学工学院 28 cklib.f: Gas phase kinetics subroutine library INITCK.F :](https://reader038.vdocuments.pub/reader038/viewer/2022102420/5b3fab1f7f8b9a51528c5070/html5/thumbnails/1.jpg)
《燃烧学基础 》第四章 CHEMKIN 北京大学 工学院
CHEMKIN 介绍
陈 正
北京大学 工学院 力学与空天技术系
《燃烧学基础 》第四章 CHEMKIN 北京大学 工学院 2
Homogeneous Ignition Process
kkk W
dt
dY
P
kkknk
C
Wh
dt
dT
)(1
Time (s)
Mo
lefr
act
ion
Te
mp
era
ture
(K)
0 0.025 0.05 0.07510-9
10-7
10-5
10-3
10-1
1000
1500
2000
2500
T
O
H
OH
CH3
HO2
CH4T
Homogeneous IgnitionCH4/air (Phi=1)
P=1atm,T0=1200K
![Page 2: CHEMKIN 介绍 - 北京大学工学院 · 2014-01-22 · 《燃烧学基础》第四章 CHEMKIN 北京大学工学院 28 cklib.f: Gas phase kinetics subroutine library INITCK.F :](https://reader038.vdocuments.pub/reader038/viewer/2022102420/5b3fab1f7f8b9a51528c5070/html5/thumbnails/2.jpg)
《燃烧学基础 》第四章 CHEMKIN 北京大学 工学院 3
Homogeneous Ignition Process
Time (s)
XC
H3,
d[C
H3
]/d
t(m
ole
/cm
3s)
Co
ntr
ibu
ctio
nto
d[C
H3]/
dt
10-5 10-4 10-3 10-2 10-1
10-10
10-8
10-6
10-4
10-2
-0.2
0
0.2
0.4
0.6
0.8
d[CH3]/dtXCH3
R156R158 R119
R155
R98R118
R53R11
R11: CH4+O = CH3+OHR53: CH4+H = CH3+H2R98: CH4+OH= CH3+H2OR118: CH4+O2 = CH3+HO2R119: CH3+HO2 = CH3O+OHR155: CH3+O2 = CH2O+OHR156: CH3+O2 = CH3O+OR158: 2CH3(+M) = C2H6(+M)
kkk W
dt
dY
P
kkknk
C
Wh
dt
dT
)(1
《燃烧学基础 》第四章 CHEMKIN 北京大学 工学院 4
Reaction Design: CHEMKIN
CHEMKIN: cklib.f
http://www.reactiondesign.com
![Page 3: CHEMKIN 介绍 - 北京大学工学院 · 2014-01-22 · 《燃烧学基础》第四章 CHEMKIN 北京大学工学院 28 cklib.f: Gas phase kinetics subroutine library INITCK.F :](https://reader038.vdocuments.pub/reader038/viewer/2022102420/5b3fab1f7f8b9a51528c5070/html5/thumbnails/3.jpg)
《燃烧学基础 》第四章 CHEMKIN 北京大学 工学院 5
CHEMKIN Software
《燃烧学基础 》第四章 CHEMKIN 北京大学 工学院 6
![Page 4: CHEMKIN 介绍 - 北京大学工学院 · 2014-01-22 · 《燃烧学基础》第四章 CHEMKIN 北京大学工学院 28 cklib.f: Gas phase kinetics subroutine library INITCK.F :](https://reader038.vdocuments.pub/reader038/viewer/2022102420/5b3fab1f7f8b9a51528c5070/html5/thumbnails/4.jpg)
《燃烧学基础 》第四章 CHEMKIN 北京大学 工学院 7
kkk W
dt
dY
P
kkknk
C
Wh
dt
dT
)(1
T0, P, Yk,0
T(t), Yk(t)
cklib.f
《燃烧学基础 》第四章 CHEMKIN 北京大学 工学院 8
Gas phase kinetics subroutine library
kkk W
dt
dY
P
kkknk
C
Wh
dt
dT
)(1
cklib.f
![Page 5: CHEMKIN 介绍 - 北京大学工学院 · 2014-01-22 · 《燃烧学基础》第四章 CHEMKIN 北京大学工学院 28 cklib.f: Gas phase kinetics subroutine library INITCK.F :](https://reader038.vdocuments.pub/reader038/viewer/2022102420/5b3fab1f7f8b9a51528c5070/html5/thumbnails/5.jpg)
《燃烧学基础 》第四章 CHEMKIN 北京大学 工学院 9
Input: reaction mechanism
《燃烧学基础 》第四章 CHEMKIN 北京大学 工学院 10
Three-body reactions
![Page 6: CHEMKIN 介绍 - 北京大学工学院 · 2014-01-22 · 《燃烧学基础》第四章 CHEMKIN 北京大学工学院 28 cklib.f: Gas phase kinetics subroutine library INITCK.F :](https://reader038.vdocuments.pub/reader038/viewer/2022102420/5b3fab1f7f8b9a51528c5070/html5/thumbnails/6.jpg)
《燃烧学基础 》第四章 CHEMKIN 北京大学 工学院 11
Pressure-dependent reactions
《燃烧学基础 》第四章 CHEMKIN 北京大学 工学院 12
Net production rate: creation rate-destruction rate
I 反应数目K 组分数目
—— 第k个组分的静生成率 [mole/m3s]
生成率:
消耗率:
![Page 7: CHEMKIN 介绍 - 北京大学工学院 · 2014-01-22 · 《燃烧学基础》第四章 CHEMKIN 北京大学工学院 28 cklib.f: Gas phase kinetics subroutine library INITCK.F :](https://reader038.vdocuments.pub/reader038/viewer/2022102420/5b3fab1f7f8b9a51528c5070/html5/thumbnails/7.jpg)
《燃烧学基础 》第四章 CHEMKIN 北京大学 工学院 13
CKWYP in cklib.f
《燃烧学基础 》第四章 CHEMKIN 北京大学 工学院 14
Other subroutines
Pressure (EOS) Mean molecular weight
![Page 8: CHEMKIN 介绍 - 北京大学工学院 · 2014-01-22 · 《燃烧学基础》第四章 CHEMKIN 北京大学工学院 28 cklib.f: Gas phase kinetics subroutine library INITCK.F :](https://reader038.vdocuments.pub/reader038/viewer/2022102420/5b3fab1f7f8b9a51528c5070/html5/thumbnails/8.jpg)
《燃烧学基础 》第四章 CHEMKIN 北京大学 工学院 15
Thermal dynamic properties
P
kkknk
C
Wh
dt
dT
)(1
NASA Polynomial format
《燃烧学基础 》第四章 CHEMKIN 北京大学 工学院 16
Themal dynamic data input
![Page 9: CHEMKIN 介绍 - 北京大学工学院 · 2014-01-22 · 《燃烧学基础》第四章 CHEMKIN 北京大学工学院 28 cklib.f: Gas phase kinetics subroutine library INITCK.F :](https://reader038.vdocuments.pub/reader038/viewer/2022102420/5b3fab1f7f8b9a51528c5070/html5/thumbnails/9.jpg)
《燃烧学基础 》第四章 CHEMKIN 北京大学 工学院 17
Other thermal dynamic properties
《燃烧学基础 》第四章 CHEMKIN 北京大学 工学院 18
Quick Reference Guide to cklib.f
![Page 10: CHEMKIN 介绍 - 北京大学工学院 · 2014-01-22 · 《燃烧学基础》第四章 CHEMKIN 北京大学工学院 28 cklib.f: Gas phase kinetics subroutine library INITCK.F :](https://reader038.vdocuments.pub/reader038/viewer/2022102420/5b3fab1f7f8b9a51528c5070/html5/thumbnails/10.jpg)
《燃烧学基础 》第四章 CHEMKIN 北京大学 工学院 19
Quick Reference Guide to cklib.f
《燃烧学基础 》第四章 CHEMKIN 北京大学 工学院 20
Quick Reference Guide to cklib.f
![Page 11: CHEMKIN 介绍 - 北京大学工学院 · 2014-01-22 · 《燃烧学基础》第四章 CHEMKIN 北京大学工学院 28 cklib.f: Gas phase kinetics subroutine library INITCK.F :](https://reader038.vdocuments.pub/reader038/viewer/2022102420/5b3fab1f7f8b9a51528c5070/html5/thumbnails/11.jpg)
《燃烧学基础 》第四章 CHEMKIN 北京大学 工学院 21
Quick Reference Guide to cklib.f
《燃烧学基础 》第四章 CHEMKIN 北京大学 工学院 22
Quick Reference Guide to cklib.f
![Page 12: CHEMKIN 介绍 - 北京大学工学院 · 2014-01-22 · 《燃烧学基础》第四章 CHEMKIN 北京大学工学院 28 cklib.f: Gas phase kinetics subroutine library INITCK.F :](https://reader038.vdocuments.pub/reader038/viewer/2022102420/5b3fab1f7f8b9a51528c5070/html5/thumbnails/12.jpg)
《燃烧学基础 》第四章 CHEMKIN 北京大学 工学院 23
Quick Reference Guide to cklib.f
《燃烧学基础 》第四章 CHEMKIN 北京大学 工学院 24
Quick Reference Guide to cklib.f
![Page 13: CHEMKIN 介绍 - 北京大学工学院 · 2014-01-22 · 《燃烧学基础》第四章 CHEMKIN 北京大学工学院 28 cklib.f: Gas phase kinetics subroutine library INITCK.F :](https://reader038.vdocuments.pub/reader038/viewer/2022102420/5b3fab1f7f8b9a51528c5070/html5/thumbnails/13.jpg)
《燃烧学基础 》第四章 CHEMKIN 北京大学 工学院 25
Quick Reference Guide to cklib.f
《燃烧学基础 》第四章 CHEMKIN 北京大学 工学院 26
Quick Reference Guide to cklib.f
![Page 14: CHEMKIN 介绍 - 北京大学工学院 · 2014-01-22 · 《燃烧学基础》第四章 CHEMKIN 北京大学工学院 28 cklib.f: Gas phase kinetics subroutine library INITCK.F :](https://reader038.vdocuments.pub/reader038/viewer/2022102420/5b3fab1f7f8b9a51528c5070/html5/thumbnails/14.jpg)
《燃烧学基础 》第四章 CHEMKIN 北京大学 工学院 27
Sample problem——homogeneous ignition
kkk W
dt
dY
P
kkknk
C
Wh
dt
dT
)(1
Time (s)
Mo
lefr
act
ion
Te
mp
era
ture
(K)
10-4 10-3 10-2 10-110-9
10-7
10-5
10-3
10-1
1000
1500
2000
2500
T
OH
OH
CH3
HO2
CH4
Homogeneous IgnitionCH4/air (Phi=1)
P=1atm,T0=1200K
《燃烧学基础 》第四章 CHEMKIN 北京大学 工学院 28
cklib.f: Gas phase kinetics subroutine library
INITCK.F : to initialize chemkin database
MAIN_IGNIT0D.F: homogeneous ignition problem
REACTION1.F: to update T and Yi (stiff ODE solver)
REACTION2.F: to update T and Yi (Explicit Euler)
tranlib.f: transport properties subroutine library
VODEJU.F: stiff ODE solver
![Page 15: CHEMKIN 介绍 - 北京大学工学院 · 2014-01-22 · 《燃烧学基础》第四章 CHEMKIN 北京大学工学院 28 cklib.f: Gas phase kinetics subroutine library INITCK.F :](https://reader038.vdocuments.pub/reader038/viewer/2022102420/5b3fab1f7f8b9a51528c5070/html5/thumbnails/15.jpg)
《燃烧学基础 》第四章 CHEMKIN 北京大学 工学院 29
Homogeneous Ignition
《燃烧学基础 》第四章 CHEMKIN 北京大学 工学院 30
Homogeneous Ignition
![Page 16: CHEMKIN 介绍 - 北京大学工学院 · 2014-01-22 · 《燃烧学基础》第四章 CHEMKIN 北京大学工学院 28 cklib.f: Gas phase kinetics subroutine library INITCK.F :](https://reader038.vdocuments.pub/reader038/viewer/2022102420/5b3fab1f7f8b9a51528c5070/html5/thumbnails/16.jpg)
《燃烧学基础 》第四章 CHEMKIN 北京大学 工学院 31
VODE solver, implicit scheme for stiff ODEs
《燃烧学基础 》第四章 CHEMKIN 北京大学 工学院 32
ODE integration: explicit Euler scheme
![Page 17: CHEMKIN 介绍 - 北京大学工学院 · 2014-01-22 · 《燃烧学基础》第四章 CHEMKIN 北京大学工学院 28 cklib.f: Gas phase kinetics subroutine library INITCK.F :](https://reader038.vdocuments.pub/reader038/viewer/2022102420/5b3fab1f7f8b9a51528c5070/html5/thumbnails/17.jpg)
《燃烧学基础 》第四章 CHEMKIN 北京大学 工学院 33
ODE integration: explicit Euler scheme
kkk W
dt
dY
P
kkknk
C
Wh
dt
dT
)(1
《燃烧学基础 》第四章 CHEMKIN 北京大学 工学院 34
Practice
1,For H2/air (equivalence ratio 1.0, constant pressure
P=1atm), plot the ignition delay time (defined as
the time when maximum dT/dt occurs) as a
function of 1000/T0 (T0=1000, 1100, …1600K).
2,For H2/air (equivalence ratio 1.0, constant volume
with P0=1atm), plot the ignition delay time
(defined as the time when maximum dT/dt occurs)
as a function of 1000/T0 (T0=1000, 1100, …1600K).
Compare results from problem 1 and problem 2.
![Page 18: CHEMKIN 介绍 - 北京大学工学院 · 2014-01-22 · 《燃烧学基础》第四章 CHEMKIN 北京大学工学院 28 cklib.f: Gas phase kinetics subroutine library INITCK.F :](https://reader038.vdocuments.pub/reader038/viewer/2022102420/5b3fab1f7f8b9a51528c5070/html5/thumbnails/18.jpg)
《燃烧学基础 》第四章 CHEMKIN 北京大学 工学院 35
Practice
3,For H2/air (equivalence ratio 1.0, constant volume with P0=1atm, T0=1400K):
kkk W
dt
dY
P
kkknk
C
Wh
dt
dT
)(1
Method I:
Method II:
kkk W
dt
dY
T
T kPkk
NS
kkk dTTChThwithhThYTh
0
)()()()( ,,00
1
)(/])([ 0 oldP
oldoldnew TChThTT
The temperature is updated via Newton iteration:
《燃烧学基础 》第四章 CHEMKIN 北京大学 工学院 36
NOTE
Many slides are copied from materials in the following document:
This file should be used in the class only !