summaryrefslogtreecommitdiff
path: root/Thermodynamics,_Statistical_Thermodynamics,_&_Kinetics/Chapter18.ipynb
blob: f1741f744638531bbab942c0a389e2bd43ead5ac (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
{
 "metadata": {
  "name": "",
  "signature": "sha256:739f6a7aa866a8931c051faa7d51c479c27f099d05036b55ada1468f0458424b"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter 18: Elementary Chemical Kinetics"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example Problem 18.2, Page Number 451"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "from math import log\n",
      "from sympy import *\n",
      "\n",
      "#Variable Declaration\n",
      "Ca0 = [2.3e-4,4.6e-4,9.2e-4]       #Initial Concentration of A, M\n",
      "Cb0 = [3.1e-5,6.2e-5,6.2e-5]       #Initial Concentration of B, M\n",
      "Ri  = [5.25e-4,4.2e-3,1.68e-2]     #Initial rate of reaction, M\n",
      "\n",
      "#Calculations\n",
      "alp = log(Ri[1]/Ri[2])/log(Ca0[1]/Ca0[2])\n",
      "beta = (log(Ri[0]/Ri[1]) - 2*log((Ca0[0]/Ca0[1])))/(log(Cb0[0]/Cb0[1]))\n",
      "k = Ri[2]/(Ca0[2]**2*Cb0[2]**beta)\n",
      "\n",
      "#REsults\n",
      "print 'Order of reaction with respect to reactant A: %3.2f'%alp\n",
      "print 'Order of reaction with respect to reactant A: %3.2f'%beta\n",
      "print 'Rate constant of the reaction: %4.3e 1./(M.s)'%k"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Order of reaction with respect to reactant A: 2.00\n",
        "Order of reaction with respect to reactant A: 1.00\n",
        "Rate constant of the reaction: 3.201e+08 1./(M.s)\n"
       ]
      }
     ],
     "prompt_number": 2
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example Problem 18.3, Page Number 457"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "from math import log\n",
      "from sympy import *\n",
      "\n",
      "#Variable Declaration\n",
      "t1by2 = 2.05e4       #Half life for first order decomposition of N2O5, s\n",
      "x = 60.              #percentage decay of N2O5\n",
      "\n",
      "#Calculations\n",
      "k = log(2)/t1by2\n",
      "t = -log(x/100)/k\n",
      "\n",
      "#REsults\n",
      "print 'Rate constant of the reaction: %4.3e 1/s'%k\n",
      "print 'Timerequire for 60 percent decay of N2O5: %4.3e s'%t"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Rate constant of the reaction: 3.381e-05 1/s\n",
        "Timerequire for 60 percent decay of N2O5: 1.511e+04 s\n"
       ]
      }
     ],
     "prompt_number": 5
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example Problem 18.4, Page Number 457 Incomplete"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "from math import log\n",
      "from sympy import *\n",
      "\n",
      "#Variable Declaration\n",
      "t1by2 = 5760       #Half life for C14, years\n",
      "\n",
      "\n",
      "#Calculations\n",
      "k = log(2)/t1by2\n",
      "t = -log(x/100)/k\n",
      "\n",
      "#REsults\n",
      "print 'Rate constant of the reaction: %4.3e 1/s'%k\n",
      "print 'Timerequire for 60 percent decay of N2O5: %4.3e s'%t"
     ],
     "language": "python",
     "metadata": {},
     "outputs": []
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example Problem 18.5, Page Number 463"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "from math import log\n",
      "\n",
      "#Variable Declaration\n",
      "kAbykI = 2.0       #Ratio of rate constants\n",
      "kA = 0.1           #First order rate constant for rxn 1, 1/s \n",
      "kI = 0.05          #First order rate constant for rxn 2, 1/s \n",
      "#Calculations\n",
      "tmax = 1/(kA-kI)*log(kA/kI)\n",
      "\n",
      "#Results\n",
      "print 'Time required for maximum concentration of A: %4.2f s'%tmax"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Time required for maximum concentration of A: 13.86 s\n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example Problem 18.7, Page Number 467"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "from math import log\n",
      "\n",
      "#Variable Declaration\n",
      "T = 22.0           #Temperature of the reaction,\u00b0C\n",
      "k1 = 7.0e-4        #Rate constants for rxn 1, 1/s\n",
      "k2 = 4.1e-3        #Rate constant for rxn 2, 1/s \n",
      "k3 = 5.7e-3        #Rate constant for rxn 3, 1/s \n",
      "#Calculations\n",
      "phiP1 = k1/(k1+k2+k3)\n",
      "\n",
      "#Results\n",
      "print 'Percentage of Benzyl Penicillin that under acid catalyzed reaction by path 1: %4.2f '%(phiP1*100)"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Percentage of Benzyl Penicillin that under acid catalyzed reaction by path 1: 6.67 \n"
       ]
      }
     ],
     "prompt_number": 5
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example Problem 18.8, Page Number 468"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "from numpy import arange,array,ones,linalg,log, exp\n",
      "from pylab import plot,show\n",
      "\n",
      "\n",
      "#Variable Declaration\n",
      "T = array([22.7,27.2,33.7,38.0])\n",
      "k1 = array([7.e-4,9.8e-4,1.6e-3,2.e-3])\n",
      "R = 8.314 \n",
      "\n",
      "#Calculations\n",
      "T = T +273.15\n",
      "x = 1./T\n",
      "y = log(k1)\n",
      "A = array([ x, ones(size(x))])\n",
      "# linearly generated sequence\n",
      "[slope, intercept] = linalg.lstsq(A.T,y)[0] # obtaining the parameters\n",
      "\n",
      "# Use w[0] and w[1] for your calculations and give good structure to this ipython notebook\n",
      "# plotting the line\n",
      "line = w[0]*x+w[1] # regression line\n",
      "#Results\n",
      "plot(x,line,'-',x,y,'o')\n",
      "xlabel('1/T, $K^{-1}$')\n",
      "ylabel('log(k)')\n",
      "show()\n",
      "Ea = -slope*R\n",
      "A = exp(intercept)\n",
      "print 'Slope and intercept are, %6.1f and %4.2f'%(slope, intercept)\n",
      "print 'Pre-exponential factor and Activation energy are %4.2f kJ/mol and %4.2e 1/s'%(Ea/1e3, A)"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "metadata": {},
       "output_type": "display_data",
       "png": "iVBORw0KGgoAAAANSUhEUgAAAZoAAAEVCAYAAADZ4CNuAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3XucXdP9//HXZzKRuHxdSkgjIQwhdwmREJcJSROiqH6D\nICLaqtskCIqoTqsl6ppEvupSLf2R0FAtk4Q8cFIUFZlEbi6Zqta16hKUpIn5/P5YJ4xxJplJZu91\nzpn38/E4j56z99p7f2Z387HWXvuzzd0RERFJSknsAEREpLgp0YiISKKUaEREJFFKNCIikiglGhER\nSZQSjYiIJCpaojGzCjNbZmaLzeyqBtoMM7MXzewVM/tR2jGKiMjGK41xUDMbBBwJ9HL31WbWLkeb\nVsCNwGDgDeA5M/uTuy9LN1oREdkYsXo0ZwBXuvtqAHd/N0ebfYHl7v73bLvpwFEpxigiIs0gVqLZ\nHTjIzJ4xs4yZ7ZOjzY7AP+v8fj27TERECkhiQ2dmNgdon2PVhOxxt3H3AWbWD7gX2LVeO9XGEREp\nAoklGncf0tA6MzsDuD/b7jkzqzWzbd39vTrN3gA61fndidCrybU/JSURkQ3g7pb0MWINnT0AHAJg\nZl2ATeolGYB5wO5m1tnMNgGOA/7U0A7dXZ9m+vzkJz+JHkOxfHQudT7z+ZOWWInmdmBXM1sETANO\nBjCzDmZWBeDua4CzgYeBpcA9rhlnIiIFJ8r0Zg+zyEblWP4mMLzO71nArBRDExGRZqbKAPI15eXl\nsUMoGjqXzUvnszBZmuN0STEzL4a/Q0QkTWaGF/FkABERaSGUaEREJFFKNCIikiglGhERSZQSjYiI\nJEqJRkREEqVEIyIiiVKiERGRRCnRiIhIopRoREQkUUo0IiKSKCUaERFJlBKNiIgkSolGREQ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7XNWHf\n84DZ7v47MysB9gf6u/tHuRqb2fbAHsAg4P815Y8QyQdKNCI5uPsTZta5/nIz6wq87F+tRtvUeyf9\ngWfNrA3wHeB+d//vOmL5F3BCE48hkjc0dCbSNIcBszZyH/2Alwml2V9eV5IRKQZKNCJN8y1g9kbu\nox+wLfAn4MSNjkgkzynRiDSSmW0GbJ2dBbah+2gPvOXuvwd+DxxtZpq2LEVNiUak8QYBj62vkZk9\nambfbGB1f+AZAHf/EHgOGNJsEYrkISUakRzMbBrwF2APM/unmZ0KDCP3sJnX2a4EKAPez7HP/YEz\ngfZmtmO2h7QZ8FMz65LAnyGSF/QqZ5FGMrPngX3d/fN1tOkOjHH389OLTCS/KdGIiEiiNHQmIiKJ\nUqIREZFEKdGIiEiilGhERCRRSjQiIpIoJRoREUmUEo2IiCRKiUZERBKlRCMiIon6/0p9iTHlKfjy\nAAAAAElFTkSuQmCC\n",
       "text": [
        "<matplotlib.figure.Figure at 0x8281150>"
       ]
      },
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Slope and intercept are, -6419.8 and 14.45\n",
        "Pre-exponential factor and Activation energy are 53.37 kJ/mol and 1.88e+06 1/s\n"
       ]
      }
     ],
     "prompt_number": 54
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example Problem 18.9, Page Number 473"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Variable Declaration\n",
      "Ea = 42.e3      #Activation energy for reaction, J/mol\n",
      "A  = 1.e12      #Pre-exponential factor for reaction, 1/s\n",
      "T = 298.0       #Temeprature, K\n",
      "Kc = 1.0e4      #Equilibrium constant for reaction\n",
      "R = 8.314       #Ideal gas constant, J/(mol.K)\n",
      "#Calculations\n",
      "kB = A*exp(-Ea/(R*T))\n",
      "kA = kB*Kc\n",
      "kApp = kA + kB\n",
      "\n",
      "#Results\n",
      "print 'Forward Rate constant is %4.2e 1/s'%kA\n",
      "print 'Backward Rate constant is %4.2e 1/s'%kB\n",
      "print 'Apperent Rate constant is %4.2e 1/s'%kApp"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Forward Rate constant is 4.34e+08 1/s\n",
        "Backward Rate constant is 4.34e+04 1/s\n",
        "Apperent Rate constant is 4.34e+08 1/s\n"
       ]
      }
     ],
     "prompt_number": 55
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example Problem 18.10, Page Number 480"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "from math import pi\n",
      "#Variable Declaration\n",
      "Dh = 7.6e-7     #Diffusion coefficient of Hemoglobin, cm2/s\n",
      "Do2 = 2.2e-5    #Diffusion coefficient of oxygen, cm2/s\n",
      "rh = 35.        #Radius of Hemoglobin, \u00b0A\n",
      "ro2 = 2.0       #Radius of Oxygen, \u00b0A\n",
      "k = 4e7         #Rate constant for binding of O2 to Hemoglobin, 1/(M.s)\n",
      "NA =6.022e23    #Avagadro Number\n",
      "#Calculations\n",
      "DA = Dh + Do2\n",
      "kd = 4*pi*NA*(rh+ro2)*1e-8*DA\n",
      "\n",
      "#Results\n",
      "print 'Estimated rate %4.1e 1/(M.s) is far grater than experimental value of %4.1e 1/(M.s), \\nhence the reaction is not diffusion controlled'%(kd,k)"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Estimated rate 6.4e+13 1/(M.s) is far grater than experimental value of 4.0e+07 1/(M.s), \n",
        "hence the reaction is not diffusion controlled\n"
       ]
      }
     ],
     "prompt_number": 65
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example Problem 18.11, Page Number 484"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "from math import log, e\n",
      "#Variable Declaration\n",
      "Ea = 104e3      #Activation energy for reaction, J/mol\n",
      "A  = 1.e13      #Pre-exponential factor for reaction, 1/s\n",
      "T = 300.0       #Temeprature, K\n",
      "R = 8.314       #Ideal gas constant, J/(mol.K)\n",
      "h = 6.626e-34   #Plnak constant, Js\n",
      "c = 1.0         #Std. State concentration, M\n",
      "k = 1.38e-23    #,J/K\n",
      "\n",
      "#Calculations\n",
      "dH = Ea - 2*R*T\n",
      "dS = R*log(A*h*c/(k*T*e**2))\n",
      "\n",
      "#Results\n",
      "print 'Forward Rate constant is %4.2e 1/s'%dH\n",
      "print 'Backward Rate constant is %4.2f 1/s'%dS"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "Forward Rate constant is 9.90e+04 1/s\n",
        "Backward Rate constant is -12.72 1/s\n"
       ]
      }
     ],
     "prompt_number": 72
    }
   ],
   "metadata": {}
  }
 ]
}