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
|
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Chapter 18: ACOUSTICS OF BUILDINGS"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 18.1: Output_power_of_the_sound_source.sci"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"// Scilab Code Ex18.1: Output power of the sound source : Page-361 (2010)\n",
"r = 200; // Distance of the point of reduction from the source, m\n",
"I_0 = 1e-012; // Final intensity of sound, watt per metre square\n",
"I_f = 60; // Intensity gain of sound at the point of reduction, dB\n",
"// As A_I = 10*log10(I/I_0), solving for I\n",
"I = I_0*10^(I_f/10); // Initial Intensity of sound, watt per metre square\n",
"P = 4*%pi*r^2*I; // Output power of the sound source, watt\n",
"printf('\nThe output power of the sound source = %3.1f W', P);\n",
"\n",
"// Result\n",
"// The output power of the sound source = 0.5 W "
]
}
,
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 18.2: Change_in_sound_level_for_doubling_intensity.sci"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"// Scilab Code Ex18.2: Change in sound level for doubling intensity: Page-361 (2010)\n",
"I1 = 1; // For simplicity assume first intensity level to be unity, W per metre square\n",
"I2 = 2*I1; // Intensity level after doubling, watt per metre square\n",
"dA_I = 10*log10(I2/I1); // Difference in gain level, dB\n",
"printf('\nThe sound intensity level is increased by = %1d dB', dA_I);\n",
"\n",
"// Result\n",
"// The sound intensity level is increased by = 3 dB "
]
}
,
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 18.3: Total_absorption_of_sound_in_the_hall.sci"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"// Scilab Code Ex18.3: Total absorption of sound in the hall: Page-361 (2010)\n",
"V = 8000; // Volume of the hall, metre cube\n",
"T = 1.5; // Reverbration time of the hall, s\n",
"alpha_s = 0.167*V/T; // Sabine Formula giving total absorption of sound in the hall, OWU\n",
"printf('\nThe total absorption of sound in the hall = %5.1f OWU', alpha_s);\n",
"\n",
"// Result\n",
"// The total absorption in the hall = 890.7 OWU "
]
}
,
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 18.4: Average_absorption_coefficient_of_the_surfaces_of_the_hall.sci"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"// Scilab Code Ex18.4: Average absorption coefficient of the surfaces of the hall: Page-362 (2010)\n",
"V = 25*20*8; // Volume of the hall, metre cube\n",
"S = 2*(25*20+25*8+20*8); // Total surface area of the hall, metre square\n",
"T = 4; // Reverbration time of the hall, s\n",
"alpha = 0.167*V/(T*S); // Sabine Formule giving total absorption in the hall, OWU\n",
"printf('\nThe total absorption in the hall = %5.3f OWU per metre square', alpha);\n",
"\n",
"// Result\n",
"// The total absorption in the hall = 0.097 OWU per metre square"
]
}
,
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 18.5: Reverbration_time_for_the_hall.sci"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"// Scilab Code Ex18.5: Reverbration time for the hall : Page-362 (2010)\n",
"V = 475; // Volume of the hall, metre cube\n",
"s = [200, 100, 100]; // Area of wall, floor and ceiling of the hall resp., metre square\n",
"T = 4; // Reverbration time of the hall, s\n",
"alpha = [0.025, 0.02, 0.55]; // Absorption coefficients of the wall, ceiling and floor resp., OWU per metre square\n",
"alpha_s = 0;\n",
"for i=1:1:3\n",
" alpha_s = alpha_s + alpha(i)*s(i);\n",
"end\n",
"T = 0.167*V/alpha_s; // Sabine Formula for reverbration time, s\n",
"printf('\nThe reverbration time for the hall = %4.2f s', T);\n",
"\n",
"// Result\n",
"// The reverbration time for the hall = 1.28 s "
]
}
,
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 18.6: Gain_of_resultant_sound_intensity.sci"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"// Scilab Code Ex18.6: Gain of resultant sound intensity: Page-362 (2010)\n",
"I0 = 1; // For simplicity assume initial sound intensity to be unity, watt per metre square\n",
"A_I1 = 80; // First intensity gain of sound, dB\n",
"A_I2 = 70; // Second intensity gain of sound, dB\n",
"// As A_I = 10*log10(I/I_0), solving for I1 and I2\n",
"I1 = 10^(A_I1/10)*I0; // First intensity of sound, watt per metre square\n",
"I2 = 10^(A_I2/10)*I0; // Second intensity of sound, watt per metre square\n",
"I = I1 + I2; // Resultant intensity level of sound, watt per metre square\n",
"A_I = 10*log10(I/I0); // Intensity gain of resultant sound, dB\n",
"printf('\nThe intensity gain of resultant sound = %6.3f dB', A_I);\n",
"\n",
"// Result\n",
"// The intensity gain of resultant sound = 80.414 dB "
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Scilab",
"language": "scilab",
"name": "scilab"
},
"language_info": {
"file_extension": ".sce",
"help_links": [
{
"text": "MetaKernel Magics",
"url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md"
}
],
"mimetype": "text/x-octave",
"name": "scilab",
"version": "0.7.1"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
|