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
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
76
77
78
79
80
81
82
83
84
85
86
87
|
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Chapter 17 Gas cycles and processes"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Ex:17.1 Pg:768"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
" Thermal efficiency = 14.9 percent\n",
"\n",
" Moles of fuel burned per mol of air = 0.00177 mol fuel/mol air\n",
"\n",
" Mass ratio in pounds = 0.00866 lbm fuel/lbm air\n",
"\n",
" Air fuel ratio = 115 lbm air/lbm fuel\n"
]
}
],
"source": [
"from __future__ import division\n",
"\n",
"#Initialization of variables\n",
"ha=1033 #Btu/mol air\n",
"hbd=2992 #Btu/mol air\n",
"hc=7823 #Btu/mol air\n",
"hdd=5142 #Btu/mol air\n",
"Hv=2733000 #Btu/mol\n",
"M=29\n",
"#calculations\n",
"Wt=hc-hdd\n",
"Wc=ha-hbd\n",
"Net=Wt+Wc\n",
"Heat=hc-hbd\n",
"etat=Net*100/Heat\n",
"molair=Heat/Hv\n",
"mr=molair*142/M\n",
"Af=1/mr\n",
"#results\n",
"print \"\\n Thermal efficiency = %.1f percent\"%(etat)\n",
"print \"\\n Moles of fuel burned per mol of air = %.5f mol fuel/mol air\"%(molair)\n",
"print \"\\n Mass ratio in pounds = %.5f lbm fuel/lbm air\"%(mr)\n",
"print \"\\n Air fuel ratio = %d lbm air/lbm fuel\"%(Af)"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 2",
"language": "python",
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.9"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
|