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
|
{
"metadata": {
"name": "",
"signature": "sha256:cb0c026235eca0bc18a695dcb9668ea4e2691af702577b5109cf13ded8d1630d"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
"Chapter11-Architectural Acoustics"
]
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Ex1-pg293"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import math\n",
"##Example 11.1\n",
"##calculation of total absorption and average absorption coefficient\n",
"\n",
"##given values\n",
"\n",
"V=20*15*5.;##volume of hall in m**3\n",
"t=3.5;##reverberation time of empty hall in sec\n",
"\n",
"\n",
"##calculation\n",
"a1=.161*V/t;##total absorption of empty hall\n",
"k=a1/(2.*(20*15+15*5+20*5.));\n",
"print'%s %.2f %s'%('the average absorption coefficient is',k,'');"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"the average absorption coefficient is 0.07 \n"
]
}
],
"prompt_number": 3
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Ex2-pg293"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import math\n",
"##Example 11.2\n",
"##calculation of average absorption coefficient\n",
"\n",
"##given values\n",
"\n",
"V=10*8.*6.;##volume of hall in m**3\n",
"t=1.5;##reverberation time of empty hall in sec\n",
"A=20.;##area of curtain cloth in m**2\n",
"t1=1.;##new reverberation time in sec\n",
"\n",
"##calculation\n",
"a1=.161*V/t;##total absorption of empty hall\n",
"a2=.161*V/t1;##total absorption after a curtain cloth is suspended\n",
"\n",
"k=(a2-a1)/(2.*20.);\n",
"print'%s %.2f %s'%('the average absorption coefficient is',k,'');\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"the average absorption coefficient is 0.64 \n"
]
}
],
"prompt_number": 2
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Ex3-pg293"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import math\n",
"##Example 11.3\n",
"##calculation of average absorption coefficient and area\n",
"\n",
"##given values\n",
"\n",
"V=20*15*10.;##volume of hall in m**3\n",
"t=3.5;##reverberation time of empty hall in sec\n",
"t1=2.5;##reduced reverberation time \n",
"k2=.5;##absorption coefficient of curtain cloth\n",
"##calculation\n",
"a1=.161*V/t;##total absorption of empty hall\n",
"k1=a1/(2*(20*15+15*10+20*10));\n",
"print'%s %.2f %s'%('the average absorption coefficient is',k1,'');\n",
"a2=.161*V/t1;##total absorption when wall is covered with curtain\n",
"a=t1*(a2-a1)/(t1*k2);\n",
"print'%s %.2f %s'%('area of wall to be covered with curtain(in m^2)is:',a,'')"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"the average absorption coefficient is 0.11 \n",
"area of wall to be covered with curtain(in m^2)is: 110.40 \n"
]
}
],
"prompt_number": 1
}
],
"metadata": {}
}
]
}
|