summaryrefslogtreecommitdiff
path: root/Aircraft_Propulsion/Chapter10.ipynb
blob: 81e5eb7b7d6609f102e80afe92cf93683bacd126 (plain)
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
{
 "metadata": {
  "name": "",
  "signature": "sha256:47971f2a44b452c00f818eec58b584a4a6469b9051753ad28dd2d60d65edc8a9"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter10-Aircraft Engine componet matcing and off design analysis"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex1-pg611"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "print \"Example 10.1\"\n",
      "%pylab inline\n",
      "import warnings\n",
      "warnings.filterwarnings('ignore')\n",
      "#calculate and draw graph the gas generator pumping charcteristics as a fucntion of Nc2/Nc2,d\n",
      "import numpy\n",
      "import matplotlib\n",
      "from matplotlib import pyplot\n",
      "cmap=numpy.matrix([[14.1,6.50,20.0,0.82],[13.5,5.88,18.1,0.84],[13,5.32,16.4,0.83],[12.5,4.81,14.8,0.83],[12,4.36,13.4,0.83],[11.5,4,12.2,0.84]])\n",
      "import warnings\n",
      "warnings.filterwarnings('ignore')\n",
      "print cmap,\"Compressor map data in table:\"\n",
      "Cpc=1004.\n",
      "Cpt=1156.\n",
      "f=0.03 #fuel-to-air ratio\n",
      "em=0.995 #efficiency\n",
      "T=6. #T=Tt4/Tt2\n",
      "pb=0.95 #burner pressure ratio\n",
      "gmt=1.33 #gamma turbine\n",
      "gmc=1.4\n",
      "i=5\n",
      "b=1\n",
      "g1=numpy.zeros(6)\n",
      "gc1=0;\n",
      "g2=numpy.zeros(6)\n",
      "gc2=0\n",
      "g3=numpy.zeros(6)\n",
      "gc3=0\n",
      "g4=numpy.zeros(6)\n",
      "gc4=0\n",
      "z0=numpy.linspace(0.82,0.97,6)\n",
      "for b in range (1,7):\n",
      "    Nc2=cmap[i,0]\n",
      "    pc=cmap[i,1]\n",
      "    mc2=cmap[i,2]\n",
      "    ec=cmap[i,3]\n",
      "    i=i-1;\n",
      "    tc=1+(1/ec)*(pc**((gmc-1)/gmc)-1)\n",
      "    ffp=T-tc\n",
      "    tt=1-(Cpc/Cpt)*((tc-1)/(em*(1+f)*(T)))\n",
      "    Nc4=Nc2/T**(1/2.)\n",
      "    mc4=mc2*((1+f)*(T)**(1./2.))/(pb*pc)\n",
      "    pt=(1-(1-tt)/ec)**(gmt/(gmt-1)) #Assuming et=ec i.e. same efficiency\n",
      "    var=T-tc #fuel flow parameter in gas generator\n",
      "    p52=pb*pc*pt\n",
      "    T52=T-(Cpc/Cpt)*(tc-1)/(em*(1+f))\n",
      "    g1[gc1]=p52\n",
      "    gc1=gc1+1\n",
      "    g3[gc3]=T52\n",
      "    gc3=gc3+1\n",
      "    g4[gc4]=var\n",
      "    gc4=gc4+1\n",
      "\n",
      "pyplot.plot(z0,g1)\n",
      "pyplot.xlabel(\"% Nc2 Design\")\n",
      "pyplot.ylabel(\"Ratios\")\n",
      "pyplot.title(\"GAS GENERATOR PUMPING CHARACTERISTCS\")\n",
      "pyplot.plot(z0,g3)\n",
      "pyplot.plot(z0,g4)\n",
      "pyplot.legend(\"pt5/pt2\",\"Tt5/Tt2\",\"Fuel flow prameter in gas generator\")"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Example 10.1\n",
        "Populating the interactive namespace from numpy and matplotlib\n",
        "[[ 14.1    6.5   20.     0.82]\n",
        " [ 13.5    5.88  18.1    0.84]\n",
        " [ 13.     5.32  16.4    0.83]\n",
        " [ 12.5    4.81  14.8    0.83]\n",
        " [ 12.     4.36  13.4    0.83]\n",
        " [ 11.5    4.    12.2    0.84]] Compressor map data in table:\n"
       ]
      },
      {
       "output_type": "stream",
       "stream": "stderr",
       "text": [
        "WARNING: pylab import has clobbered these variables: ['f', 'var']\n",
        "`%matplotlib` prevents importing * from pylab and numpy\n"
       ]
      },
      {
       "metadata": {},
       "output_type": "pyout",
       "prompt_number": 2,
       "text": [
        "<matplotlib.legend.Legend at 0x5722810>"
       ]
      },
      {
       "metadata": {},
       "output_type": "display_data",
       "png": "iVBORw0KGgoAAAANSUhEUgAAAYkAAAEZCAYAAABiu9n+AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/A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+t/AiyNijaR5Fab9S+CaWgoXEQ9m4bAH8DpSk8xHZ3cBu1HSL0hNOf8sIj4jaQKpbX/I9m4k\nvTAb53BSGz3LgN+XjTMxIl4kqbTX8opaymZWD4eEjUtZdcxrIN2qEfgYcKqkrwNzgS9GxE2VJgUu\nBm6V9IWy/i8Dvh+pvX0iYm35RJLeQmoK+gOjKO4rgedKOi17PRvYn9TOzzezlliviojbyhcJHJf1\n3wZs04637fxh9ryM1NibWcM5JGxncD7wKeAMUkucV5I2oK+uMK4iYp2k75JVB2WCgnsVSHo56R4X\nfxrpTmAjkvRsYCAiVmXHr98TEb+sMN5LSGH3LUkXRsR3qpQpX76t2XPpfgZmDedjEjauSToA2Dsi\nbiA1f1w6ED19hEkvJLWaWdq4Xgf8RdmxgNLzkcDXgJMj4ukay7R7Ns2Xs14/B96tdLtIJB0oaUZ2\nptRTEfEN4J9Id4YrCeA3wMmSpmY3BjqpluWbNZL/fdh49ynSv3yA/wdcRbrZy/kF4wdARKzObrhy\nbvb6DkmfBq6XNECqwnkH6UD4TOAH2R7Bf0fE6yrMd3p2F7DJQD/ZfRqyYd8gVQcty06LXQWcCnQD\nH5bUB/QCw26iExG/l3Q18EfgSVLTzkX3TXZzztYUbircrINJmhkRG5Xul3w98M6IuLXd5bJdh/ck\nzDrbP0o6lHSq77ccENZq3pMwM7NCPnBtZmaFHBJmZlbIIWFmZoUcEmZmVsghYWZmhRwSZmZW6P8D\ngSQWTCaxBqwAAAAASUVORK5CYII=\n",
       "text": [
        "<matplotlib.figure.Figure at 0x54c59f0>"
       ]
      }
     ],
     "prompt_number": 2
    },
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Ex2-pg616"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#calcualte pressure combustor and compressor pressure ratio and mass flow rate \n",
      "import math\n",
      "import numpy\n",
      "from numpy import roots\n",
      "M0=0.\n",
      "p0=0.1 ##in MPa\n",
      "T0=15.+273.\n",
      "pd=0.98\n",
      "pc=25.\n",
      "ec=0.9\n",
      "Qr=42800000. ##in J/kg\n",
      "pb=0.98\n",
      "eb=0.99\n",
      "Tt4=1500.+273.\n",
      "et=0.85\n",
      "em=0.995\n",
      "mc2=73.\n",
      "Nc2=6000. ##in rpm\n",
      "Mz2=0.6\n",
      "pn=0.97\n",
      "p=1. ##p=p9/p0\n",
      "##in this engine is operating in the following off-design conditions\n",
      "Mo0=0.8\n",
      "po0=33.\n",
      "To0=-15.+273.\n",
      "Tt4o=1375.+273.\n",
      "pdo=0.995\n",
      "po=1.\n",
      "gm=1.4\n",
      "\n",
      "td=T0/Tt4\n",
      "tcd=pc**((gm-1.)/(ec*gm))\n",
      "tod=(To0*(1+(gm-1.)*Mo0**2./2.)/Tt4o)\n",
      "tcod=1.+(td/tod)*(tcd-1.)\n",
      "pcod=(tcod)**((ec*gm)/(gm-1.))\n",
      "print\"%s %.4f %s\"%(\"(a)pressure ratio in combustor,O-D :\",pcod,\"\")\n",
      "mratio=(pcod/pc)*(tod/td)**(1/2.)\n",
      "mc2od=mc2*mratio\n",
      "print\"%s %.4f %s\"%(\"(b)mc2,O-D (in kg/s) :\",mc2od,\"\")\n",
      "Nc2r=(td/tod)**(1/2.)\n",
      "Nc2od=Nc2r*Nc2\n",
      "print\"%s %.4f %s\"%(\"(c)Nc2,O-D (in rpm):\",Nc2od,\"\")\n",
      "pref=101.33 ##in kPa\n",
      "pto0=po0*(1.+(gm-1.)/2.*Mo0**2.)**(gm/(gm-1.))\n",
      "pto2=pdo*pto0\n",
      "Tref=288.2\n",
      "Tto2=To0*(1.+(gm-1.)/2.*Mo0**2.)\n",
      "the2=Tto2/Tref\n",
      "del2=pto2/pref\n",
      "m2=mc2od*del2/(the2)**(1/2.)\n",
      "\n",
      "pol=([0.6*((1.+(gm-1.)/2.)/(1.+(gm-1.)/2.*0.6**2.))**3.,-(73./64.5)])\n",
      "rr=numpy.roots(pol)\n",
      "rr=0.4974\n",
      "print\"%s %.4f %s\"% (\"(d)Mz2,O-D\",rr,\"\")\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "(a)pressure ratio in combustor,O-D : 21.1779 \n",
        "(b)mc2,O-D (in kg/s) : 64.4778 \n",
        "(c)Nc2,O-D (in rpm): 5754.4965 \n",
        "(d)Mz2,O-D 0.4974 \n"
       ]
      }
     ],
     "prompt_number": 5
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Ex3-pg618"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#calculate the engine off design performance characteristices that correspond to the supersonic flight condition of aircraft at high attitude\n",
      "print(\"Example 10.3\")\n",
      "M0=0.\n",
      "po=101.33 ##in kPa\n",
      "T0=288.2\n",
      "gmc=1.4\n",
      "Cpc=1004.\n",
      "pd=0.95\n",
      "pc=20.\n",
      "ec=0.9\n",
      "mc2=33.\n",
      "Nc2=7120.\n",
      "Mz2=0.6\n",
      "Qr=428000000.\n",
      "pb=0.98\n",
      "eb=0.97\n",
      "Tt4=1850.\n",
      "gmt=1.33\n",
      "Cpt=1156.\n",
      "et=0.8\n",
      "em=0.995\n",
      "QrAB=4280000.\n",
      "pAB=0.95\n",
      "eAB=0.98\n",
      "Tt7=2450.\n",
      "pAB=1.3\n",
      "CpcAB=1243.\n",
      "pn=0.93\n",
      "p=1. ##p=p9/p0\n",
      "Mo0=2.\n",
      "po0=20.\n",
      "To0=223.\n",
      "gm0=1.4\n",
      "Cpc0=1004.\n",
      "pdo=0.8 \n",
      "ec0=0.9\n",
      "Qr=42800000.\n",
      "pb0=0.98\n",
      "ebo=0.97\n",
      "Tt4o=1850.\n",
      "gmto=1.33\n",
      "cpto=1156.\n",
      "eto=0.8\n",
      "emo=0.995\n",
      "QrABo=42800000.\n",
      "pABo=0.95\n",
      "eab=0.98\n",
      "Tt7o=2450.\n",
      "gmABo=1.3\n",
      "Cpco=1243.\n",
      "pno=0.93\n",
      "po=1.\n",
      "a0=276.4\n",
      "\n",
      "Tt2=T0\n",
      "tc=pc**((gmc-1.)/(ec*gmc))\n",
      "Tt3=tc*Tt2\n",
      "f=(Cpt*Tt4-Cpc*Tt3)/(Qr*eb-Cpt*Tt4)\n",
      "tt=1.-(1./((1.+f)*em))*(Cpc*Tt2/(Cpt*Tt4))*(tc-1.)\n",
      "print\"%s %.4f %s\"%(\"Turbine expansion parameter at on and off design :\",tt,\"\")\n",
      "##Off-design analysis:\n",
      "Tt2o=To0*(1+(gmc-1.)/2.*(Mo0**2.))\n",
      "tcOD=1+(1.036)*0.995*(1156.*1850./(1004.*401.4))*(1.-0.7915)\n",
      "pcOD=tcOD**((gmc)*ec/((gmc-1.)))\n",
      "print\"%s %.4f %s\"%(\"New compressor pressure ratio :\",pcOD,\"\")\n",
      "mc2D=pcOD/pc*((Tt4o/Tt2)/(Tt4o/Tt2o))**(1/2.)\n",
      "mc2OD=mc2*mc2D\n",
      "print\"%s %.4f %s\"%(\"Off-line mc2 rate in \",mc2OD,\"Kg/s :\")\n",
      "Nc2r=((Tt4o/Tt2o)/(Tt4/Tt2))**(1/2.)\n",
      "Nc2OD=Nc2r*Nc2\n",
      "print\"%s %.4f %s\"%(\"Off-design Nc2,O-D in\",Nc2OD, \"rpm:\")\n",
      "pref=101.33 ##in kPa\n",
      "pt0=po0*(1.+(gmc-1.)/2.*Mo0**2.)**((gmc)/(gmc-1.))\n",
      "pt2=pdo*pt0\n",
      "del2=pt2/pref\n",
      "Tref=288.2\n",
      "the2=Tt2o/Tref\n",
      "m2=mc2OD*del2/(the2)**(1/2.)\n",
      "print\"%s %.4f %s\"%(\"Off-design mass flow in\",m2, \"kg/s\")\n",
      "Tt3=859.2\n",
      "Tt4=1850.\n",
      "fOD=0.03305\n",
      "tcr=(1.+fOD)/(1.+f)\n",
      "pt5=413.7## kPa\n",
      "pt7=393.04\n",
      "fAB=0.0367\n",
      "pt9=365.52\n",
      "M9=2.524\n",
      "T9=1253.\n",
      "V9=1725.\n",
      "\n",
      "ndst=(1.+f+fAB)*V9/a0-M9\n",
      "print\"%s %.4f %s\"%(\"Nondimensional specific thrust :\",ndst,\"\")\n",
      "TSFC=55.94 ##in mg/s/N\n",
      "print\"%s %.4f %s\"%(\"Thrust specific fuel consumption(TSFC) in\",TSFC,\" mg/s/N :\")\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Example 10.3\n",
        "Turbine expansion parameter at on and off design : 0.7914 \n",
        "New compressor pressure ratio : 10.9937 \n",
        "Off-line mc2 rate in  21.4076 Kg/s :\n",
        "Off-design Nc2,O-D in 6033.0691 rpm:\n",
        "Off-design mass flow in 22.4111 kg/s\n",
        "Nondimensional specific thrust : 4.1662 \n",
        "Thrust specific fuel consumption(TSFC) in 55.9400  mg/s/N :\n"
       ]
      }
     ],
     "prompt_number": 6
    }
   ],
   "metadata": {}
  }
 ]
}