summaryrefslogtreecommitdiff
path: root/Engineering_Physics_by_Rajendran/Chapter4.ipynb
blob: be4a2831cf94b7c5f02850d36fbfb6266929ded1 (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
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
{
 "metadata": {
  "name": "",
  "signature": "sha256:3f5941b661a8515cae38219efa7050e771c862dd351401d57b16c57806506e2a"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "4: Acoustics"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example number 4.1, Page number 24"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#importing modules\n",
      "import math\n",
      "from __future__ import division\n",
      "import numpy as np\n",
      "\n",
      "#Variable declaration\n",
      "I1=10**-12;   #intensity(W/m**2)\n",
      "I2=0.1;   #intensity of sound(W/m**2)\n",
      "\n",
      "#Calculation\n",
      "beta=10*np.log10(I2/I1);   #intensity level(dB) \n",
      "\n",
      "#Result\n",
      "print \"intensity level is\",beta,\"dB\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "intensity level is 110.0 dB\n"
       ]
      }
     ],
     "prompt_number": 3
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example number 4.2, Page number 24"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#importing modules\n",
      "import math\n",
      "from __future__ import division\n",
      "import numpy as np\n",
      "\n",
      "#Variable declaration\n",
      "I1=10**-12;   #intensity(W/m**2)\n",
      "I2=10**-4;   #intensity of sound(W/m**2)\n",
      "\n",
      "#Calculation\n",
      "beta=10*np.log10(I2/I1);   #relative sound intensity(dB) \n",
      "\n",
      "#Result\n",
      "print \"relative sound intensity is\",beta,\"dB\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "relative sound intensity is 80.0 dB\n"
       ]
      }
     ],
     "prompt_number": 6
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example number 4.3, Page number 25"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#importing modules\n",
      "import math\n",
      "from __future__ import division\n",
      "import numpy as np\n",
      "\n",
      "#Variable declaration\n",
      "I2byI1=2;    #intensity ratio\n",
      "\n",
      "#Calculation\n",
      "beta=10*np.log10(I2byI1);   #increase in sound intensity level(dB) \n",
      "\n",
      "#Result\n",
      "print \"increase in sound intensity level is\",round(beta,2),\"dB\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "increase in sound intensity level is 3.01 dB\n"
       ]
      }
     ],
     "prompt_number": 10
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example number 4.4, Page number 25"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#importing modules\n",
      "import math\n",
      "from __future__ import division\n",
      "import numpy as np\n",
      "\n",
      "#Variable declaration\n",
      "P=3.14;   #power radiated(W)\n",
      "r=10;   #radius(m)\n",
      "I11=100;  #intensity(W/m**2)\n",
      "I12=1;   #intensity(W/m**2)\n",
      "I13=10**-12;  #intensity(W/m**2)\n",
      "\n",
      "#Calculation\n",
      "I2=P/(4*math.pi*r**2);   #intensity of sound(W/m**2)\n",
      "beta1=10*np.log10(I2/I11);   #relative intensity(dB) \n",
      "beta2=10*np.log10(I2/I12);   #relative intensity(dB) \n",
      "beta3=10*np.log10(I2/I13);   #relative intensity(dB) \n",
      "\n",
      "#Result\n",
      "print \"relative intensity with respect to 100W/m**2 is\",round(beta1,4),\"dB\"\n",
      "print \"relative intensity with respect to 1W/m**2 is\",round(beta2,4),\"dB\"\n",
      "print \"relative intensity with respect to 10**-12W/m**2 is\",round(beta3,3),\"dB\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "relative intensity with respect to 100W/m**2 is -46.0228 dB\n",
        "relative intensity with respect to 1W/m**2 is -26.0228 dB\n",
        "relative intensity with respect to 10**-12W/m**2 is 93.977 dB\n"
       ]
      }
     ],
     "prompt_number": 13
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example number 4.5, Page number 26"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#importing modules\n",
      "import math\n",
      "from __future__ import division\n",
      "import numpy as np\n",
      "\n",
      "#Variable declaration\n",
      "P=1.5;   #power radiated(J/s)\n",
      "r=20;   #radius(m)\n",
      "I1=10**-12;  #intensity level of sound(W/m**2)\n",
      "\n",
      "#Calculation\n",
      "I2=P/(4*math.pi*r**2);   #intensity of sound(W/m**2)\n",
      "beta=10*np.log10(I2/I1);   #intensity level(dB) \n",
      "\n",
      "#Result\n",
      "print \"intensity level of sound is\",round(beta,1),\"dB\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "intensity level of sound is 84.7 dB\n"
       ]
      }
     ],
     "prompt_number": 15
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example number 4.6, Page number 27"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#importing modules\n",
      "import math\n",
      "from __future__ import division\n",
      "\n",
      "#Variable declaration\n",
      "beta1=80;   #intensity level of sound(dB)\n",
      "\n",
      "#Calculation\n",
      "\n",
      "\n",
      "#Result\n",
      "print \" \""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        " \n"
       ]
      }
     ],
     "prompt_number": 16
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example number 4.7, Page number 28"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#importing modules\n",
      "import math\n",
      "from __future__ import division\n",
      "\n",
      "#Variable declaration\n",
      "V=1500;   #volume of hall(m**3)\n",
      "sigma_a1s=100;   #absorption of sound by hall(sabine)\n",
      "sigma_a2s=100;   #absorption of sound by audience(sabine)\n",
      "\n",
      "#Calculation\n",
      "A=sigma_a1s+sigma_a2s;   #total absorption(sabine)\n",
      "t1=0.16*V/sigma_a1s;   #reverberation time of hall when room is empty(s)\n",
      "t2=0.16*V/(sigma_a1s+sigma_a2s);   #reverberation time of hall when room is filled(s)\n",
      "t=t1-t2;   #change in reverberation time(s)\n",
      "\n",
      "#Result\n",
      "print \"when the room is filled, reverberation time is reduced to\",t,\"s\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "when the room is filled, reverberation time is reduced to 1.2 s\n"
       ]
      }
     ],
     "prompt_number": 17
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example number 4.8, Page number 28"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#importing modules\n",
      "import math\n",
      "from __future__ import division\n",
      "\n",
      "#Variable declaration\n",
      "V=1000;   #volume of hall(m**3)\n",
      "T=2;   #reverberation time(s)\n",
      "s=350;   #area of sound absorbing surface(m**2)\n",
      "\n",
      "#Calculation\n",
      "alpha=0.16*V/(T*s);   #average absorption coefficient\n",
      "\n",
      "#Result\n",
      "print \"average absorption coefficient is\",round(alpha,5)"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "average absorption coefficient is 0.22857\n"
       ]
      }
     ],
     "prompt_number": 19
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example number 4.9, Page number 29"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#importing modules\n",
      "import math\n",
      "from __future__ import division\n",
      "\n",
      "#Variable declaration\n",
      "V=2400;   #volume of hall(m**3)\n",
      "a1=500;   #area of plaster ceiling(m**2)\n",
      "s1=0.02;  #coefficient of absorption of plaster ceiling\n",
      "a2=600;   #area of plaster walls(m**2)\n",
      "s2=0.03;  #coefficient of absorption of plaster walls\n",
      "a3=500;   #area of wood floor(m**2)\n",
      "s3=0.06;  #coefficient of absorption of wood floor\n",
      "a4=20;    #area of wood doors(m**2)\n",
      "s4=0.06;  #coefficient of absorption of wood doors\n",
      "a5=400;   #area of cushion seats(m**2)\n",
      "s5=0.01;  #coefficient of absorption of cushion seats\n",
      "a6=200;   #area of cane seats(m**2)\n",
      "s6=0.01;  #coefficient of absorption of cane seats \n",
      "s=0.45;   #absorption of each member(sabine)\n",
      "\n",
      "#Calculation\n",
      "sigma_asE=(a1*s1)+(a2*s2)+(a3*s3)+(a4*s4)+(a5*s5)+(a6*s6);   #total absorption when hall is empty(sabine)\n",
      "TE=0.16*V/sigma_asE;   #reverberation time when hall is empty(s)\n",
      "sigma_asF=(a1*s1)+(a2*s2)+(a3*s3)+(a4*s4)+(a5*s)+(a6*s);    #total absorption when hall is filled(sabine)\n",
      "TF=0.16*V/sigma_asF;   #reverberation time when hall is filled(s)\n",
      "\n",
      "#Result\n",
      "print \"reverberation time when hall is empty is\",round(TE,4),\"s\"\n",
      "print \"reverberation time when hall is filled is\",round(TF,3),\"s\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "reverberation time when hall is empty is 5.8896 s\n",
        "reverberation time when hall is filled is 1.166 s\n"
       ]
      }
     ],
     "prompt_number": 23
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example number 4.10, Page number 30"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#importing modules\n",
      "import math\n",
      "from __future__ import division\n",
      "import numpy as np\n",
      "\n",
      "#Variable declaration\n",
      "I1=10**-12;   #intensity(W/m**2)\n",
      "I2=100;   #intensity of sound(W/m**2)\n",
      "\n",
      "#Calculation\n",
      "beta=10*np.log10(I2/I1);   #intensity level of jet plane(dB) \n",
      "\n",
      "#Result\n",
      "print \"intensity level of jet plane is\",beta,\"dB\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "intensity level of jet plane is 140.0 dB\n"
       ]
      }
     ],
     "prompt_number": 25
    }
   ],
   "metadata": {}
  }
 ]
}