summaryrefslogtreecommitdiff
path: root/Thermodynamics,_Statistical_Thermodynamics,_&_Kinetics/Chapter16.ipynb
blob: 3aac10d8c73f7517881e455ad1d06b3f285e2dfc (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
{
 "metadata": {
  "name": "",
  "signature": "sha256:ae5c10cebc67e59fefae332eaff3aec21c49c3c4a8e87dfaab8a18fadc8340a5"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter 16: Kinetic Theory of Gases"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example Problem 16.2, Page Number 400"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "from math import sqrt\n",
      "\n",
      "#Variable Declaration\n",
      "R = 8.314         #Ideal Gas Constant, J/(mol.K)\n",
      "T = 298           #Temperatureof Gas, K\n",
      "MNe = 0.020  #Molecular wt of Ne, kg/mol\n",
      "MKr = 0.083   #Molecular wt of Kr, kg/mol\n",
      "\n",
      "#Calculations\n",
      "vmpNe = sqrt(2*R*T/MNe)\n",
      "vmpKr = sqrt(2*R*T/MKr)\n",
      "\n",
      "#Results\n",
      "print 'Most probable speed of Ne and Krypton at 298 K are %4.0f, %4.0f m/s'%(vmpNe,vmpKr)\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Most probable speed of Ne and Krypton at 298 K are  498,  244\n"
       ]
      }
     ],
     "prompt_number": 3
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example Problem 16.2, Page Number 401"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "from math import sqrt,pi\n",
      "\n",
      "#Variable Declaration\n",
      "R = 8.314         #Ideal Gas Constant, J/(mol.K)\n",
      "T = 298           #Temperatureof Gas, K\n",
      "M = 0.040         #Molecular wt of Ar, kg/mol\n",
      "\n",
      "\n",
      "#Calculations\n",
      "vmp = sqrt(2*R*T/M)\n",
      "vave = sqrt(8*R*T/(M*pi))\n",
      "vrms = sqrt(3*R*T/M)\n",
      "\n",
      "#Results\n",
      "print 'Maximum, average, root mean square speed of Ar\\nat 298 K are %4.0f, %4.0f, %4.0f m/s'%(vmp,vave,vrms)"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Maximum, average, root mean square speed of Ar\n",
        "at 298 K are  352,  397,  431 m/s\n"
       ]
      }
     ],
     "prompt_number": 3
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example Problem 16.4, Page Numbe 403"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "from math import sqrt,pi\n",
      "\n",
      "#Variable Declaration\n",
      "R = 8.314         #Ideal Gas Constant, J/(mol.K)\n",
      "T = 298           #Temperature of Gas, K\n",
      "M = 0.040         #Molecular wt of Ar, kg/mol\n",
      "P = 101325        #Pressure, N/m2\n",
      "NA = 6.022e23     #Number of particles per mol\n",
      "V = 1.0           #Volume of Container, L\n",
      "\n",
      "#Calculations\n",
      "Zc = P*NA/sqrt(2*pi*R*T*M)\n",
      "Nc = Zc*A\n",
      "#Results\n",
      "print 'Number of Collisions %4.2e  per s'%(Nc)"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Number of Collisions 2.45e+27  per s\n"
       ]
      }
     ],
     "prompt_number": 7
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example Problem 16.5, Page Number 404"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "from math import sqrt, pi\n",
      "\n",
      "#Variable Declaration\n",
      "R = 8.314         #Ideal Gas Constant, J/(mol.K)\n",
      "T = 298           #Temperature of Gas, K\n",
      "M = 0.040         #Molecular wt of Ar, kg/mol\n",
      "P0 = 1013.25      #Pressure, N/m2\n",
      "NA = 6.022e23     #Number of particles per mol\n",
      "V = 1.0           #Volume of Container, L\n",
      "k = 1.38e-23      #Boltzman constant, J/K\n",
      "t = 3600          #time of effusion, s\n",
      "A = 0.01          #Area, um2\n",
      "\n",
      "#Calculations\n",
      "A = A*1e-12\n",
      "V = V*1e-3\n",
      "expo = (A*t/V)*(k*T/(2*pi*M/NA))\n",
      "P = P0*exp(-expo)\n",
      "#Results\n",
      "print 'Pressure after 1 hr of effusion is %4.3e Pa'%(P/101325)"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Pressure after 1 hr of effusion is 1.00e-02 Pa\n"
       ]
      }
     ],
     "prompt_number": 12
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example Problem 16.6, Page Number 407"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "from math import sqrt, pi\n",
      "\n",
      "#Variable Declaration\n",
      "R = 8.314         #Ideal Gas Constant, J/(mol.K)\n",
      "T = 298           #Temperature of Gas, K\n",
      "M = 0.044         #Molecular wt of CO2, kg/mol\n",
      "P  = 101325       #Pressure, N/m2\n",
      "NA = 6.022e23     #Number of particles per mol\n",
      "sigm = 5.2e-19    #m2\n",
      "\n",
      "#Calculations\n",
      "zCO2 = (P*NA/(R*T))*sigm*sqrt(2)*sqrt(8*R*T/(pi*M)) \n",
      "#Results\n",
      "print 'Single particle collisional frequency is %4.1e per s'%(zCO2)"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Single particle collisional frequency is 6.9e+09 per s\n"
       ]
      }
     ],
     "prompt_number": 16
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example Problem 16.7, Page Number 407"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "from math import sqrt, pi\n",
      "\n",
      "#Variable Declaration\n",
      "R = 8.314         #Ideal Gas Constant, J/(mol.K)\n",
      "T = 298           #Temperature of Gas, K\n",
      "MAr = 0.04        #Molecular wt of Ar, kg/mol\n",
      "MKr = 0.084       #Molecular wt of Kr, kg/mol\n",
      "pAr  = 360        #Partial Pressure Ar, torr\n",
      "pKr  = 400        #Partial Pressure Kr, torr\n",
      "rAr = 0.17e-9     #Hard sphere radius of Ar, m\n",
      "rKr = 0.20e-9     #Hard sphere radius of Kr, m\n",
      "NA = 6.022e23     #Number of particles per mol\n",
      "k = 1.38e-23      #Boltzman constant, J/K\n",
      "\n",
      "#Calculations\n",
      "pAr = pAr*101325/760\n",
      "pKr = pKr*101325/760\n",
      "p1 = pAr*NA/(R*T)\n",
      "p2 = pKr*NA/(R*T)\n",
      "sigm = pi*(rAr+rKr)**2\n",
      "mu = MAr*MKr/((MAr+MKr)*NA)\n",
      "p3 = sqrt(8*k*T/(pi*mu)) \n",
      "zArKr = p1*p2*sigm*p3\n",
      "\n",
      "#Results\n",
      "print 'Collisional frequency is %4.2e m-3s-1'%(zArKr)"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Collisional frequency is 3.14e+34 m-3s-1\n"
       ]
      }
     ],
     "prompt_number": 12
    }
   ],
   "metadata": {}
  }
 ]
}