summaryrefslogtreecommitdiff
path: root/Physical_Chemistry_by_D._Farrington/Chapter12_Chemical_Kinetics.ipynb
blob: 374d997abaf33a88bdbcdc7bea7287a1ee8b4cb3 (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
{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Chapter12 Chemical Kinetics"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Example 12.1, Page no.48"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "fraction of nitrogen pentoxide remain unreacted after 1 hour= 0.311\n"
     ]
    }
   ],
   "source": [
    "import math\n",
    "#initialisation of variables\n",
    "Vs=23.95 #ml \n",
    "Ve=34.75 #ml \n",
    "#CALCULATIONS \n",
    "fr=(Ve-Vs)/Ve \n",
    "#RESULTS \n",
    "fr=round(fr,3)\n",
    "print 'fraction of nitrogen pentoxide remain unreacted after 1 hour=',fr"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Example 12.2, Page no.48"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "fraction remained undecomposed 0.5\n"
     ]
    }
   ],
   "source": [
    "import math\n",
    "#initialisation of variables\n",
    "Ps=200.0 #mm \n",
    "Pe=390.0 #mm \n",
    "Pt=300.0 #mm \n",
    "t=500.0    #sec\n",
    "Pe1=400.0 #mm \n",
    "#CALCULATIONS \n",
    "r= (Pe1-Pt)/(Pe1 -Ps)\n",
    "#RESULTS\n",
    "print 'fraction remained undecomposed',r"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Example 12.3, Page no.49"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "time of residence of gas= 25.0 sec\n"
     ]
    }
   ],
   "source": [
    "import math\n",
    "#initialisation of variables\n",
    "V=1200.0 #ml\n",
    "V1=100.0 #ml\n",
    "t=300.0 # sec\n",
    "#CALCULATIONS\n",
    "r=V/t\n",
    "t1=V1/r\n",
    "#RESULTS \n",
    "print 'time of residence of gas=',t1,'sec'"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Example 12.4, Page no.49"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "k= 0.107 lit molˆ−1 secˆ−1\n"
     ]
    }
   ],
   "source": [
    "import math\n",
    "#initialisation of variables\n",
    "y=0.550\n",
    "x=2400.0\n",
    "d=0.00494\n",
    "#CALCULATIONS\n",
    "s=y/x\n",
    "k=s*2.303/d\n",
    "#RESULTS \n",
    "k=round(k,3)\n",
    "print 'k=',k,'lit molˆ−1 secˆ−1'"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Example 12.7, Page no.50"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "second order rate for this constant= 0.0061 lit molˆ−1 secˆ−1\n"
     ]
    }
   ],
   "source": [
    "import math\n",
    "from math import sqrt,pi\n",
    "#initialisation of variables\n",
    "T=393.7 #C \n",
    "k=2.6*10** -4 # l i t molˆ−1 secˆ−1 \n",
    "R=1.987 # cal moleˆ−1 Kˆ−1 \n",
    "E=45.6 # kcal moleˆ−1 \n",
    "wl=3.5 #A \n",
    "N=6*10**23 # molecules \n",
    "R1=8.31*10 # ergs moleˆ−1 Kˆ−1 \n",
    "M=127.9 #g moleˆ−1 \n",
    "#CALCULATIONS \n",
    "k=2*10**2*N*sqrt(pi*R1*(273.1+T)/M)*(wl*10**-8)**2*math.exp(-E*10**3/(R*(273.1+T)))\n",
    "#RESULTS\n",
    "k=round(k,4)\n",
    "print 'second order rate for this constant=',k,'lit molˆ−1 secˆ−1'"
   ]
  }
 ],
 "metadata": {
  "anaconda-cloud": {},
  "kernelspec": {
   "display_name": "Python [Root]",
   "language": "python",
   "name": "Python [Root]"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.11"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 0
}