summaryrefslogtreecommitdiff
path: root/Engineering_Physics_by_U_Mukherji/5-Acoustics.ipynb
blob: 18670127d20361d0c50b42b2832f7ae11d6d1c24 (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
{
"cells": [
 {
		   "cell_type": "markdown",
	   "metadata": {},
	   "source": [
       "# Chapter 5: Acoustics"
	   ]
	},
{
		   "cell_type": "markdown",
		   "metadata": {},
		   "source": [
			"## Example 5.1: find_absorption_coefficient.sce"
		   ]
		  },
  {
"cell_type": "code",
	   "execution_count": null,
	   "metadata": {
	    "collapsed": true
	   },
	   "outputs": [],
"source": [
"//chapter5,Example5_1,pg 97\n",
"\n",
"T1=1.5\n",
"\n",
"T2=1\n",
"\n",
"A=20\n",
"\n",
"V=10*8*6\n",
"\n",
"a=((0.161*V)/(2*A))*((1/T2)-(1/T1))\n",
"\n",
"printf('absorption coefficient\n')\n",
"\n",
"printf('a=%.3f Sabines',a)"
   ]
   }
,
{
		   "cell_type": "markdown",
		   "metadata": {},
		   "source": [
			"## Example 5.2: find_area_of_wall_covered_by_curtain.sce"
		   ]
		  },
  {
"cell_type": "code",
	   "execution_count": null,
	   "metadata": {
	    "collapsed": true
	   },
	   "outputs": [],
"source": [
"//chapter5,Example5_2,pg 97\n",
"\n",
"V=3000\n",
"\n",
"T1=3.5//reverberation time\n",
"\n",
"A=(0.161*V)/T1\n",
"\n",
"l=20\n",
"\n",
"b=15\n",
"\n",
"h=10\n",
"\n",
"S=2*((l*b)+(b*h)+(h*l))\n",
"\n",
"sum_a=A/S\n",
"\n",
"am=0.5\n",
"\n",
"a=0.106\n",
"\n",
"T2=2.5//reverberation time after cloth use\n",
"\n",
"S1=(((0.161*V)/(am-a))*((1/T2)-(1/T1)))\n",
"\n",
"printf('area of wall covered by curtain cloth\n')\n",
"\n",
"printf('S1=%.3f sq.m',S1)"
   ]
   }
,
{
		   "cell_type": "markdown",
		   "metadata": {},
		   "source": [
			"## Example 5.3: find_reverberation_time.sce"
		   ]
		  },
  {
"cell_type": "code",
	   "execution_count": null,
	   "metadata": {
	    "collapsed": true
	   },
	   "outputs": [],
"source": [
"//chapter5,Example5_3,pg 98\n",
"\n",
"V=1450\n",
"\n",
"A1=112*0.03//absorption due to plastered wall\n",
"\n",
"A2=130*0.06//absorption due to wooden floor\n",
"\n",
"A3=170*0.04//absorption due to plastd. celing\n",
"\n",
"A4=20*0.06//absorption due to wooden door\n",
"\n",
"A5=100*1//absorption due to cushioned chairs\n",
"\n",
"sum_as=A1+A2+A3+A4+A5\n",
"\n",
"T1=(0.161*V)/sum_as//reverberation time case-1\n",
"\n",
"T2=(0.161*V)/(sum_as+(60*4.7))//persons=60,A=4.7  case-2\n",
"\n",
"T3=(0.161*V)/(sum_as+(100*4.7))//seat cushioned=100 rev. case-3\n",
"\n",
"printf('rev. time for case-1\n')\n",
"\n",
"printf('T1=%.3f sec',T1)\n",
"\n",
"printf('\nrev. time for case-2\n')\n",
"\n",
"printf('T2=%.3f sec',T2)\n",
"\n",
"printf('\nrev. time for case-3\n')\n",
"\n",
"printf('T3=%.3f sec',T3)"
   ]
   }
],
"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
}