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
412
413
414
415
416
417
|
{
"metadata": {
"name": "",
"signature": "sha256:3309ad2ee40727e875382d56c1e718ac3ce9fa3af9889cece7627a293ed3a4ad"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
"Chapter 1:Introduction"
]
},
{
"cell_type": "heading",
"level": 3,
"metadata": {},
"source": [
"Example 1.2 Page No9"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Example 1.2\n",
"#Given\n",
"m=36 #kg, mass\n",
"acc=7.0 #ft/sq sec acceleration\n",
"W=m*9.81\n",
"\n",
"#F=W+m*acc\n",
"#1 ft= 0.3048 m\n",
"F=W+(m*acc*0.3048)\n",
"\n",
"#Result\n",
"print \"Required Force is=\",round(F,1),\"N (downward on floor)\"\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Required Force is= 430.0 N (downward on floor)\n"
]
}
],
"prompt_number": 3
},
{
"cell_type": "heading",
"level": 3,
"metadata": {},
"source": [
"Example 1.3 Page No12"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"%matplotlib inline"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"\n",
"Welcome to pylab, a matplotlib-based Python environment [backend: module://IPython.zmq.pylab.backend_inline].\n",
"For more information, type 'help(pylab)'.\n"
]
}
],
"prompt_number": 2
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Example 1.3\n",
"#Given\n",
"V=0.84 #ft**3, air volume\n",
"p=50 #psi, pressure\n",
"T=70 #degree farenheit, temprature\n",
"atmp=14.7 #psi, pressure\n",
"#the air density d=P/(RT)\n",
"#1ft**2=144 inches**2\n",
"\n",
"#calculation\n",
"d=((p+atmp)*144)/((1716)*(T+460))\n",
"print \"density of air\",round(d,3),\"slugs/ft**3\"\n",
"\n",
"#slugs/ft**3\n",
"#weight of air\n",
"W=d*32.2*V\n",
"#1lb=1 slug.ft/sq sec\n",
"\n",
"#result\n",
"print \"Weight =\",round(W,2),\"lb\"\n",
"\n",
"#plot\n",
"import matplotlib.pyplot as plt\n",
"fig = plt.figure()\n",
"ax = fig.add_subplot(111)\n",
"\n",
"p=[-12,50,100]\n",
"f=[0,0.276,0.5]\n",
"xlabel(\"p (psi)\") \n",
"ylabel(\"f (lb)\") \n",
"plt.xlim((-20,100))\n",
"plt.ylim((0,0.5))\n",
"a=plot(p,f)\n",
"ax.plot([50], [0.276], 'o')\n",
"ax.annotate('(50psi,0.276lb)', xy=(50,0.25))\n",
"show(a)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"density of air 0.01 slugs/ft**3\n",
"Weight = 0.28 lb\n"
]
},
{
"metadata": {},
"output_type": "display_data",
"png": "iVBORw0KGgoAAAANSUhEUgAAAYcAAAEMCAYAAAAvaXplAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XlYldX6//H3VklPaWmpqeCUoIATs5VpWBmpiVN9I1Mb\nzMzyV3Y6J8/pdE7St0wqz8k0y8ohs5DMjlgqqRk5iwNaZikpJOKU8xDKtH5/PLW/IqIIbB725vO6\nLq7Lvffaz76X5b6513rWWg5jjEFEROQc1ewOQEREKh8lBxERKULJQUREilByEBGRIpQcRESkCCUH\nEREpwqXJISkpCX9/f/z8/IiLiyvyenJyMtdccw3BwcEEBwfz8ssvuzIcEREpoRquunB+fj4jR45k\n6dKleHt7Ex4eTnR0NAEBAYXa3XrrrcyfP99VYYiISCm4rHJISUnB19eXFi1a4OXlRUxMDImJiUXa\naQ2eiEjl47LkkJWVRdOmTZ2PfXx8yMrKKtTG4XCwevVqOnbsSM+ePdm2bZurwhERkcvgsmElh8Nx\nyTYhISFkZmZy5ZVXsmjRIvr27cuOHTtKdS0RESmqtKMzLqscvL29yczMdD7OzMzEx8enUJs6depw\n5ZVXAtCjRw9yc3M5cuTIBa9njPHYnxdffNH2GNQ/9U39c++fgwcNd99tCAsz7NhhPVcWLksOYWFh\npKWlkZGRQU5ODgkJCURHRxdqc+DAAWcHUlJSMMZw7bXXuiokERGPtHgxBAVB27awahX4+ZX9mi4b\nVqpRowaTJk0iKiqK/Px8hg4dSkBAAFOmTAFg+PDhfPbZZ7zzzjvUqFGDK6+8ktmzZ7sqHBERj3P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ZsqTIawkJCcyaNcv5OC8vj59//plvv/2WzMxMunbtytatW4u8784776RevXoA9O/fn5Ur\nVxIaGkrNmjUpKCjgzJkz1NKe5WVSbHLQsZwi5S8nB1580UoIU6fCXXdd/jXMObcmNm7cGICWLVsS\nGRlJamoq/fr149ixYxQUFFCtWjX27NmDt7c3cOFbG6tVq0aXLl1YsWIFX375JQ899BB//vOfGTx4\n8AU/39vbmz179jgfn3v98+3Zs4f+/fvz0Ucf0bJly0Kvbdmyhby8vEKLaX18fOjUqRPVq1enRYsW\ntG7dmrS0tIueEGmMcVZJfzzWL7BlV+ycQ+/evYv9Of+4TxG5tB074OabYetW60zn0iSG+vXrc+rU\nKQCOHTvG2bPW6ulDhw6xatUqAgMDcTgcdOvWjTlz5gDw4YcfOoeFjTEkJiZy9uxZDh8+THJyMuHh\n4ezevZsGDRrw6KOPMnToUFJTU4t89u23386+ffto3LgxV199NevWrcMYw0cffeS8/rmOHTtGr169\niIuL46abbiryenx8PAMHDiz0XN++fUlOTnb2aceOHdxwww1F3rtkyRKOHj1KdnY2iYmJdO7cGYCz\nZ89SvXp1atasWdK/UilGsZXDs88+W+yblJVFSs4Yq0r4+9/hpZfg8cehtP+EqlevTrt27di+fTtH\njhxh+PDhVKtWjYKCAv7+97/j7+8PQFxcHDExMbzwwguEhIQwdOhQwPq326FDB7p168ahQ4f417/+\nRaNGjZg5cyavv/46Xl5e1KlTh5kzZxb63IKCAnbu3Mm1114LwOTJk3nooYfIzs6mZ8+e3PV7pvvi\niy/YsGEDsbGxTJo0iZ07dxIbG+s86H7x4sU0+P1A6zlz5rBo0aJCnxMVFcXixYtp27Yt1atX5403\n3qBevXocP37c+b3jcDiIiIhgwIAB7Nmzh8GDBxMSEgJAamrqBRORXD4dEyriQocPw7BhsGsXfPIJ\nBAaW/ZozZszgwIEDjB49+rLfGxsbS+3atS/6y9+F/PDDD0yfPp033njjsj+zIj3//POEh4fTr18/\nu0OpFMry3VnssFKvXr2YM2eO866Fc/32228kJCTQs2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BxERKULJQUREilByEBGRIpQcRC7TpEmTmDFjxmW/b+/evdx7770AbNmyhaFDh5Zz\nZCLlR3criVwGYwwhISGsX7+eGjXKtoY0MjKSTz/91O0XXolnUuUgVVZGRgb+/v4MGjSIwMBA7r33\nXrKzsy/6nlWrVuHv7+9MDJGRkYwaNYrg4GDat2/P+vXrAfj2228JDg4mODiYkJAQTp8+TUZGBu3b\nt3deq0ePHsyZM8d1HRQpAyUHqdJ27NjBk08+ybZt27j66quZPHnyRduvXLmSsLAw52OHw0F2djap\nqalMnjyZRx55BIDx48czefJkUlNTWblyZaFV/n+IiIhg+fLl5dshkXKi5CBVWtOmTbnpppsAGDRo\nECtXrrxo+927d9O4ceNCz91///0AdOnShRMnTnD8+HE6d+7MM888w8SJEzl69CjVq1cvcq3GjRuT\nkZFRPh0RKWdKDlKlnbszpTGmRLtyXmqarlq1aowePZqpU6eSnZ1N586d2b59+wWv40m7gIpnUXKQ\nKm337t2sXbsWgE8++YQuXbpctH3z5s3Zv39/oecSEhIAa8ipbt261KlTh507d9K2bVuee+45wsPD\nL5gc9u3bR/PmzcupJyLlS8lBqrQ2bdrw9ttvExgYyPHjxxkxYsRF299yyy1s2LCh0HO1atUiJCSE\nJ554gqlTpwIwYcIE2rdvT8eOHbniiivo0aMHULhSSUlJoWvXruXcI5HyoVtZpcrKyMigd+/efP/9\n9yV+zx+3sq5bt44rrriCbt26MX78eEJCQi7783Urq1RmqhykSrvcMX+Hw8GwYcP4+OOPy/S53333\nHb6+vkoMUmmpchARkSJUOYiISBFKDiIiUoSSg4iIFKHkICIiRSg5iIhIEUoOIiJSxP8HeWG9fzQs\n0EsAAAAASUVORK5CYII=\n"
}
],
"prompt_number": 31
},
{
"cell_type": "heading",
"level": 3,
"metadata": {},
"source": [
"Example 1.4 Page No18"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Example 1.4\n",
"#Given\n",
"vis=0.38 #Ns/m**2, viscosity\n",
"sg=0.91 #specific gravity of Newtonian fluid\n",
"dia=25 #mm, diameter\n",
"vel=2.6 #m/s, velocity\n",
"\n",
"#calculating in SI units\n",
"#fluid density d=sg*(density of water @ 277K)\n",
"d=sg*1000 #kg/m**3\n",
"#Reynolds number Re=d*vel*dia/vis\n",
"Re=(d*vel*dia*10**-3)/(vis) #(kgm/sec**2)/N\n",
"print \"Re in SI units=\",round(Re,1)\n",
"\n",
"#calculating in BG units\n",
"d1=d*1.94*10**-3 #slugs/ft**3\n",
"vel1=vel*3.281 #ft/s\n",
"dia1=(dia*10**-3)*3.281 #ft\n",
"vis1=vis*(2.089*10**-2) #lb*s/ft**2\n",
"Re1=(d1*vel1*dia1)/vis1 #(slugs.ft/sec**2)/lb\n",
"\n",
"#result\n",
"print \"Re in Bg units=\",round(Re1,1)\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Re in SI units= 155.7\n",
"Re in Bg units= 155.6\n"
]
}
],
"prompt_number": 4
},
{
"cell_type": "heading",
"level": 3,
"metadata": {},
"source": [
"Example 1.5 Page No19"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Example 1.5\n",
"#Given\n",
"vis=0.04 #lb*sec/ft**2 , viscosity\n",
"vel=2 #ft/sec, velocity\n",
"h=0.2 #inches, height\n",
"\n",
"#given\n",
"#u=(3*vel/2)*(1-(y/h)**2)\n",
"#shearing stress t=vis*(du/dy)\n",
"#(du/dy)=-(3*vel*y/h)\n",
"#along the bottom of the wall y=-h\n",
"#(du/dy)=(3*vel/h)\n",
"\n",
"#Calculation\n",
"t=vis*(3*vel/(h/12)) #lb/ft**2\n",
"print \"shaering stress t on bottom wall=\",round(t,3),\"lb/ft**2\"\n",
"#along the midplane y=0\n",
"#(du/dy)=0\n",
"t1=0 #lb/ft**2\n",
"\n",
"#result\n",
"print \"shearing stress t on midplane=\",round(t1,3),\"lb/ft**2\"\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"shaering stress t on bottom wall= 14.4 lb/ft**2\n",
"shearing stress t on midplane= 0.0 lb/ft**2\n"
]
}
],
"prompt_number": 1
},
{
"cell_type": "heading",
"level": 3,
"metadata": {},
"source": [
"Example 1.6 Page No 21"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Example 1.6\n",
"#Given\n",
"p1=14.7 #psi(abs), pressure at inlet\n",
"V1=1 #ft**3, velocity at inlet\n",
"V2=0.5 #ft**3, outlet velocityx\n",
"#for isentropic compression, (p1(d1**k))=(p2/(d2**k))\n",
"#volume*density=constant(mass)\n",
"ratd=V1/V2\n",
"\n",
"#Calculation\n",
"p2=((ratd)**1.66)*p1 #psi(abs)\n",
"\n",
"#Result\n",
"print \"final pressure p2=\",round(p2,3),\"psi(abs)\"\n",
"\n",
"#plot\n",
"import matplotlib.pyplot as plt\n",
"fig = plt.figure()\n",
"ax = fig.add_subplot(111)\n",
"\n",
"v=[0.1,0.2,0.5,1]\n",
"p=[900,200,46.5,10]\n",
"xlabel(\"Vf/Vi\") \n",
"ylabel(\"p (psi)\") \n",
"plt.xlim((0,1))\n",
"plt.ylim((0,1000))\n",
"a=plot(v,p)\n",
"\n",
"\n",
"ax.plot([0.5], [46.5], 'o')\n",
"ax.annotate('(0.5,46.5 psi)', xy=(0.5,50))\n",
"\n",
"show(a)\n",
"\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"final pressure p2= 46.454 psi(abs)\n"
]
},
{
"metadata": {},
"output_type": "display_data",
"png": "iVBORw0KGgoAAAANSUhEUgAAAY4AAAELCAYAAADOeWEXAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3Xt0FGWe//F3J9yCsCgIuCNECIZ0IrcASYebCahcxBDk\nYhJHcQl4MMxMBp1ddUd2xPEcUdSRy/wIqBNnR3FAwVnCNQJug5msnXAzCgkgiFFEgqASIMil6/dH\nSwMSSLpJd3V3Pq9zOJB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hQt58803/Va/yLXQU1UiXnjttdf4v//7P/Ly8tyv9evXj1mzZnHfffdRUVFB48aNAXjjjTf47rvv\nOHLkCE2bNuUPf/gDAE6nk1tuuYWioiI6duxoynGIeENXHCJeGDt2LKtWreLs2bMA7N+/n6+//poX\nX3yRw4cPk5iYyLvvvgu4+kPdfffdZGZmsmTJEvd7bNq0iU6dOtGxY0dmzJjByy+/bMqxiHhKwSHi\nhdatW5OYmMjq1asBWLx4Menp6eTn5xMREcG2bdsYP348586dY9euXVitVrp160ZYWBilpaXufTIz\nMwH1VJPgouAQ8VJmZiaLFy8GYMmSJe4QuJjD4bik1cX5fc6dO8fy5csZP3683+oVqS8KDhEvjRo1\nig0bNrBt2zZOnjxJfHz8ZdusWbOGESNGuL/OyMjgnXfeYf369fTo0SOkPx9EQpeCQ8RLLVq0YPDg\nwUycOJH777+/xm0++OAD94cmAURFRXHjjTfy5JNPXnEfkUCn4BC5BpmZmXzyySeX3KY6P19x+PBh\nmjVrxnXXXXfZPrt27WLMmDGXvK55DgkWehxXxEcWLVrEgQMHePzxx80uRaReKThERMQjulUlIiIe\nUXCIiIhHFBwiIuIRBYeIiHhEwSEiIh5RcIiIiEf+P2S92/Nie9kJAAAAAElFTkSuQmCC\n"
}
],
"prompt_number": 5
},
{
"cell_type": "heading",
"level": 3,
"metadata": {},
"source": [
"Example 1.7 Page No 23"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Example 1.7\n",
"#Given\n",
"s=550 #(mph), \n",
"h=35000 #ft\n",
"T=-66 #degrees farenheit, temprature\n",
"k=1.40 #W/mK, thermal conductivity\n",
"\n",
"#calculation\n",
"#speed of sound c=(kRT)**0.5\n",
"c=((k*1716*(T+460)))**0.5 #ft/s\n",
"\n",
"#result\n",
"print \"speed of sound c=\",round(c,3),\"ft/s\"\n",
"#speed of sound V=(s m/hour)*(5280 ft/m)/(3600 s/hour)\n",
"V=s*5280/3600 #ft/s\n",
"print(\"ft/s\",V,\"air speed =\")\n",
"ratio=V/c #Mach number\n",
"print \"ratio of V/c = Mach Number=\",round(ratio,2)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"speed of sound c= 972.906 ft/s\n",
"('ft/s', 806, 'air speed =')\n",
"ratio of V/c = Mach Number= 0.83\n"
]
}
],
"prompt_number": 6
},
{
"cell_type": "heading",
"level": 3,
"metadata": {},
"source": [
"Example 1.8 Page No 26"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Example 1.8\n",
"\n",
"T=20 #degree celcius, Temprature\n",
"h=1 #mm, height\n",
"\n",
"#calculation\n",
"import math\n",
"\n",
"#h=(2*st*math.cos(x)/(sw*R))\n",
"#where st= nsurface tension, x= angle of contact, sw= specific weight of liquid, R= tube radius\n",
"st= 0.0728 #N/m\n",
"sw=9.789 #kN/m**3\n",
"x=0\n",
"R=(2*st*math.cos(x))/(sw*1000*h/1000) #m\n",
"D=2*R*1000 #mm\n",
"print \"minimum required tube diameter= \",round(D,1),\"mm\"\n",
"\n",
"#Plot\n",
"h=[0.3,0.5,1,2]\n",
"D=[100,50,29.8,18]\n",
"xlabel(\"h (mm)\") \n",
"ylabel(\"D (mm)\") \n",
"plt.xlim((0,2))\n",
"plt.ylim((0,100))\n",
"a=plot(h,D)\n",
"show(a)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"minimum required tube diameter= 29.7 mm\n"
]
},
{
"metadata": {},
"output_type": "display_data",
"png": "iVBORw0KGgoAAAANSUhEUgAAAYgAAAEMCAYAAADeYiHoAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAHIhJREFUeJzt3X9wVOW9x/FPQggKRIEENgqU2ISYXwQIAhd7lUUaGLiG\npmhRtJqCaKdcVLx2ItNbNdx6JWg7XCu19tq5TGq9IuqIQJEBRxYVQfRCiZCEIBAJmCxgEuWHkB/s\n/eM0kYQT2E1295zdfb9mMobN7p4vZ475c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/0Qf/rTnyRJP//5zzV9+nStX79eKSkp6tOnj1asWGFx1fblzfl84403\n9Mc//lExMTHq3bu3Vq5caXHV9jV79mxt2bJFJ06c0NChQ7V48WI1NTVJ4trsisudT65N723dulV/\n/etflZ2drdGjR0uSnn76aR0+fFhS167PKA9LBAAAJmw3xAQAsAcCAgBgioAAAJgiIAAApggIRKyq\nqqpLbrrXmXXr1qmoqMjv9ZSWluq+++7z+/sCXUVAAD763e9+p1/84hd+f9/s7GwdOHBAx44d8/t7\nA11BQCCitbS06IEHHlBWVpamTp2qs2fPXvL51dXVamxsbGsu+tnPfqb58+drwoQJSk5OlsvlUkFB\ngTIyMjRnzpy21/Xt21eFhYXKyspSbm6utm/frokTJyo5OVlr165te960adP0+uuvB+YvC/iIgEBE\n279/vxYsWKA9e/aoX79+evPNNy/5/K1btyonJ6ftz1FRUWpoaNC2bdu0bNkyzZgxQ4WFhdq7d68+\n++wzlZaWSpLOnDmjyZMna8+ePYqLi9MTTzyh9957T2+99ZaeeOKJtvcbN26c3n///cD8ZQEf2a6T\nGgim6667TtnZ2ZKkMWPGqKqq6pLPP3z4sK655pp2j+Xl5UmSsrKylJiYqMzMTElSZmamqqqqlJ2d\nrdjYWE2dOlWSNGLECF1xxRXq0aOHsrKy2h3zmmuuuWwNQLBwB4GI1qtXr7bve/Tooebm5su+puPm\nA7GxsZKk6Ojodu8XHR3d9n49e/Zs9/iFr7nwmB6Ph91fYRsEBOCDYcOGqba2NmDvX1NTo2HDhgXs\n/QFfEBCIaB3/tX65f73/4Ac/0M6dOzt9TWevv9RxLvx+x44duvnmmy9dNBAkbNYH+OiWW27RK6+8\nctFchD84nU6tWrVKgwYN8vt7A77iDgLw0S9/+Uu9+OKLfn/f0tJSpaSkEA6wDe4gAACmuIMAAJgi\nIAAApggIAIApAgIAYIqAAACYIiAAAKb+H6kHdza7C9VRAAAAAElFTkSuQmCC\n"
}
],
"prompt_number": 7
}
],
"metadata": {}
}
]
}
|