diff options
author | debashisdeb | 2014-06-20 15:42:42 +0530 |
---|---|---|
committer | debashisdeb | 2014-06-20 15:42:42 +0530 |
commit | 83c1bfceb1b681b4bb7253b47491be2d8b2014a1 (patch) | |
tree | f54eab21dd3d725d64a495fcd47c00d37abed004 /Chemical_Engineering_Thermodynamics/ch3_2.ipynb | |
parent | a78126bbe4443e9526a64df9d8245c4af8843044 (diff) | |
download | Python-Textbook-Companions-83c1bfceb1b681b4bb7253b47491be2d8b2014a1.tar.gz Python-Textbook-Companions-83c1bfceb1b681b4bb7253b47491be2d8b2014a1.tar.bz2 Python-Textbook-Companions-83c1bfceb1b681b4bb7253b47491be2d8b2014a1.zip |
removing problem statements
Diffstat (limited to 'Chemical_Engineering_Thermodynamics/ch3_2.ipynb')
-rw-r--r-- | Chemical_Engineering_Thermodynamics/ch3_2.ipynb | 76 |
1 files changed, 22 insertions, 54 deletions
diff --git a/Chemical_Engineering_Thermodynamics/ch3_2.ipynb b/Chemical_Engineering_Thermodynamics/ch3_2.ipynb index dd655676..1dbe2b34 100644 --- a/Chemical_Engineering_Thermodynamics/ch3_2.ipynb +++ b/Chemical_Engineering_Thermodynamics/ch3_2.ipynb @@ -1,6 +1,7 @@ { "metadata": { - "name": "" + "name": "", + "signature": "sha256:8255c3a74c7b52da7fb922c8e6e009ed3e07e5e50a88f1302c38a2c832cbdc1f" }, "nbformat": 3, "nbformat_minor": 0, @@ -27,8 +28,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Calculation of temperature\n", - "\n", + " \n", "from scipy.optimize import fsolve \n", "import math \n", "\n", @@ -149,8 +149,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Calculation of heat required\n", - "\n", + " \n", "import math\n", "\n", "# Variables\n", @@ -208,8 +207,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Calculation of temperature internal energy and enthalpy\n", - "\n", + " \n", "# Variables\n", "M_vap_sat = 0.22;\t\t\t#[kg] - mass of saturated vapour\n", "M_liq_sat = 1.78;\t\t\t#[kg] - mass of saturated liquid\n", @@ -283,8 +281,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Calculation of work done\n", - "\n", + " \n", "from scipy.optimize import fsolve \n", "import math \n", "from scipy.integrate import quad \n", @@ -369,8 +366,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Calculation of work done\n", - "\n", + " \n", "# Variables\n", "\n", "T = 300;\t\t\t#[K] - Temperature\n", @@ -491,8 +487,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Calculation of work done\n", - "\n", + " \n", "# Variables\n", "T = 125+273.15;\t\t\t#[K] - Temperature\n", "P1 = 1;\t\t\t#[bar] - Initial pressure\n", @@ -654,9 +649,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Calculation of work done\n", - "\n", - "# Variables\n", + " \n", "T = 20 + 273.15;\t\t\t#[K] - Temperature\n", "P_1 = 140.;\t\t\t#[kPa] - Initial pressure\n", "P_1 = P_1*10.**(3);\t\t\t#[Pa]\n", @@ -723,9 +716,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Calculation of final temperature\n", - "\n", - "# Variables\n", + " \n", "m_ice = 1000;\t\t\t#[g] - Mass of ice\n", "m_water = 1000;\t\t\t#[g] - Mass of water\n", "T_ice = 273.15;\t\t\t#[K] - Temperature of ice\n", @@ -790,8 +781,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Calculation of final pressure\n", - "\n", + " \n", "# Variables\n", "n = 1.5;\t\t\t# - ratio of heat capacities\n", "T_1 = 500.;\t\t\t#[K] - Initial temperature\n", @@ -852,9 +842,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Calculation of slope and work done\n", - "\n", - "# Variables\n", + " \n", "P_1 = 150*10**(3);\t\t\t#[Pa] - Initial pressure\n", "V_1 = 0.001;\t\t\t#[m**(3)] - Initial volume\n", "P_2 = 1000*10**(3);\t\t\t#[Pa] - Final pressure\n", @@ -914,9 +902,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Calculation of work done and final temperature\n", - "\n", - "# Variables\n", + " \n", "V = 36;\t\t\t#[L] - Vol of gas on each side\n", "P_1 = 1;\t\t\t#[atm] - pressure on left side of the piston\n", "P_1 = P_1*101325;\t\t\t#[Pa]\n", @@ -1001,9 +987,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Calculation of powerand discharge head\n", - "\n", - "# Variables\n", + " \n", "P_2 = 0.2;\t\t\t#[bar]\n", "P_2 = P_2*10**(5);\t\t\t#[Pa]\n", "int_dia_2 = 2.4*10**(-2);\t\t\t#[m] - internal diameter at state 2.\n", @@ -1059,9 +1043,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Calculation of discharge velocity\n", - "\n", - "# Variables\n", + " \n", "T_1 = 1000.;\t\t\t#[K] - Temperature at entry\n", "P_1 = 0.6;\t\t\t#[MPa] - Pressure at entry\n", "P_2 = 0.2;\t\t\t#[MPa] - Exit pressure\n", @@ -1117,9 +1099,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Calculation of change in enthalpy\n", - "\n", - "# Variables\n", + " \n", "P_entry = 10;\t\t\t#[bar] - Pressure at entry\n", "V_entry = 200;\t\t\t#[m/s] - Velocity at entry\n", "P_exit = 1;\t\t\t#[bar] - Vressure at exit\n", @@ -1162,9 +1142,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Calculation of work done and change in enthalpy\n", - "\n", - "# Variables\n", + " \n", "T_1 = 280;\t\t\t#[K] - Temperature at entry\n", "P_1 = 100;\t\t\t#[kPa] - Pressure at entry\n", "T_2 = 400;\t\t\t#[K] - Temperature at exit\n", @@ -1226,9 +1204,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Calculation of work done per unit mass\n", - "\n", - "# Variables\n", + " \n", "T_1 = 300;\t\t\t#[K] - Temperature at entry\n", "P_1 = 100;\t\t\t#[kPa] - Pressure at entry\n", "P_2 = 900;\t\t\t#[kPa] - Pressure at exit\n", @@ -1296,9 +1272,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Calculation of inlet and outlet velocity and power\n", - "\n", - "# Variables\n", + " \n", "T_1 = 600;\t\t\t#[C] - Temperature at entry\n", "P_1 = 15;\t\t\t#[MPa] - Pressure at entry\n", "T_2 = 400;\t\t\t#[K] - Temperature at exit\n", @@ -1360,9 +1334,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Proving a mathematical relation\n", - "\n", - "# Variables,\n", + " \n", "R = 8.314;\t\t\t#[J/mol-K] - Universal gas constant\n", "Cp_0 = 2.5*R;\t\t\t#[J/mol-K] - Specific heat capacity at constant pressure\n", "Cv_0 = 1.5*R;\t\t\t#[J/mol-K] - Specific heat capacity at constant volume\n", @@ -1403,9 +1375,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Determination of equilibrium temperature\n", - "\n", - "# Variables\n", + " \n", "T_1 = 40 + 273.15;\t\t\t#[K] - Initial temperature.\n", "P_1 = 1;\t\t\t#[bar] - Initial pressure.\n", "P_1 = P_1*10**(5);\t\t\t#[Pa]\n", @@ -1474,9 +1444,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "# Determination of mass\n", - "\n", - "# Variables\n", + " \n", "V_total = 5;\t\t\t#[L] - Volume of pressure cooker.\n", "V_total = V_total*10**(-3);\t\t\t#m**(3)\n", "P_gauze = 15;\t\t\t#[psi] - Operating pressure (gauze)of pressure cooker.\n", |