diff options
author | Prashant S | 2020-04-14 10:25:32 +0530 |
---|---|---|
committer | GitHub | 2020-04-14 10:25:32 +0530 |
commit | 06b09e7d29d252fb2f5a056eeb8bd1264ff6a333 (patch) | |
tree | 2b1df110e24ff0174830d7f825f43ff1c134d1af /Fundamental_Of_Engineering_Thermodynamics_by_M_J_Moran/7-Exergy_analysis.ipynb | |
parent | abb52650288b08a680335531742a7126ad0fb846 (diff) | |
parent | 476705d693c7122d34f9b049fa79b935405c9b49 (diff) | |
download | all-scilab-tbc-books-ipynb-master.tar.gz all-scilab-tbc-books-ipynb-master.tar.bz2 all-scilab-tbc-books-ipynb-master.zip |
Initial commit
Diffstat (limited to 'Fundamental_Of_Engineering_Thermodynamics_by_M_J_Moran/7-Exergy_analysis.ipynb')
-rw-r--r-- | Fundamental_Of_Engineering_Thermodynamics_by_M_J_Moran/7-Exergy_analysis.ipynb | 661 |
1 files changed, 661 insertions, 0 deletions
diff --git a/Fundamental_Of_Engineering_Thermodynamics_by_M_J_Moran/7-Exergy_analysis.ipynb b/Fundamental_Of_Engineering_Thermodynamics_by_M_J_Moran/7-Exergy_analysis.ipynb new file mode 100644 index 0000000..44f9d12 --- /dev/null +++ b/Fundamental_Of_Engineering_Thermodynamics_by_M_J_Moran/7-Exergy_analysis.ipynb @@ -0,0 +1,661 @@ +{ +"cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 7: Exergy analysis" + ] + }, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.10: Example_10.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//(7.10) A cogeneration system consists of a natural gas-fueled boiler and a steam turbine that develops power and provides steam for an industrial process. At steady state, fuel enters the boiler with an exergy rate of 100 MW. Steam exits the boiler at 50 bar, 466C with an exergy rate of 35 MW. Steam exits the turbine at 5 bar, 205C and a mass flow rate of 26.15 kg/s. The unit cost of the fuel is 1.44 cents per kw.h of exergy. The costs of owning and operating the boiler and turbine are, respectively, dollar 1080/h and dollar 92/h. The feedwater and combustion air enter with negligible exergy and cost. The combustion products are discharged directly to the surroundings with negligible cost. Heat transfer with the surroundings and kinetic and potential energy effects are negligible. Let T0 = 298 K. (a) For the turbine, determine the power and the rate exergy exits with the steam, each in MW. (b) Determine the unit costs of the steam exiting the boiler, the steam exiting the turbine, and the power, each in cents per kw.h of exergy. (c) Determine the cost rates of the steam exiting the turbine and the power, each in $/h.\n", +"\n", +"\n", +"//solution\n", +"\n", +"//variable initialization\n", +"EfFdot = 100 //exergy rate of fuel entering the boiler in MW\n", +"cF = 1.44 //unit cost of fuel in cents per kw.h\n", +"Zbdot = 1080 //the cost of owning and operating boiler in dollars per hour\n", +"Ef1dot = 35 //exergy rate of exiting steam from the boiler in MW\n", +"p1 = 50 //pressure of exiting steam from the boiler in bar\n", +"T1 = 466 //temperature of exiting steam from the boiler in degree celcius\n", +"Ztdot = 92 //the cost of owning and operating turbine in dollars per hour\n", +"p2 = 5 //pressure of exiting steam from the turbine in bars\n", +"T2 = 205 //temperature of exiting steam from the turbine in degree celcius\n", +"m2dot = 26.15 //mass flow rate of exiting steam from the turbine in kg/s\n", +"T0 = 298 //in kelvin \n", +"\n", +"\n", +"//part(a)\n", +"//from table A-4,\n", +"h1 = 3353.54 //in kj/kg\n", +"h2 = 2865.96 //in kj/kg\n", +"//from assumption,For each control volume,Qcvdot = 0 and kinetic and potential energy effects are negligible,the mass and energy rate balances for a control volume enclosing the turbine reduce at steady state to give\n", +"Wedot = m2dot *(h1-h2)/1000 //power in MW\n", +"\n", +"//from table A-4\n", +"s1 = 6.8773 //in kj/kg.k\n", +"s2 = 7.0806 //in kj/kg.k\n", +"\n", +"Ef2dot = Ef1dot+m2dot*(h2-h1-T0*(s2-s1))/1000 //the rate exergy exits with the steam in MW\n", +"printf('for the turbine,the power in MW is:\t%f',Wedot)\n", +"printf('\nfor the turbine,the rate exergy exits with the steam in MW is:\t%f',Ef2dot)\n", +"\n", +"//part(b)\n", +"c1 = cF*(EfFdot/Ef1dot) + ((Zbdot/Ef1dot)/10^3)*100 //unit cost of exiting steam from boiler in cents/Kw.h\n", +"c2 = c1 //Assigning the same unit cost to the steam entering and exiting the turbine\n", +"ce = c1*((Ef1dot-Ef2dot)/Wedot) + ((Ztdot/Wedot)/10^3)*100 //unit cost of power in cents/kw.h\n", +"\n", +"printf('\n\nthe unit costs of the steam exiting the boiler in cents per kw.h of exergy is:\t%f',c1)\n", +"printf('\nthe unit costs of the steam exiting the turbine in cents per kw.h of exergy is:\t%f',c2)\n", +"printf('\nunit cost of power in cents per kw.h is:\t%f',ce)\n", +"\n", +"//part(c)\n", +"C2dot = (c2*Ef2dot*10^3)/100 //cost rate for low-pressure steam in dollars per hour\n", +"Cedot = (ce*Wedot*10^3)/100 //cost rate for power in dollars per hour\n", +"\n", +"printf('\n\nthe cost rate of the steam exiting the turbine in dollars per hour is: %f',C2dot)\n", +"printf('\nthe cost rate of the power in dollars per hour is: %f',Cedot)\n", +"\n", +"\n", +"\n", +"\n", +"\n", +"\n", +"\n", +"\n", +"\n", +"\n", +"\n", +"\n", +"" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.1: Example_1.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"// (7.1) A cylinder of an internal combustion engine contains 2450 cm3 of gaseous combustion products at a pressure of 7 bar and a temperature of 867C just before the exhaust valve opens. Determine the specific exergy of the gas, in kJ/kg. Ignore the effects of motion and gravity, and model the combustion products as air as an ideal gas. Take T0 = 300 K (27C) and p0= 1.013 bar.\n", +"\n", +"\n", +"//solution\n", +"\n", +"\n", +"//variable initialization\n", +"v = 2450 //volume of gaseous products in cm^3\n", +"P = 7 //pressure of gaseous product in bar\n", +"T = 867 //temperature of gaseous product in degree celcius\n", +"T0 = 300 //in kelvin\n", +"P0 = 1.013 //in bar\n", +"\n", +"//from table A-22\n", +"u = 880.35 //in kj/kg\n", +"u0 = 214.07 //in kj/kg\n", +"s0(T) = 3.11883 //in kj/kg.k\n", +"s0(T0) = 1.70203 //in kj/kg.k\n", +"\n", +"e = (u-u0) + (P0*(8.314/28.97)*[((T+273)/P)-(T0/P0)]) - T0*[s0(T)-s0(T0)-(8.314/28.97)*log(P/P0)] //in kj/kg\n", +"printf('the specific exergy of the gas, in kJ/kg is \n\t e = %f',e)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.2: Example_2.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//(7.2) Refrigerant 134a, initially a saturated vapor at -28C, is contained in a rigid, insulated vessel. The vessel is fitted with a paddle wheel connected to a pulley from which a mass is suspended. As the mass descends a certain distance, the refrigerant is stirred until it attains a state where the pressure is 1.4 bar. The only significant changes of state are experienced by the suspended mass and the refrigerant. The mass of refrigerant is 1.11 kg. Determine (a) the initial exergy, final exergy, and change in exergy of the refrigerant, each in kJ. (b) the change in exergy of the suspended mass, in kJ. (c) the change in exergy of an isolated system of the vessel and pulley–mass assembly, in kJ. Discuss the results obtained, and compare with the respective energy changes. Let T0 = 293 K (20C), p0 = 1 bar.\n", +"\n", +"//solution \n", +"\n", +"//variable initialization\n", +"mR = 1.11 //mass of the refrigerant in kg\n", +"T1 = -28 //initial temperature of the saturated vapor in degree celcius\n", +"P2 = 1.4 //final pressure of the refrigerant in bar\n", +"T0 = 293 //in kelvin\n", +"P0 = 1 //in bar\n", +"\n", +"//part (a)\n", +"//from table A-10\n", +"u1 = 211.29 //in kj/kg\n", +"v1 = .2052 //in m^3/kg\n", +"s1 = .9411 //in kj/kg.k\n", +"//from table A-12\n", +"u0 = 246.67 //in kj/kg\n", +"v0 = .23349 //in m^3/kg\n", +"s0 = 1.0829 //in kj/kg.k\n", +"\n", +"E1 = mR*[(u1-u0) + P0*10^5*(v1-v0)*10^(-3)-T0*(s1-s0)]\n", +"\n", +"//from table A-12\n", +"u2 = 300.16 //in kj/kg\n", +"s2 = 1.2369 //in kj/kg.k\n", +"v2 = v1\n", +"\n", +"E2 = mR*[(u2-u0) + P0*10^5*(v2-v0)*10^(-3)-T0*(s2-s0)]\n", +"\n", +"printf('part(a)the initial exergy in kj is :\n\t E1 = %f',E1)\n", +"printf('\nthe final exergy in kj is :\n\t E2 = %f',E2)\n", +"printf('\nthe change in exergy of the refrigerant in kj is \n\tdeltaE = %f',E2-E1)\n", +"\n", +"\n", +"//part (b)\n", +"deltaU = mR*(u2-u1)\n", +"//from energy balance\n", +"deltaPE = -deltaU\n", +"//with the assumption::The only significant changes of state are experienced by the refrigerant and the suspended mass. For the refrigerant, there is no change in kinetic or potential energy. For the suspended mass, there is no change in kinetic or internal energy. Elevation is the only intensive property of the suspended mass that changes\n", +"deltaE = deltaPE\n", +"printf('\n\n\npart(b)the change in exergy of the suspended mass, in kJ is :\n\t deltaE = %f',deltaE)\n", +"\n", +"\n", +"//part(c)\n", +"deltaEiso = (E2-E1) + deltaE\n", +"printf('\n\n\npart(c)the change in exergy of an isolated system of the vessel and pulley–mass assembly, in kJ is :\n\t deltaEiso = %f',deltaEiso)\n", +"\n", +"\n", +"\n", +"" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.3: Example_3.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//(7.3) Water initially a saturated liquid at 100C is contained in a piston–cylinder assembly. The water undergoes a process to the corresponding saturated vapor state, during which the piston moves freely in the cylinder. For each of the two processes described below, determine on a unit of mass basis the change in exergy, the exergy transfer accompanying work, the exergy transfer accompanying heat, and the exergy destruction, each in kJ/kg. Let T0 = 20C, p0 = 1.014 bar. (a) The change in state is brought about by heating the water as it undergoes an internally reversible process at constant temperature and pressure. (b) The change in state is brought about adiabatically by the stirring action of a paddle wheel.\n", +"\n", +"\n", +"//solution\n", +"\n", +"//variable initialization\n", +"T = 373.15 //initial temperature of saturated liquid in kelvin\n", +"T0 = 293.15 //in kelvin\n", +"P0 = 1.014 //in bar\n", +"\n", +"\n", +"//part(a)\n", +"//from table A-2\n", +"ug = 2506.5 //in kj/kg\n", +"uf = 418.94 //in kj/kg\n", +"vg = 1.673 //in m^3/kg\n", +"vf = 1.0435*10^(-3) //in m^3/kg\n", +"sg = 7.3549 //in kj/kg.k\n", +"sf = 1.3069 //in kj/kg.k\n", +"\n", +"deltae = ug-uf + P0*10^5*(vg-vf)/(10^3)-T0*(sg-sf)\n", +"\n", +"//exergy transfer accompanying work\n", +"etaw = 0 //since p = p0\n", +"\n", +"//exergy transfer accompanying heat\n", +"Q = 2257 //in kj/kg,obtained from example 6.1\n", +"etah = (1-(T0/T))*Q\n", +"\n", +"//exergy destruction\n", +"ed = 0 //since the process is accomplished without any irreversibilities\n", +"\n", +"printf('part(a)the change in exergy in kj/kg is:\n\t deltae = %f ',deltae)\n", +"printf('\nthe exergy transfer accompanying work in kj/kg is:\n\t etaw = %f',etaw)\n", +"printf('\nthe exergy transfer accompanying heat in kj/kg is:\n\t etah = %f',etah)\n", +"printf('\nthe exergy destruction in kj/kg is:\n\t ed = %f',ed)\n", +"\n", +"\n", +"//part(b)\n", +"Deltae = deltae //since the end states are same \n", +"Etah = 0 //since process is adiabatic\n", +"//exergy transfer along work\n", +"W = -2087.56 //in kj/kg from example 6.2\n", +"Etaw = W- P0*10^5*(vg-vf)/(10^3)\n", +"//exergy destruction\n", +"Ed = -Deltae-Etaw\n", +"\n", +"printf('\n\n\npart(b)the change in exergy in kj/kg is:\n\t Deltae = %f ',Deltae)\n", +"printf('\nthe exergy transfer accompanying work in kj/kg is:\n\t Etaw = %f',Etaw)\n", +"printf('\nthe exergy transfer accompanying heat in kj/kg is:\n\t Etah = %f',Etah)\n", +"printf('\nthe exergy destruction in kj/kg is:\n\t Ed = %f',Ed)\n", +"\n", +"\n", +"\n", +"\n", +"\n", +"" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.4: Example_4.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//(7.4) For the gearbox of Examples 2.4 and 6.4(a), develop a full exergy accounting of the power input. Let T0 = 293 K.\n", +"\n", +"\n", +"//solution\n", +"\n", +"//Since the gearbox volume is constant, the rate of exergy transfer accompanying power reduces to the power itself. Accordingly, exergy is transferred into the gearbox via the high-speed shaft at a rate equal to the power input, 60 kW, and exergy is transferred out via the low-speed shaft at a rate equal to the power output, 58.8 kW. Additionally, exergy is transferred out accompanying heat transfer and destroyed by irreversibilities within the gearbox.\n", +"\n", +"T0 = 293 //in kelvin\n", +"Qdot = -1.2 //in KW, from example 6.4a\n", +"Tb = 300 //temperature at the outer surface of the gearbox in kelvin from example 6.4a\n", +"sigmadot = 4e-3 //rate of entropy production in KW/k from example 6.4a\n", +"\n", +"R = (1-T0/Tb)*Qdot //time rate of exergy transfer accompanying heat\n", +"Eddot = T0*sigmadot //rate of exergy destruction\n", +"\n", +"printf('balance sheet')\n", +"printf('\nrate of exergy in:\n high speed shaft\t\t 60Kw') \n", +"printf('\nDisposition of the exergy:\n• Rate of exergy out\nlow-speed shaft\t\t 58.8Kw') \n", +"printf('\nheat transfer in kw\t\t%f',norm(R))\n", +"printf('\n• Rate of exergy destruction in kw\t\t%f',Eddot)" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.5: Example_5.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Superheated water vapor enters a valve at 3.0 MPa, 320C and exits at a pressure of 0.5 MPa. The expansion is a throttling process. Determine the specific flow exergy at the inlet and exit and the exergy destruction per unit of mass flowing, each in kJ/kg. Let T0 = 25C, p0= 1 atm.\n", +"\n", +"//solution\n", +"\n", +"//variable initialization\n", +"p1 = 3 //entry pressure in Mpa\n", +"p2 = .5 //exit pressure in Mpa\n", +"T1 = 320 //entry temperature in degree celcius\n", +"T0 = 25 //in degree celcius\n", +"p0 = 1 //in atm\n", +"\n", +"\n", +"//from table A-4\n", +"h1 = 3043.4 //in kj/kg\n", +"s1 = 6.6245 //in kj/kg.k\n", +"\n", +"h2 = h1 //from reduction of the steady-state mass and energy rate balances\n", +"\n", +"s2 = 7.4223 //Interpolating at a pressure of 0.5 MPa with h2 = h1, units in kj/kg.k\n", +"\n", +"//from table A-2\n", +"h0 = 104.89 //in kj/kg\n", +"s0 = 0.3674 //in kj/kg.k\n", +"\n", +"ef1 = h1-h0-(T0+273)*(s1-s0) //flow exergy at the inlet\n", +"ef2 = h2-h0-(T0+273)*(s2-s0) //flow exergy at the exit\n", +"\n", +"//from the steady-state form of the exergy rate balance\n", +"Ed = ef1-ef2 //the exergy destruction per unit of mass flowing is\n", +"\n", +"printf(' the specific flow exergy at the inlet in kj/kg is :\n\t ef1 =%f',ef1)\n", +"printf('\nthe specific flow exergy at the exit in kj/kg is:\n\t ef2 = %f', ef2)\n", +"printf('\nthe exergy destruction per unit of mass flowing in kj/kg is:\n\t = %f',Ed)\n", +"\n", +"\n", +"\n", +"\n", +"" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.6: Example_6.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Compressed air enters a counterflow heat exchanger operating at steady state at 610 K, 10 bar and exits at 860 K, 9.7 bar. Hot combustion gas enters as a separate stream at 1020 K, 1.1 bar and exits at 1 bar. Each stream has a mass flow rate of 90 kg/s. Heat transfer between the outer surface of the heat exchanger and the surroundings can be ignored. Kinetic and potential energy effects are negligible. Assuming the combustion gas stream has the properties of air, and using the ideal gas model for both streams, determine for the heat exchanger(a) the exit temperature of the combustion gas, in K. (b) the net change in the flow exergy rate from inlet to exit of each stream, in MW. (c) the rate exergy is destroyed, in MW. Let T0 = 300 K, p0 = 1 bar.\n", +"\n", +"\n", +"//solution\n", +"\n", +"//variable initialization\n", +"T1 = 610 //temperature of the air entering heat exchanger in kelvin\n", +"p1 = 10 //pressure of the air entering heat exchanger in bar\n", +"T2 = 860 //temperature of the air exiting the heat exchanger in kelvin\n", +"p2 = 9.7 //pressure of the air exiting the heat exchanger in bar\n", +"T3 = 1020 //temperature of entering hot combustion gas in kelvin\n", +"p3 = 1.1 //pressure of entering hot combustion gas in bar\n", +"p4 = 1 //pressure of exiting hot combustion gas in bar\n", +"mdot = 90 //mass flow rate in kg/s\n", +"T0 = 300 //in kelvin\n", +"p0 = 1 //in bar\n", +"\n", +"//part (a)\n", +"//from table A-22\n", +"h1 = 617.53 //in kj/kg\n", +"h2 = 888.27 //in kj/kg\n", +"h3 = 1068.89 //in kj/kg\n", +"\n", +"//from reduction of mass and energy rate balances for the control volume at steady state \n", +"h4 = h3+h1-h2\n", +"\n", +"//using interpolation in table A-22 gives\n", +"T4 = 778 //in kelvin\n", +"printf('the exit temperature of the combustion gas in kelvin is:\n\tT4 = %f',T4)\n", +"\n", +"\n", +"//part(b)\n", +"//from table A-22\n", +"s2 = 2.79783 //in kj/kg.k\n", +"s1 = 2.42644 //in kj/kg.k\n", +"\n", +"deltaR = (mdot*((h2-h1)-T0*(s2-s1-(8.314/28.97)*log(p2/p1))))/1000\n", +"\n", +"//from table A-22\n", +"s4 = 2.68769 //in kj/kg.k\n", +"s3 = 2.99034 //in kj/kg.k\n", +"\n", +"deltRc = mdot*((h4-h3)-T0*(s4-s3-(8.314/28.97)*log(p4/p3)))/1000\n", +"\n", +"printf('\nthe net change in the flow exergy rate from inlet to exit of compressed gas in MW is:\n\t deltaR = %f',deltaR)\n", +"printf('\nthe net change in the flow exergy rate from inlet to exit of hot combustion gas in MW is:\n\tdeltRc =%f ',deltRc)\n", +"\n", +"//part(c)\n", +"//from an exergy rate balance\n", +"Eddot = -deltaR-deltRc\n", +"\n", +"printf('\nthe rate exergy destroyed, in MW is:Eddot = %f',Eddot)\n", +"\n", +"\n", +"\n", +"\n", +"\n", +"\n", +"\n", +"\n", +"\n", +"\n", +"\n", +"\n", +"" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.7: Example_7.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//Steam enters a turbine with a pressure of 30 bar, a temperature of 400C, a velocity of 160 m/s. Steam exits as saturated vapor at 100C with a velocity of 100 m/s. At steady state, the turbine develops work at a rate of 540 kJ per kg of steam flowing through the turbine. Heat transfer between the turbine and its surroundings occurs at an average outer surface temperature of 350 K. Develop a full accounting of the net exergy carried in by the steam, per unit mass of steam flowing. Neglect the change in potential energy between inlet and exit. Let T0 = 25C, p0= 1 atm.\n", +"\n", +"//solution\n", +"\n", +"//variable initialization\n", +"p1 = 30 //pressure of entering steam in bar\n", +"t1 = 400 //temperature of entering steam in degree celcius\n", +"v1 = 160 //velocity of entering steam in m/s\n", +"t2 = 100 //temperature of exiting saturated vapor in degree celcius\n", +"v2 = 100 //velocity of exiting saturated vapor in m/s\n", +"W = 540 //rate of work developed in kj per kg of steam\n", +"Tb = 350 //the temperature on the boundary where heat transfer occurs in kelvin\n", +"T0 = 25 //in degree celcius\n", +"p0 = 1 //in atm\n", +"\n", +"//from table A-4\n", +"h1 = 3230.9 //in kj/kg\n", +"s1 = 6.9212 //in kj/kg.k\n", +"//from table A-2 \n", +"h2 = 2676.1 //in kj/kg\n", +"s2 = 7.3549 //in kj/kg.k\n", +"\n", +"DELTAef = (h1-h2)-(T0+273)*(s1-s2)+(v1^2-v2^2)/(2*1000) //The net exergy carried in per unit mass of steam flowing in kj/kg\n", +"\n", +"//from example 6.6\n", +"Q = -22.6 //in kj/kg\n", +"Eq = (1-(T0+273)/Tb)*(Q) //exergy transfer accompanying heat in kj/kg\n", +"\n", +"Ed = (1-(T0+273)/Tb)*(Q)-W+(DELTAef) //The exergy destruction determined by rearranging the steady-state form of the exergy rate balanceff\n", +"\n", +"printf('balance sheet')\n", +"printf('\nNet rate of exergy in:\t%f',DELTAef)\n", +"printf('\nDisposition of the exergy:')\n", +"printf('\n• Rate of exergy out')\n", +"printf('\nwork\t%f',W)\n", +"printf('\nheat transfer\t%f',-Eq)\n", +"printf('\n• Rate of exergy destruction\t%f',Ed)\n", +"\n", +"\n", +"\n", +"\n", +"\n", +"\n", +"\n", +"" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.8: Example_8.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//(7.8) Suppose the system of Example 4.10 is one option under consideration for utilizing the combustion products discharged from an industrial process. (a) Develop a full accounting of the net exergy carried in by the combustion products. (b) Discuss the design implications of the results.\n", +"\n", +"\n", +"//solution\n", +"\n", +"//variable initialization\n", +"m1dot = 69.78 //in kg/s\n", +"p1 = 1 //in bar\n", +"T1 = 478 //in kelvin\n", +"T2 = 400 //in kelvin\n", +"p2 = 1 //in bar\n", +"p3 = .275 //in Mpa\n", +"T3 = 38.9 //in degree celcius\n", +"m3dot = 2.08 //in kg/s\n", +"T4 = 180 //in degree celcius\n", +"p4 = .275 //in Mpa\n", +"p5 = .07 //in bar\n", +"x5 = .93\n", +"Wcvdot = 876.8 //in kW\n", +"T0 = 298 //in kelvin\n", +"\n", +"\n", +"//part(a)\n", +"//from table A-22\n", +"h1 = 480.35 //in kj/kg\n", +"h2 = 400.97 //in kj/kg\n", +"s1 = 2.173 //in kj/kg\n", +"s2 = 1.992 //in kj/kg\n", +"\n", +"netRE = m1dot*(h1-h2-T0*(s1-s2-(8.314/28.97)*log(p1/p2))) //the net rate exergy carried into the control volume\n", +"\n", +"\n", +"//from table A-2E\n", +"h3 = 162.82 //in kj/kg\n", +"s3 = .5598 //in kj/kg.k\n", +"//Using saturation data at 0.07 bars from Table A-3\n", +"h5 = 2403.27 //in kj/kg\n", +"s5 = 7.739 //in kj/kg.k\n", +"\n", +"netREout = m3dot*(h5-h3-T0*(s5-s3)) //the net rate exergy carried out by the water stream\n", +"\n", +"//from table A-4\n", +"h4 = 2825 //in kj/kg\n", +"s4 = 7.2196 //in kj/kg.k\n", +"\n", +"//from an exergy rate balance applied to a control volume enclosing the steam generator\n", +"Eddot = netRE + m3dot*(h3-h4-T0*(s3-s4)) //the rate exergy is destroyed in the heat-recovery steam generator\n", +"\n", +"//from an exergy rate balance applied to a control volume enclosing the turbine\n", +"EdDot = -Wcvdot + m3dot*(h4-h5-T0*(s4-s5)) //the rate exergy is destroyed in the tpurbine\n", +"\n", +"\n", +"printf('balance sheet')\n", +"printf('\nNet rate of exergy in:\t%f',netRE)\n", +"printf('\nDisposition of the exergy:')\n", +"printf('\n• Rate of exergy out')\n", +"printf('\npower developed\t%f',1772.8-netREout-Eddot-EdDot)\n", +"printf('\nwater stream\t%f',netREout)\n", +"printf('\n• Rate of exergy destruction')\n", +"printf('\nheat-recovery steam generator\t%f',Eddot)\n", +"printf('\nturbine\t%f',EdDot)\n", +"\n", +"\n", +"\n", +"\n", +"\n", +"" + ] + } +, +{ + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Example 7.9: Example_9.sce" + ] + }, + { +"cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], +"source": [ +"//(7.9) For the heat pump of Examples 6.8 and 6.14, determine the exergy destruction rates, each in kW, for the compressor, condenser, and throttling valve. If exergy is valued at $0.08 per kw.h, determine the daily cost of electricity to operate the compressor and the daily cost of exergy destruction in each component. Let T0 = 273 K (0C), which corresponds to the temperature of the outside ai. \n", +"\n", +"\n", +"//solution\n", +"\n", +"T0 = 273 //in kelvin\n", +"pricerate = .08 //exergy value at $0.08 per kw.h\n", +"\n", +"//from example 6.8\n", +"sigmadotComp = 17.5e-4 //in kw/k\n", +"sigmadotValve = 9.94e-4 //in kw/k\n", +"sigmadotcond = 7.95e-4 //in kw/k\n", +"\n", +"//The rates of exergy destruction\n", +"EddotComp = T0*sigmadotComp //in kw\n", +"EddotValve = T0*sigmadotValve //in kw\n", +"Eddotcond = T0*sigmadotcond //in kw\n", +"\n", +"mCP = 3.11 //From the solution to Example 6.14, the magnitude of the compressor power in kW\n", +"\n", +"printf('Daily cost in dollars of exergy destruction due to compressor irreversibilities =\t %f',EddotComp*pricerate*24)\n", +"printf('\naDaily cost in dollars of exergy destruction due to irreversibilities in the throttling valve =\t %f',EddotValve*pricerate*24)\n", +"printf('\naDaily cost in dollars of exergy destruction due to irreversibilities in the condenser =\t %f',Eddotcond*pricerate*24)\n", +"printf('\naDaily cost in dollars of electricity to operate compressor =\t %f',mCP*pricerate*24)" + ] + } +], +"metadata": { + "kernelspec": { + "display_name": "Scilab", + "language": "scilab", + "name": "scilab" + }, + "language_info": { + "file_extension": ".sce", + "help_links": [ + { + "text": "MetaKernel Magics", + "url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md" + } + ], + "mimetype": "text/x-octave", + "name": "scilab", + "version": "0.7.1" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} |