summaryrefslogtreecommitdiff
path: root/Chemical_Reaction_Engineering/ch8.ipynb
diff options
context:
space:
mode:
authorhardythe12014-08-06 16:41:00 +0530
committerhardythe12014-08-06 16:41:00 +0530
commit34887da4e2731004f7cf208ae59b72f2e27b33cf (patch)
tree2307457b57ed3ee1049504cf4440d9f06e08c017 /Chemical_Reaction_Engineering/ch8.ipynb
parent7876eeaf85f7c020ec1f3530963928cd2bc26a66 (diff)
downloadPython-Textbook-Companions-34887da4e2731004f7cf208ae59b72f2e27b33cf.tar.gz
Python-Textbook-Companions-34887da4e2731004f7cf208ae59b72f2e27b33cf.tar.bz2
Python-Textbook-Companions-34887da4e2731004f7cf208ae59b72f2e27b33cf.zip
adding books
Diffstat (limited to 'Chemical_Reaction_Engineering/ch8.ipynb')
-rwxr-xr-xChemical_Reaction_Engineering/ch8.ipynb101
1 files changed, 101 insertions, 0 deletions
diff --git a/Chemical_Reaction_Engineering/ch8.ipynb b/Chemical_Reaction_Engineering/ch8.ipynb
new file mode 100755
index 00000000..c66d684b
--- /dev/null
+++ b/Chemical_Reaction_Engineering/ch8.ipynb
@@ -0,0 +1,101 @@
+{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 8 : Potpourri of Multiple Reactions"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.3 page no : 198"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "\n",
+ "import math \n",
+ "\n",
+ "# Variables\n",
+ "CAo = 185. \n",
+ "CA = 100.\n",
+ "t = 30.\n",
+ "\n",
+ "# Calculations\n",
+ "K123 = math.log(CAo/CA)/t;\n",
+ "m1 = 2.;\n",
+ "k2 = m1/CAo;\n",
+ "\n",
+ "##From the initial rate of formation of R\n",
+ "m2 = 1.3;\n",
+ "k1 = m2/CAo;\n",
+ "k3 = K123-k1-k2;\n",
+ "\n",
+ "k4 = 0.0001\n",
+ "while k4 <= 0.1:\n",
+ " Csmax = CAo*(k1/K123)*((K123/k4)**(k4/(k4-K123)));\n",
+ " if Csmax>31.8 and Csmax<32.2:\n",
+ " break\n",
+ " k4 += 0.0001\n",
+ " \n",
+ "k5 = 0.001\n",
+ "#similarly for T\n",
+ "while k5 <= 0.2:\n",
+ " Ctmax = CAo*(k3/K123)*((K123/k5)**(k5/(k5-K123)));\n",
+ " if Ctmax>9.95 and Ctmax<10.08:\n",
+ " break\n",
+ " k5 += .0001\n",
+ "\n",
+ "# Results\n",
+ "print \" The rate constants are\"\n",
+ "print \" k1 = %.4f min**-1\"%(k1)\n",
+ "print \" k2 = %.4f min**-1\"%(k2)\n",
+ "print \" k3 = %.4f min**-1\"%(k3)\n",
+ "print \" k4 = %.4f min**-1\"%(k4)\n",
+ "print \" k5 = %.4f min**-1\"%(k5)\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " The rate constants are\n",
+ " k1 = 0.0070 min**-1\n",
+ " k2 = 0.0108 min**-1\n",
+ " k3 = 0.0027 min**-1\n",
+ " k4 = 0.0099 min**-1\n",
+ " k5 = 0.0157 min**-1\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [],
+ "language": "python",
+ "metadata": {},
+ "outputs": []
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file