{ "metadata": { "name": "", "signature": "sha256:2adb5810f77a16f36c057b0df75843c0d900b3354a62e4e4e5a6c4e231a86e5c" }, "nbformat": 3, "nbformat_minor": 0, "worksheets": [ { "cells": [ { "cell_type": "heading", "level": 1, "metadata": {}, "source": [ "Chapter 3:PROPERTIES OF A PURE SUBSTANCE" ] }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Example 3.1, Page No:77" ] }, { "cell_type": "code", "collapsed": false, "input": [ "#Variable declaration\n", "\n", "V=0.01; # Volume of water in a rigid vessel in m^3\n", "m=4.5; # Mass of water+ steam in a rigid vessel in kg\n", "T=35; # Temperature of water in a rigid vessel in degree celcius\n", "#Calculation\n", "\n", "# (a) \n", "v=V/m; # specific volume of water\n", "# From steam table\n", "vf=0.001006; vg=25.22; # specific volume in m^3/kg\n", "x=(v-vf)/(vg-vf); # Quality of steam\n", "x1=1-x; # Quality of water\n", "mg=x*m; # Mass of steam\n", "mf=x1*m; # Mass of water\n", "#Result for (a)\n", "\n", "print \"(a).\\n\",\"Quality of steam in a rigid vessel = \",x,\"\\nQuality of water in a rigid vessel = \",x1\n", "print \"Mass of steam in a rigid vessel = \",round(mg,8),\"kg\\n\",\"Mass of water in a rigid vessel = \",round(mf,9),\"kg\\n\"\n", "# (b)\n", "#Result for (b)\n", "\n", "vc=0.003155; # Crictical volume for water in m^3/kg\n", "print \"(b).\\n\",\"The level of liquid water will rise in the vessel. Since v < vc and refer figure 3.21\\n\"\n", "# (c) \n", "#Result for (c)\n", "\n", "print \"(c)\\n\",\"The final temperature after heating is 370.04 oC. Because it is constant volume process and refer figure 3.21\\n\"\n", "# (d) \n", "#Calculation for (d)\n", "\n", "m1=0.45; # Mass of water in kg\n", "v1=V/m; # specific volume of water\n", "#Result for (d)\n", "\n", "print\"(d).\\n\", \"Level of liquid drops to bottom (v1 > vc). Temperature on reaching saturation state is 298.5 oC and refer figure 3.21\"\n" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "(a).\n", "Quality of steam in a rigid vessel = 4.82264368762e-05 \n", "Quality of water in a rigid vessel = 0.999951773563\n", "Mass of steam in a rigid vessel = 0.00021702 kg\n", "Mass of water in a rigid vessel = 4.499782981 kg\n", "\n", "(b).\n", "The level of liquid water will rise in the vessel. Since v < vc and refer figure 3.21\n", "\n", "(c)\n", "The final temperature after heating is 370.04 oC. Because it is constant volume process and refer figure 3.21\n", "\n", "(d).\n", "Level of liquid drops to bottom (v1 > vc). Temperature on reaching saturation state is 298.5 oC and refer figure 3.21\n" ] } ], "prompt_number": 1 }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ "Example 3.2, Page No:79 " ] }, { "cell_type": "code", "collapsed": false, "input": [ "#Variable declaration for (a)\n", "# (a) Ammonia 26 oC and 0.074 m^3/kg\n", "# From saturation table of ammonia at 26 oC\n", "v=0.074; # specific volume of ammonia in m^3/kg\n", "vf=0.001663; vg=0.1245; # specific volume of ammonia in m^3/kg\n", "\n", "#Calculation for (a)\n", "x=(v-vf)/(vg-vf); # Quality of vapour since v vg . Since from superheated table by interpolation for 550kPa and v\n", "T=82.1; # Temperature of ammonia in degree celcius\n", "\n", "#Result for (b)\n", "print \"\\n(b).Ammonia 550kPa and 0.31m^3/kg\\n\",\"Temperature of ammonia = \",T,\"oC\\n\"\n", "\n", "#Variable declaration for (c)\n", "# (c).Freon 12, 0.35MPa and 0.036 m^3/kg\n", "# From saturation table of Freon 12 at 0.35MPa\n", "v=0.036; # specific volume of Freon 12 in m^3/kg\n", "vf=0.000722; vg=0.049329; # specific volume of Freon 12 in m^3/kg\n", "\n", "#Calculation for (c)\n", "x=(v-vf)/(vg-vf); # Quality of vapour since v