diff options
Diffstat (limited to 'Chemical_Engineering_Thermodynamics/ch4_2.ipynb')
-rw-r--r-- | Chemical_Engineering_Thermodynamics/ch4_2.ipynb | 67 |
1 files changed, 20 insertions, 47 deletions
diff --git a/Chemical_Engineering_Thermodynamics/ch4_2.ipynb b/Chemical_Engineering_Thermodynamics/ch4_2.ipynb index 2e333961..52c2044d 100644 --- a/Chemical_Engineering_Thermodynamics/ch4_2.ipynb +++ b/Chemical_Engineering_Thermodynamics/ch4_2.ipynb @@ -1,6 +1,7 @@ { "metadata": { - "name": "" + "name": "", + "signature": "sha256:8185298e7063d37f738c422b0f9a0946dd677189cdf544f54e436d8d650cb521" }, "nbformat": 3, "nbformat_minor": 0, @@ -27,8 +28,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Calculation of entropy change\n", - "\n", + " \n", "import math\n", "\n", "# Variables\n", @@ -117,8 +117,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Determination of whether the process is reversible or not\n", - "\n", + " \n", "# Variables\n", "T = 400.;\t\t\t#[K] - Temperature\n", "P_1 = 500.*10**(3);\t\t\t#[Pa] - Initial pressure\n", @@ -184,9 +183,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Calculation of final pressure temperature and increase in entropy\n", - "\n", - "# Variables\n", + " \n", "R = 8.314;\t\t\t#[J/mol*K] - Universal gas constant\n", "\t\t\t# For side A\n", "V_A = 1;\t\t\t#[L] - Volume\n", @@ -261,9 +258,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "# CAlculation of final temperature heat transfer and change of entropy\n", - "\n", - "# Variables\n", + " \n", "V_vessel = 0.2;\t\t\t#[m**(3)] - Volume of the vessel\n", "P_1 = 10;\t\t\t#[bar] - Initial pressure inside the vessel\n", "P_1 = P_1*10**(5);\t\t\t#[Pa]\n", @@ -358,8 +353,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Calculation of final temperature work and heat transfer\n", - "\n", + " \n", "from math import *\n", "# Variables\n", "m = 1000.;\t\t\t#[g] - Mass of fluid\n", @@ -477,8 +471,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Calculation of final temperature and work done\n", - "\n", + " \n", "# Variables\n", "m = 1000;\t\t\t#[g] - Mass of fluid\n", "P_1 = 20;\t\t\t#[bar] - Initial pressure\n", @@ -556,8 +549,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Determination of index of isentropic expansion\n", - "\n", + " \n", "# Variables\n", "P_1 = 15.;\t\t\t#[bar] - Initial pressure\n", "P_2 = 0.15;\t\t\t#[bar] - Final pressure\n", @@ -622,9 +614,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Determination of entropy production\n", - "\n", - "# Variables\n", + " \n", "P_1 = 40;\t\t\t#[bar] - Initial pressure\n", "T_1 = 500;\t\t\t#[C] - Initial temperature\n", "Vel_1 = 140;\t\t\t#[m/s] - Initial velocity\n", @@ -692,9 +682,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Determination of work required and exit temperature\n", - "\n", - "# Variables\n", + " \n", "P_1 = 1.;\t\t\t#[MPa] - Initial pressure\n", "T_1 = 200 + 273.15;\t\t\t#[K] - Initial temperature\n", "P_2 = 8.;\t\t\t#[MPa] - Final pressure\n", @@ -757,8 +745,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Determination of work required and exit temperature\n", - "\n", + " \n", "from scipy.optimize import fsolve \n", "import math \n", "from scipy.integrate import quad \n", @@ -847,8 +834,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Determination of work required and exit temperature\n", - "\n", + " \n", "# Variables\n", "P_1 = 1;\t\t\t#[MPa] - Initial pressure\n", "T_1 = 200 + 273.15;\t\t\t#[K] - Initial temperature\n", @@ -934,9 +920,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Determination of work required and discharge temperature\n", - "\n", - "# Variables\n", + " \n", "P_1 = 140.;\t\t\t#[kPa] - Initial pressure\n", "T_1 = 20. + 273.15;\t\t\t#[K] - Initial temperature\n", "P_2 = 560.;\t\t\t#[kPa] - Final pressure\n", @@ -1021,9 +1005,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Dtermination of power output entropy and exit temperature\n", - "\n", - "# Variables\n", + " \n", "P_1 = 10;\t\t\t#[bar] - Initial pressure\n", "T_1 = 500 + 273.15;\t\t\t#[K] - Initial temperature\n", "P_2 = 2;\t\t\t#[psia] - Final pressure\n", @@ -1135,9 +1117,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Calculation of work output per unit mass\n", - "\n", - "# Variables\n", + " \n", "P_1 = 6;\t\t\t#[MPa] - Initial pressure\n", "T_1 = 500 + 273.15;\t\t\t#[K] - Initial temperature\n", "P_2 = 10;\t\t\t#[kPa] - Final pressure\n", @@ -1231,9 +1211,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Estimation of final velocity\n", - "\n", - "# Variables\n", + " \n", "P_1 = 3.;\t\t\t#[bar] - Initial pressure\n", "T_1 = 150. + 273.15;\t\t\t#[K] - Initial temperature\n", "Vel_1 = 90.;\t\t\t#[m/s] - Initial velocity\n", @@ -1312,8 +1290,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Calculation of final velocity and increase in entropy\n", - "\n", + " \n", "# Variables\n", "P_1 = 300.;\t\t\t#[kPa] - Initial pressure\n", "T_1 = 450.;\t\t\t#[K] - Initial temperature\n", @@ -1387,9 +1364,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Calculation of work done and heat transfer\n", - "\n", - "# Variables\n", + " \n", "P_1 = 1;\t\t\t#[bar] - Initial pressure\n", "T_1 = 150 + 273.15;\t\t\t#[K] - Initial temperature\n", "V_2 = 0.28;\t\t\t#[m**(3)/kg] - Final specific volume\n", @@ -1474,9 +1449,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Calculation of air velocity and change in entropy\n", - "\n", - "# Variables\n", + " \n", "P_1 = 7*10**(5);\t\t\t#[Pa] - Initial pressure\n", "T_1 = 95 + 273.15;\t\t\t#[K] - Initial temperature\n", "P_2 = 3.5*10**(5);\t\t\t#[Pa] - Final pressure\n", |