summaryrefslogtreecommitdiff
path: root/Mechanics_Of_Fluids/ch8.ipynb
blob: 846b475bdf363aee170114eb4f00171d3432efed (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
412
413
414
415
416
417
418
419
{
 "metadata": {
  "name": ""
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter 8 : Behaviour of Ideal and Viscous Fluids"
     ]
    },
    {
     "cell_type": "heading",
     "level": 3,
     "metadata": {},
     "source": [
      "Example 8.2.1 page no : 190"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "\n",
      "#initialisation of variables\n",
      "\n",
      "v= 5.*10**-6 \t\t\t#gmsec/m**2\n",
      "g= 32.2 \t\t\t#ft/sec**2\n",
      "g1= 981. \t\t\t#gm/cm**2\n",
      "\t\t\t\n",
      "#CALCULATIONS\n",
      "v1= v*2.2*30.5**2/1000.\n",
      "v2= v1*g\n",
      "v3= v*g1*100\n",
      "\t\t\t\n",
      "#RESULTS\n",
      "print  'viscosity = %.2e lbf sec/ft**2 '%(v1)\n",
      "print  'viscosity = %.2e lb/ft sec '%(v2)\n",
      "print  'viscosity = %.3f centi-poise '%(v3)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "viscosity = 1.02e-05 lbf sec/ft**2 \n",
        "viscosity = 3.29e-04 lb/ft sec \n",
        "viscosity = 0.490 centi-poise \n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "heading",
     "level": 3,
     "metadata": {},
     "source": [
      "Example 8.3.1 page no : 192"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "#initialisation of variables\n",
      "\n",
      "v= 3.732*10**-7 \t\t\t#slug/ft sec\n",
      "y= 0.\n",
      "\t\t\t\n",
      "#CALCULATIONS\n",
      "vbyy= 40000.*(1.-50*y)\n",
      "q= v*vbyy\n",
      "\t\t\t\n",
      "#RESULTS\n",
      "print  ' viscous shear stress= %.4f lbf/ft**2 '%(q)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        " viscous shear stress= 0.0149 lbf/ft**2 \n"
       ]
      }
     ],
     "prompt_number": 2
    },
    {
     "cell_type": "heading",
     "level": 3,
     "metadata": {},
     "source": [
      "Example 8.3.2 page no : 193"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "#initialisation of variables\n",
      "import math \n",
      "\n",
      "T= 2.95 \t\t\t#lbf ft\n",
      "y= 0.025 \t\t\t#in\n",
      "d= 3. \t\t\t    #in\n",
      "w= 450. \t\t\t#r.p.m\n",
      "g= 32.2 \t\t\t#ft/sec**2\n",
      "R = 1.5\n",
      "\t\t\t\n",
      "#CALCULATIONS\n",
      "A = math.pi*d*(2./3.)\n",
      "u = (T*y*144*60*32.2)/(A*R**2*w*2*math.pi)\t\t\n",
      "\n",
      "#RESULTS\n",
      "print  ' coefficient of viscocity of oil= %.3f lb/ft sec '%(u)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        " coefficient of viscocity of oil= 0.513 lb/ft sec \n"
       ]
      }
     ],
     "prompt_number": 5
    },
    {
     "cell_type": "heading",
     "level": 3,
     "metadata": {},
     "source": [
      "Example 8.3.3 page no : 194"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "#initialisation of variables\n",
      "import math \n",
      "\n",
      "v= 0.02 \t\t\t#lb/ft sec\n",
      "L= 5. \t\t\t#in\n",
      "D= 2.5 \t\t\t#in\n",
      "M= 26. \t\t\t#lbf in\n",
      "w= 1200. \t\t\t#rev/min\n",
      "g= 32.2 \t\t\t#ft/sec**2\n",
      "\t\t\t\n",
      "#CALCULATIONS\n",
      "C= math.pi*v*w*2*math.pi*D**3*L/(2*M*g*60*144.)\n",
      "\t\t\t\n",
      "#RESULTS\n",
      "print  ' coefficient= %.4f in '%(C)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        " coefficient= 0.0026 in \n"
       ]
      }
     ],
     "prompt_number": 4
    },
    {
     "cell_type": "heading",
     "level": 3,
     "metadata": {},
     "source": [
      "Example 8.3.4 page no : 195"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "#initialisation of variables\n",
      "import math \n",
      "\n",
      "g= 32.2 \t\t\t#ft/sec**2\n",
      "l= 2.54 \t\t\t#cm\n",
      "g= 32.2 \t\t\t#ft/sec**2\n",
      "v= 3.22 \t\t\t#centi-poise\n",
      "f= 0.01\n",
      "p= 1.74 \t\t\t#lbf/in**2\n",
      "w= 100. \t\t\t#rev\n",
      "\t\t\t\n",
      "#CALCULATIONS\n",
      "V= v*l/(453.6*g*12)\n",
      "R= f*p*60/(math.pi*2*math.pi*w*V)\n",
      "\n",
      "\t\t\t\n",
      "#RESULTS\n",
      "print ' relevant ratio of diameter to clearance= %.1f '%(R)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        " relevant ratio of diameter to clearance= 11.3 \n"
       ]
      }
     ],
     "prompt_number": 5
    },
    {
     "cell_type": "heading",
     "level": 3,
     "metadata": {},
     "source": [
      "Example 8.4.1 page no : 196"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "#initialisation of variables\n",
      "g= 981. \t\t\t#cm/sec**2\n",
      "d= 0.1 \t\t\t#mm\n",
      "v= 35. \t\t\t#centi-stokes\n",
      "d1= 10. \t\t\t#mm\n",
      "d2= 1. \t\t\t#mm\n",
      "\t\t\t\n",
      "#CALCULATIONS\n",
      "u= g*d**2.*100/(18*v*d1**2)\n",
      "ub= (d2/d)**2*u\n",
      "\t\t\t\n",
      "#RESULTS\n",
      "print  ' rate for diameter 0.1 mm= %.4f cm/sec'%(u) \n",
      "print  '  rate for diameter 1 mm= %.2f cm/sec'%(ub) \n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        " rate for diameter 0.1 mm= 0.0156 cm/sec\n",
        "  rate for diameter 1 mm= 1.56 cm/sec\n"
       ]
      }
     ],
     "prompt_number": 6
    },
    {
     "cell_type": "heading",
     "level": 3,
     "metadata": {},
     "source": [
      "Example 8.5.1 page no : 201"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "#initialisation of variables\n",
      "import math\n",
      "a= 0.25 \t\t\t#ft\n",
      "v= 1.2 \t\t\t#poises\n",
      "u= 10. \t\t\t#ft/sec\n",
      "g= 32.2 \t\t\t#ft/sec**2\n",
      "s= 0.9\n",
      "d= 6. \t\t\t#in\n",
      "\t\t\t\n",
      "#CALCULATIONS\n",
      "q= -2.*u*v*30.5/(a*454*g)\n",
      "Q= math.pi*u*(d/24)**2/2\n",
      "R= 2.5*30.5**2/(v)\n",
      "\t\t\n",
      "#RESULTS\n",
      "print  ' quantity flow = %.2f ft**3/sec'%(q) \n",
      "print  '  shear stress in the oil = %.2f lbf/ft**2'%(Q) \n",
      "print  '  Reynolds number = %.f '%(R)\n",
      "print 'Which is less than 2300 .Hence flow is laminar.'\n",
      "# Note : Answer in book is wrong for R. Please check it manually."
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        " quantity flow = -0.20 ft**3/sec\n",
        "  shear stress in the oil = 0.98 lbf/ft**2\n",
        "  Reynolds number = 1938 \n",
        "Which is less than 2300 .Hence flow is laminar.\n"
       ]
      }
     ],
     "prompt_number": 2
    },
    {
     "cell_type": "heading",
     "level": 3,
     "metadata": {},
     "source": [
      "Example 8.5.2 page no : 202"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "#initialisation of variables\n",
      "import math\n",
      "\n",
      "s= 0.9          #relative density\n",
      "v= 5. \t\t\t#ft/sec\n",
      "l= 10. \t\t\t#ft\n",
      "di= 0.5 \t\t\t#in\n",
      "n= 100.\n",
      "u= 0.002 \t\t\t#lbfsec/ft**2\n",
      "w= 62.3 \t\t\t#lbf/ft**3\n",
      "g= 32.2 \t\t\t#ft/sec**2\n",
      "\t\t\t\n",
      "#CALCULATIONS\n",
      "dp= 8.*u*v*l/(di/2)**2\n",
      "hf= dp*144./(s*w)\n",
      "hk= v**2/(2.*g)\n",
      "ht=hf+hk\n",
      "P= s*w*n*v*math.pi*ht*di**2/(144.*4*550)\n",
      "\n",
      "#RESULTS\n",
      "print  ' horse-power required = %.1f h.p'%(P)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        " horse-power required = 2.3 h.p\n"
       ]
      }
     ],
     "prompt_number": 5
    },
    {
     "cell_type": "heading",
     "level": 3,
     "metadata": {},
     "source": [
      "Example 8.6.2 pageno : 206"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "#initialisation of variables\n",
      "import math \n",
      "\n",
      "W= 50. \t\t\t#tonf\n",
      "u= 0.1 \t\t\t#lb/ft sec\n",
      "d= 8. \t\t\t#in\n",
      "g= 32.2 \t\t\t#ft/sec**2\n",
      "r= 0.01\n",
      "\t\t\t\n",
      "#CALCULATIONS\n",
      "P = (4*W**2)/(3*math.pi*u) * ((1./800)**3)*(12./8)*(g/550)*2240**2\n",
      "Q= 4*W*2240*g*12*(r/d)**3/(3*math.pi*u*(d/12))\n",
      "\t\t\t\n",
      "#RESULTS\n",
      "print ' power required = %.2f'%P\n",
      "print  ' rate = %.3f in/sec'%(Q)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        " power required = 9.13\n",
        " rate = 0.538 in/sec\n"
       ]
      }
     ],
     "prompt_number": 6
    }
   ],
   "metadata": {}
  }
 ]
}