diff options
author | hardythe1 | 2014-08-06 16:41:00 +0530 |
---|---|---|
committer | hardythe1 | 2014-08-06 16:41:00 +0530 |
commit | d883118364a7a13fa6e139a7dab6fc9a34980a8a (patch) | |
tree | 41afec8408863e1ae835c7adb17e8a4a5b88642d /Chemical_Reaction_Engineering/ch8.ipynb | |
parent | 73b0bffc1781c6cf1eec459813767508da507c33 (diff) | |
download | Python-Textbook-Companions-d883118364a7a13fa6e139a7dab6fc9a34980a8a.tar.gz Python-Textbook-Companions-d883118364a7a13fa6e139a7dab6fc9a34980a8a.tar.bz2 Python-Textbook-Companions-d883118364a7a13fa6e139a7dab6fc9a34980a8a.zip |
adding books
Diffstat (limited to 'Chemical_Reaction_Engineering/ch8.ipynb')
-rwxr-xr-x | Chemical_Reaction_Engineering/ch8.ipynb | 101 |
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 |