From 6279fa19ac6e2a4087df2e6fe985430ecc2c2d5d Mon Sep 17 00:00:00 2001 From: kinitrupti Date: Fri, 12 May 2017 18:53:46 +0530 Subject: Removed duplicates --- Thermodynamics_by_B._l._Singhal/ch6.ipynb | 1879 +++++++++++++++++++++++++++++ 1 file changed, 1879 insertions(+) create mode 100755 Thermodynamics_by_B._l._Singhal/ch6.ipynb (limited to 'Thermodynamics_by_B._l._Singhal/ch6.ipynb') diff --git a/Thermodynamics_by_B._l._Singhal/ch6.ipynb b/Thermodynamics_by_B._l._Singhal/ch6.ipynb new file mode 100755 index 00000000..a7ed62ba --- /dev/null +++ b/Thermodynamics_by_B._l._Singhal/ch6.ipynb @@ -0,0 +1,1879 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:5459d630b29dbbdfd93621a60c527ff0a5f89773e97a2a1d2563ab75e7bd7c03" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 6 : Properties of Steam" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.1 Page No : 14" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import math \n", + "\t\t\t\n", + "# Variables :\n", + "m = 2.; \t\t\t#Kg\n", + "p = 8.;\t \t\t#bar\n", + "H = 5535.;\t\t\t#KJ\n", + "\n", + "# Calculations and Results\n", + "h = H/m;\t\t\t#KJ/Kg\n", + "hg = 2767.5;\t\t#KJ/Kg\n", + "print \"Specific Enthalpy in KJ/Kg : %.1f\"%h\n", + "print \"Given Enthalpy in KJ/Kg : %.1f\"%hg\n", + "print (\"Given enthalpy = specific enthalpy. System is dry saturated.\");\n", + "\n", + "m = 1;\t\t\t#Kg\n", + "p = 2550*10**3/10**5;\t\t\t#bar\n", + "v = 0.2742;\t\t\t#m**3/Kg\n", + "print \"Specific volume in m**3/Kg : %.4f\"%v\n", + "vg = 0.078352;\t\t\t#m**3\n", + "print \"Given specific volume in m**3/Kg : %.4f\"%vg\n", + "\n", + "Ts = 225+273;\t\t\t#K\n", + "print (\"Since v>vg. System is super heated.\");\n", + "Tsup = v/vg*Ts;\t\t\t#K\n", + "print \"Temperature of super heated steam in degree C :%.1f\"%(Tsup-273)\n", + "\n", + "m = 1;\t\t\t#Kg\n", + "p = 60;\t\t\t#bar\n", + "h = 2470.73;\t\t\t#KJ/Kg\n", + "print \"Enthalpy in KJ/Kg : %.1f\"%h\n", + "\n", + "hg = 2475;\t\t\t#KJ/Kg\n", + "print \"Given enthalpy in KJ/Kg : %.1f\"%hg\n", + "print (\"Since h>hg. System is in vapour state.\");\n", + "\t\t\t#let x be the dryness fraction\n", + "\t\t\t#h = hf+x*hg\n", + "hf = 1213.69;\t\t\t#KJ/Kg\n", + "hfg = 1517.3;\t\t\t#KJ/Kg\n", + "x = (h-hf)/hfg;\n", + "print \"Dryness fraction : %.1f\"%x\n", + "\t\t\t#Steam table is used to get some data.\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Specific Enthalpy in KJ/Kg : 2767.5\n", + "Given Enthalpy in KJ/Kg : 2767.5\n", + "Given enthalpy = specific enthalpy. System is dry saturated.\n", + "Specific volume in m**3/Kg : 0.2742\n", + "Given specific volume in m**3/Kg : 0.0784\n", + "Since v>vg. System is super heated.\n", + "Temperature of super heated steam in degree C :1469.8\n", + "Enthalpy in KJ/Kg : 2470.7\n", + "Given enthalpy in KJ/Kg : 2475.0\n", + "Since h>hg. System is in vapour state.\n", + "Dryness fraction : 0.8\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.2 Page No : 16" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\t\t\t\n", + "# Variables :\n", + "p = 5;\t\t\t#bar\n", + "x = 0.98;\n", + "ts = 151.84;\t\t\t#degree C\n", + "hf = 652.8;\t\t\t#KJ/Kg\n", + "hfg = 2098;\t\t\t#KJ/Kg\n", + "vg = 0.373;\t\t\t#m**3/Kg\n", + "\n", + "# Calculations and Results\n", + "print \"Temperature of steam in degree C : %.2f\"%ts\n", + "h = hf+x*hfg;\t\t\t#KJ/Kg\n", + "print \"Enthalpy of steam in KJ/Kg : %.2f\"%h\n", + "v = x*vg;\t\t\t#m**3/Kg\n", + "print \"Specific volume in m**3/Kg ; %.4f\"%v\n", + "\t\t\t#Steam table is used to get some data.\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Temperature of steam in degree C : 151.84\n", + "Enthalpy of steam in KJ/Kg : 2708.84\n", + "Specific volume in m**3/Kg ; 0.3655\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.3 Page No : 16" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\t\t\t\n", + "# Variables :\n", + "m = 1;\t\t\t#Kg\n", + "p = 12;\t\t\t#bar\n", + "x = 0.95;\n", + "ts = 187.96;\t\t\t#degree C\n", + "vg = 0.1632;\t\t\t#m**3/Kg\n", + "hf = 814.7;\t\t\t#KJ/Kg\n", + "hfg = 1970.7;\t\t\t#KJ/Kg\n", + "\n", + "# Calculations and Results\n", + "print \"Temperature of steam in degree C : \",ts\n", + "\n", + "v = x*vg;\t\t\t#m**3/Kg\n", + "print \"Specific volume in m**3/Kg ; \",v\n", + "h = hf+x*hfg;\t\t\t#KJ/Kg\n", + "print \"Enthalpy of steam in KJ/Kg : %.1f\"%h\n", + "u = h-p*10**5*v/1000;\t\t\t#KJ/Kg\n", + "print \"Internal energy in KJ/Kg : %.1f\"%u\n", + "\t\t\t#Steam table is used to get some data.\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Temperature of steam in degree C : 187.96\n", + "Specific volume in m**3/Kg ; 0.15504\n", + "Enthalpy of steam in KJ/Kg : 2686.9\n", + "Internal energy in KJ/Kg : 2500.8\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.4 Page No : 16" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\t\t\t\n", + "# Variables :\n", + "m = 1.;\t\t \t#Kg\n", + "p = 8.;\t\t\t #bar\n", + "Tsup = 280.;\t\t\t#degree C\n", + "h1 = 2950.4;\t\t\t#KJ/Kg(at 250 degree C)\n", + "h2 = 3057.3;\t\t\t#KJ/Kg(at 300 degree C)\n", + "Tsup1 = 250.;\t\t\t#degree C\n", + "Tsup2 = 300.;\t\t\t#degree C\n", + "\n", + "# Calculations and Results\n", + "hsup = h1+(h2-h1)/(Tsup2-Tsup1)*(Tsup-Tsup1);\t\t\t#KJ/Kg\n", + "print \"Specific enthalpy in KJ/Kg : %.1f\"%hsup\n", + "\n", + "v1 = 0.293;\t\t\t#m**3/Kg(at 250 degree C)\n", + "v2 = 0.324;\t\t\t#m**3/Kg(at 300 degree C)\n", + "vsup = v1+(v2-v1)/(Tsup2-Tsup1)*(Tsup-Tsup1);\t\t\t#m**3/Kg\n", + "print \"Specific volume in m**3/Kg : \",vsup\n", + "\n", + "S1 = 7.04;\t\t\t#KJ/KgK(at 250 degree C)\n", + "S2 = 7.235;\t\t\t#KJ/KgK(at 300 degree C)\n", + "Ssup = S1+(S2-S1)/(Tsup2-Tsup1)*(Tsup-Tsup1)\n", + "print \"Specific enthalpy in KJ/KgK : \",Ssup\n", + "\n", + "#Steam table is used to get some data.\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Specific enthalpy in KJ/Kg : 3014.5\n", + "Specific volume in m**3/Kg : 0.3116\n", + "Specific enthalpy in KJ/KgK : 7.157\n" + ] + } + ], + "prompt_number": 4 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.5 Page No : 17" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\t\t\t\n", + "# Variables :\n", + "p1 = 0.1;\t\t\t#bar\n", + "p2 = 0.1;\t\t\t#bar\n", + "x1 = 0.95;\n", + "t3 = 20.;\t\t\t#degree C\n", + "t2 = 35.;\t\t\t#degree C\n", + "t4 = 45.;\t\t\t#degree C\n", + "hf1 = 191.8;\t\t\t#KJ/Kg\n", + "hfg1 = 2397.9;\t\t\t#KJ/Kg\n", + "\n", + "# Calculations\n", + "h1 = hf1+x1*hfg1;\t\t\t#KJ/kg\n", + "h2 = 188.4;\t\t\t#KJ/Kg(at 45 degree C)\n", + "h3 = 83.9;\t\t\t#KJ/Kg(at 20 degree C)\n", + "h4 = 146.6;\t\t\t#KJ/Kg(at 35 degree C)\n", + "#m1*(h1-h2) = mw*(h4-h3)\n", + "mwBYm1 = (h1-h2)/(h4-h3);\t\t\t#Kg of water/Kg of steam\n", + "\n", + "# Results\n", + "print \"Ratio of mass flow rate of cooling water to condensing steam(Kg of water/Kg of steam): %.3f\"%mwBYm1\n", + "\t\t\t#Steam table is used to get some data.\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Ratio of mass flow rate of cooling water to condensing steam(Kg of water/Kg of steam): 36.386\n" + ] + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.6 Page No : 18" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\t\t\t\n", + "# Variables :\n", + "V = 3.;\t\t\t#m**3\n", + "t = 200.;\t\t\t#degree C\n", + "Pat = 1.;\t\t\t#bar\n", + "Pgauge = 7.;\t\t\t#bar\n", + "P = Pgauge+Pat;\t\t\t#bar\n", + "ts = 170.41;\t\t\t#degree C\n", + "tsup = t;\t\t\t#degree C\n", + "vsup = 0.261;\t\t\t#m**3/Kg\n", + "hsup = 2838.6;\t\t\t#KJ/Kg\n", + "\n", + "# Calculations and Results\n", + "m = V/vsup;\t\t\t#Kg\n", + "H = m*hsup;\t\t\t#KJ\n", + "print \"Total Enthalpy in KJ : %.2f\"%H\n", + "#H = U+p*V\n", + "U = H-P*10**5*V/1000;\t\t\t#KJ\n", + "print \"Total internal energy of system in KJ : %.2f\"%U\n", + "print \"Mass of steam in Kg : %.3f\"%m\n", + "\t\t\t#Steam table is used to get some data.\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Total Enthalpy in KJ : 32627.59\n", + "Total internal energy of system in KJ : 30227.59\n", + "Mass of steam in Kg : 11.494\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.7 Page No : 18" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\t\t\t\n", + "# Variables :\n", + "mw = 1.;\t\t\t#Kg\n", + "m_steam = 39.;\t\t\t#mass of dry steam in Kg\n", + "\n", + "# Calculations\n", + "ms = mw+m_steam;\t\t\t#Kg\n", + "x = m_steam/ms;\t\t\t#dryness fraction\n", + "\n", + "# Results\n", + "print \"Dryness fraction ; \",x\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Dryness fraction ; 0.975\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.8 Page No : 18" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\t\t\t\n", + "# Variables :\n", + "m = 10.;\t\t\t#Kg\n", + "p = 10.;\t\t\t#bar\n", + "x = 0.9;\n", + "t1 = 20.;\t\t\t#degree C\n", + "hf = 762.6;\t\t\t#KJ/Kg\n", + "hfg = 2013.6;\t\t\t#KJ/Kg\n", + "\n", + "# Calculations and Results\n", + "H = m*(hf+x*hfg);\t\t\t#KJ;\n", + "print \"Enthalpy of wet steam in KJ : \",H\n", + "\n", + "hf1 = 83.9;\t\t\t#KJ/Kg(at 20 degree C)\n", + "Hf1 = m*hf1;\t\t\t#KJ\n", + "HeatAdded = H-Hf1;\t\t\t#KJ\n", + "print \"Heat added in KJ : \",HeatAdded\n", + "\n", + "#Steam table is used to get some data.\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Enthalpy of wet steam in KJ : 25748.4\n", + "Heat added in KJ : 24909.4\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.9 Page No : 19" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\t\t\t\n", + "# Variables :\n", + "t = 50.;\t\t\t#degree C\n", + "p1 = 13.;\t\t\t#bar\n", + "Cpw = 4.187;\t\t\t#KJ/KgK\n", + "Cp = 0.0535;\t\t\t#KJ/KgK\n", + "x1 = 0.97;\n", + "hf = Cpw*(t-0);\t\t\t#KJ/Kg\n", + "hf1 = 814.7;\t\t\t#KJ/Kg(at p1 = 13 bar)\n", + "hfg1 = 1970.7;\t\t\t#KJ/Kg(at p1 = 13 bar)\n", + "hg1 = 2785.4;\t\t\t#KJ/Kg(at p1 = 13 bar)\n", + "\n", + "# Calculations and Results\n", + "Q = hf1+x1*hfg1-hf;\t\t\t#KJ/Kg\n", + "print \"Heat required to produce steam in KJ/Kg : %.2f\"%Q\n", + "Q1 = hg1-hf;\t\t\t#KJ/Kg\n", + "print \"Heat required to produce dry saturated steam in KJ/Kg : \",Q1\n", + "tsup1SUBts1 = 40;\t\t\t#degree C\n", + "Q2 = hg1+Cp*(tsup1SUBts1)-hf;\t\t\t#KJ/Kg\n", + "print \"Heat required to produce super heated steam in KJ/Kg : \",Q2\n", + "\t\t\t#Steam table is used to get some data.\n", + "\t\t\t#Ans is wrong in the book for last part.\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Heat required to produce steam in KJ/Kg : 2516.93\n", + "Heat required to produce dry saturated steam in KJ/Kg : 2576.05\n", + "Heat required to produce super heated steam in KJ/Kg : 2578.19\n" + ] + } + ], + "prompt_number": 7 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.10 Page No : 19" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\t\t\t\n", + "# Variables :\n", + "p = 8;\t\t\t#bar\n", + "x = 0.8;\n", + "vf = 0.001115;\t\t\t#m**3/kg\n", + "vg = 0.24;\t\t\t#m**3/kg\n", + "hf = 720.9;\t\t\t#kJ/kg(at p = 8 bar)\n", + "hfg = 2046.5;\t\t\t#kJ/kg(at p = 8 bar)\n", + "m = 1;\t\t\t#kg\n", + "\n", + "# Calculations and Results\n", + "We = 100*p*(x*vg-vf);\t\t\t#kJ/kg\n", + "print \"External workdone during evaporation in kJ/kg : %.2f\"%We\n", + "\n", + "Q = x*hfg-We;\t\t\t#KJ\n", + "print \"External latent heat of steam in kJ: %.2f\"%Q\n", + "\n", + "\t\t\t#Steam table is used to get some data.\n", + "\t\t\t#Ans is wrong in the book for last part.\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "External workdone during evaporation in kJ/kg : 152.71\n", + "External latent heat of steam in kJ: 1484.49\n" + ] + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 6.11 Page No : 20" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "\t\t\t\n", + "# Variables :\n", + "p1 = 20.;\t\t\t#bar\n", + "Tsup1 = 350.;\t\t\t#degree C\n", + "m1 = 1.;\t\t\t#Kg\n", + "p2 = 20.;\t\t\t#bar\n", + "m2 = 1.;\t\t\t#Kg\n", + "p3 = p1;\t\t\t#bar\n", + "Tsup3 = 250.;\t\t\t#degree C\n", + "m3 = m1+m2;\t\t\t#Kg\n", + "Cp = 2.25;\t\t\t#KJ/Kg\n", + "hg1 = 2797.2;\t\t\t#KJ/Kg(at p = 20 bar)\n", + "hg2 = hg1;\t\t\t#KJ/Kg(at p = 20 bar)\n", + "hg3 = hg1;\t\t\t#KJ/Kg(at p = 20 bar)\n", + "ts1 = 212.37;\t\t\t#degree C\n", + "ts2 = ts1;\t\t\t#degree C\n", + "ts3 = ts1;\t\t\t#degree C\n", + "\n", + "# Calculations and Results\n", + "#m1*h1+m2*h2 = m3*h3\n", + "h2 = (m3*(hg3+Cp*(Tsup3-ts3))-m1*(hg1+Cp*(Tsup1-ts1)))/m2;\t\t\t#KJ/Kg\n", + "print \"Enthalpy of boiler2 in KJ/Kg : %.2f\"%h2\n", + "print \"hg2(KJ/Kg) : \",hg2\n", + "print (\"steam is wet because h2