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
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
|
{
"metadata": {
"name": "Chapter_7"
},
"nbformat": 2,
"worksheets": [
{
"cells": [
{
"cell_type": "markdown",
"source": [
"<h1>Chapter 7: Velocity Humidity and Moisture<h1>"
]
},
{
"cell_type": "markdown",
"source": [
"<h3>Example 7.1, Page NUmber: 436<h3>"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"'''calculation of absolute viscosity'''",
"",
"#variable declaration",
"f=2*9.8*10**5 # Force in Dynes",
"A=100.0 # area in cm^2",
"V=20.0 # velocity in m/sec",
"l=10.0 # length in cm",
"",
"#calculation",
"mu=(f/A)/(V/l)",
"mu=mu/1000.0",
"",
"#result",
"print('The absolute viscosity mu = %.1f*10^5 centipoises'%mu)"
],
"language": "python",
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"The absolute viscosity mu = 9.8*10^5 centipoises"
]
}
],
"prompt_number": 4
},
{
"cell_type": "markdown",
"source": [
"<h3>Example 7.2, Page Number:437<h3>"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"'''calculation of kinematic relative and absolute viscosity'''",
"",
"#(a)",
"",
"#variable declaration",
"v=10.0 # absolute viscosity",
"",
"#calculation",
"F=1/v",
"",
"#result",
"print('(a)\\nFluidity = %.1f rhe'%F)",
"",
"#(b)",
"",
"#variable declaration",
"mu=10.0 # absolute viscosity",
"rho=0.8 # density in m/cm^3",
"",
"#calculation",
"ve=mu/rho",
"",
"#result",
"print('\\n(b)\\nKinematic viscosity (v)= %.1f cm^2/sec'%ve)",
"",
"",
"#(c)",
"",
"#variable declaration",
"ab=1000.0 # absolute viscosity ",
"abwt=1.002 # absolute viscosity of water at 20 deree celcius",
"",
"#calculation",
"rv=ab/abwt",
"",
"#result",
"print('\\n(c)\\nRelative viscosity = %d centipoises'%rv)",
"",
"#(d)",
"",
"#variable declaration",
"PAS=10.0",
"",
"#Result",
"print('\\n(c)\\nAbsolute viscosity = 1000 centipoises =10 poises = 1PAS')"
],
"language": "python",
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"(a)",
"Fluidity = 0.1 rhe",
"",
"(b)",
"Kinematic viscosity (v)= 12.5 cm^2/sec",
"",
"(c)",
"Relative viscosity = 998 centipoises",
"",
"(c)",
"Absolute viscosity = 1000 centipoises =10 poises = 1PAS"
]
}
],
"prompt_number": 5
},
{
"cell_type": "markdown",
"source": [
"<h3>Example 7.3, Page Number: 438<h3>"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"'''Absolute viscosity of the Newtonian fluid'''",
"",
"import math",
"#b)",
"",
"#variable declaration",
"R=0.5 # radius",
"L=5 # length",
"p_diff=800.0 # pressure difference",
"V=10.0 # volume",
"",
"#calculation",
"mu=(math.pi*R**4)*p_diff/(8*V*L)",
"",
"#result",
"print('(b)\\nmu=%.4f poise =%.2f centipoise'%(mu,mu*100))"
],
"language": "python",
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"(b)",
"mu=0.3927 poise =39.27 centipoise"
]
}
],
"prompt_number": 6
},
{
"cell_type": "markdown",
"source": [
"<h3>Example 7.4, Page Number: 439<h3>"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"'''kinematic viscosity and density calculation'''",
"",
"import math ",
"#(a)",
"",
"#variable declaration",
"g=980.0 # acceleration due to gravity",
"h=4 # Height",
"R=0.5 # radius",
"V=10.0 # volume ",
"l=5.0 # length ",
"t=1.0",
"",
"#calculation",
"v=(math.pi*g*h*t*R**4)/(8*l*V)",
"",
"#result",
"print('(a)\\n v = %.2f stokes'%v)",
"",
"#calculation",
"mu=0.3925",
"rho=mu/v",
"",
"#result",
"print('\\n(b)\\n Density of the fluid rho = %.3f gm/cm^3'%rho)"
],
"language": "python",
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"(a)",
" v = 1.92 stokes",
"",
"(b)",
" Density of the fluid rho = 0.204 gm/cm^3"
]
}
],
"prompt_number": 7
},
{
"cell_type": "markdown",
"source": [
"<h3>Example 7.5, Page Number: 440<h3>"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"'''Kinematic Viscosity in Saybolts Universal viscometer'''",
"",
"#variable declaration",
"",
"#(a)",
"A=0.226 # value of A as per equation",
"B=195.0 # value of B as per equation",
"t=60.0 # Efflux time",
"",
"#calcullation",
"v=A*t-B/t",
"A1=0.220",
"B1=135.0",
"t1=140.0",
"v1=A1*t1-B1/t1",
"",
"#result",
"print('(a) Fluid X\\n v = %.2f centipoises'%v)",
"print('\\n(b)Fluid Y\\n v = %.1f centipoises'%v1)"
],
"language": "python",
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"(a) Fluid X",
" v = 10.31 centipoises",
"",
"(b)Fluid Y",
" v = 29.8 centipoises"
]
}
],
"prompt_number": 8
},
{
"cell_type": "markdown",
"source": [
"<h3>Example 7.6, Page Number: 441<h3>"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"'''calculation of absolute viscosity'''",
"",
"import math",
"",
"#variable declaration",
"t=12.0 # time interval of falling ball in sec ",
"Rsb=7.0 # Specific gravity of ball",
"Rsf=1.12 # Specific gravity of fluid",
"B=1.5 # Ball constant in centipoises",
"",
"#calculation",
"mu=t*(Rsb-Rsf)*B",
"",
"#result",
"print('mu= %.2f centipoises = %d centipoises(approx)'%(mu,math.ceil(mu)))"
],
"language": "python",
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"mu= 105.84 centipoises = 106 centipoises(approx)"
]
}
],
"prompt_number": 9
},
{
"cell_type": "markdown",
"source": [
"<h3>Example 7.7, Page Number: 441<h3>"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"'''calculation of relative humidity'''",
"",
"#(a)",
"",
"#variable declaration",
"B=45.0 # dry bulb temperature",
"W=25.0 # wet bulb temperature",
"",
"#result",
"print('\\n(b)\\nPsychromatic differential : %d\u00b0C'%(B-W))",
"print('\\n Relative humidity is 80%% corresponding to')",
"print(' \\ntemperature 45\u00b0C and psychromatic differential 20\u00b0C')",
"",
"#(b)",
"",
"#variable declaration",
"B1=30.0 # dry bulb temperature",
"W1=27.0 # wet bulb temperature",
"",
"#result",
"print('\\n(b)\\nPsychromatic differential : %d\u00b0C'%(B1-W1))",
"print('\\n Relative humidity is 80%% corresponding to')",
"print(' \\ntemperature 30\u00b0C and psychromatic differential 3\u00b0C')"
],
"language": "python",
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"",
"(b)",
"Psychromatic differential : 20\u00b0C",
"",
" Relative humidity is 80%% corresponding to",
" ",
"temperature 45\u00b0C and psychromatic differential 20\u00b0C",
"",
"(b)",
"Psychromatic differential : 3\u00b0C",
"",
" Relative humidity is 80%% corresponding to",
" ",
"temperature 30\u00b0C and psychromatic differential 3\u00b0C"
]
}
],
"prompt_number": 10
},
{
"cell_type": "markdown",
"source": [
"<h3>Example 7.8, Page Number: 441<h3>"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"'''calculation of Relative Humidity dew point and moisture content'''",
"",
"#variable declaration",
"D=80.0 # intersection point of DB temperature",
"W=66.5 # intersection point of WB temperature",
"",
"#Result",
"",
"#(a)",
"print('(a)\\nThe intersection point of DB temperature 80\u00b0F and WB temperature 66.5\u00b0F')",
"print(' \\nlines on the relative humidity curve for 50%.\\n RH = 50%')",
"",
"#(b)",
"print('\\n(b)\\nFrom the point of intersection of the dry and wet bulb curves, move left')",
"print(' \\nhorizontally to the dew point temperature curve where it meets at 60\u00b0F')",
"print('\\nDew Point = 60\u00b0F')",
"",
"#(c)",
"print('\\n(c)\\nFrom the point of intersection of the dry and wet bulb curves,')",
"print('\\nhorizontally to the right to the moisture content plot where it meets at 76.')",
"print('\\nMoisture Content : 76 grains of water per pound of dry air.')"
],
"language": "python",
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"(a)",
"The intersection point of DB temperature 80\u00b0F and WB temperature 66.5\u00b0F",
" ",
"lines on the relative humidity curve for 50%.",
" RH = 50%",
"",
"(b)",
"From the point of intersection of the dry and wet bulb curves, move left",
" ",
"horizontally to the dew point temperature curve where it meets at 60\u00b0F",
"",
"Dew Point = 60\u00b0F",
"",
"(c)",
"From the point of intersection of the dry and wet bulb curves,",
"",
"horizontally to the right to the moisture content plot where it meets at 76.",
"",
"Moisture Content : 76 grains of water per pound of dry air."
]
}
],
"prompt_number": 11
},
{
"cell_type": "markdown",
"source": [
"<h3>Example 7.9, Page Number: 442<h3>"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"'''calculation of relative humidity'''",
"",
"#variable declaration",
"wt_vap=500.0 # Amount of water vapour present",
"wt_vap_to_sat=1500.0 # Amount of water vapour added to saturate",
"",
"#calculation",
"total=wt_vap+wt_vap_to_sat",
"Rh=(wt_vap/total)*100",
"",
"#result",
"print('RH = %d%%'%Rh)"
],
"language": "python",
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"RH = 25%"
]
}
],
"prompt_number": 12
},
{
"cell_type": "markdown",
"source": [
"<h3>Example 7.10, Page Number: 442<h3>"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"'''percentage relative humidity'''",
"",
"#variable declaration",
"pv=30.0 # partial pressure of water vapour",
"ps=60.0 # Saturation partial pressure ",
"",
"#calculations",
"Rh=(pv/ps)*100",
"",
"#Result",
"print('%%RH = %d%%'%Rh)"
],
"language": "python",
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"%RH = 50%"
]
}
],
"prompt_number": 13
},
{
"cell_type": "markdown",
"source": [
"<h3>Example 7.11, Page Number: 442<h3>"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"'''percentage increase in moisture content'''",
"",
"#variable declaration",
"i1=250.0 # ionazation current ",
"i2=350.0 # ionazation current ",
"",
"#calculation",
"m=(i2-i1)*100/i1",
"",
"#result",
"print('%% increase in moisture content = %d%%'%m)"
],
"language": "python",
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"% increase in moisture content = 40%"
]
}
],
"prompt_number": 14
},
{
"cell_type": "markdown",
"source": [
"<h3>Example 7.12, Page Number: 443<h3>"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"'''calculation of moisture content'''",
"",
"#variable declaraton",
"i2=150.0 # wet weight",
"i1=125.0 # dry weight",
"",
"#calculation",
"m=(i2-i1)*100/i1",
"",
"#result",
"print('Moisture percentage = %d%%'%m)"
],
"language": "python",
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Moisture percentage = 20%"
]
}
],
"prompt_number": 15
}
]
}
]
}
|