summaryrefslogtreecommitdiff
path: root/Chemical_Reaction_Engineering/ch2.ipynb
blob: 70ba8482d529ce7e98180ed956fb1efd657f1e03 (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
{
 "metadata": {
  "name": ""
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter 2 : Kinetics of Homogeneous Reactions"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 2.3 page no : 29"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "\n",
      "import math \n",
      "\n",
      "# Variables\n",
      "# Given\n",
      "#t1 = 30 min ;T1 = 336 k;\n",
      "#t2 = 15 sec ;T2 = 347 k;\n",
      "# Converting t2 in min\n",
      "t1 = 30.         # milk heated (mins)\n",
      "T1 = 336.        # K based on t1\n",
      "t2 = 0.25        # seconds        \n",
      "T2 = 347.        # K based on t2\n",
      "R = 8.314\n",
      "\n",
      "# Calculations\n",
      "#math.log(t1/t2) = E(1/T1-1/T2)/R\n",
      "E = (math.log(t1/t2)*R)/(1/T1-1/T2);\n",
      "\n",
      "# Results\n",
      "print \"E is %d J/mol\"%(round(E,-3))\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "E is 422000 J/mol\n"
       ]
      }
     ],
     "prompt_number": 3
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [],
     "language": "python",
     "metadata": {},
     "outputs": []
    }
   ],
   "metadata": {}
  }
 ]
}