diff options
Diffstat (limited to '572/CH10')
-rwxr-xr-x | 572/CH10/EX10.1/c10_1.sce | 50 | ||||
-rwxr-xr-x | 572/CH10/EX10.2/c10_2.sce | 34 | ||||
-rwxr-xr-x | 572/CH10/EX10.3/c10_3.sce | 55 | ||||
-rwxr-xr-x | 572/CH10/EX10.4/c10_4.sce | 54 | ||||
-rwxr-xr-x | 572/CH10/EX10.5/c10_5.sce | 39 |
5 files changed, 232 insertions, 0 deletions
diff --git a/572/CH10/EX10.1/c10_1.sce b/572/CH10/EX10.1/c10_1.sce new file mode 100755 index 000000000..a86cc4f1f --- /dev/null +++ b/572/CH10/EX10.1/c10_1.sce @@ -0,0 +1,50 @@ +//(10.1) Refrigerant 134a is the working fluid in an ideal vapor-compression refrigeration cycle that communicates thermally with a cold region at 0C and a warm region at 26C. Saturated vapor enters the compressor at 0C and saturated liquid leaves the condenser at 26C. The mass flow rate of the refrigerant is 0.08 kg/s. Determine (a) the compressor power, in kW, (b) the refrigeration capacity, in tons, (c) the coefficient of performance, and (d) the coefficient of performance of a Carnot refrigeration cycle operating between warm and cold regions at 26 and 0C, respectively.
+
+//solution
+
+//variable initialization
+
+Tc = 273 //temperature of cold region in kelvin
+Th = 299 //temperature of hot region in kelvin
+mdot = .08 //mass flow rate in kg/s
+
+//analysis
+//At the inlet to the compressor, the refrigerant is a saturated vapor at 0C, so from Table A-10
+h1 = 247.23 //in kj/kg
+s1 = .9190 //in kj/kg.k
+
+//The pressure at state 2s is the saturation pressure corresponding to 26C, or
+p2 = 6.853 //in bars
+//The refrigerant at state 2s is a superheated vapor with
+h2s = 264.7 //in kj/kg
+//State 3 is saturated liquid at 26C, so
+h3 = 85.75 //in kj/kg
+h4 = h3 //since The expansion through the valve is a throttling process
+
+//part(a)
+Wcdot = mdot*(h2s-h1) //The compressor work input in KW
+printf('the compressor power, in kW, is: %f',Wcdot)
+
+//part(b)
+Qindot = mdot*(h1-h4)*60/211 //refrigeration capacity in ton
+printf('\nthe refrigeration capacity in tons is: %f',Qindot)
+
+//part(c)
+funcprot(0)
+beta = (h1-h4)/(h2s-h1)
+printf('\nthe coefficient of performance is: %f',beta)
+
+//part(d)
+betamax = Tc/(Th-Tc)
+printf('\n the coefficient of performance of a Carnot refrigeration cycle operating between warm and cold regions at 26 and 0C, respectively is: %f',betamax)
+
+
+
+
+
+
+
+
+
+
+
diff --git a/572/CH10/EX10.2/c10_2.sce b/572/CH10/EX10.2/c10_2.sce new file mode 100755 index 000000000..fcdf953bc --- /dev/null +++ b/572/CH10/EX10.2/c10_2.sce @@ -0,0 +1,34 @@ +//(10.2) Modify Example 10.1 to allow for temperature differences between the refrigerant and the warm and cold regions as follows. Saturated vapor enters the compressor at 10C. Saturated liquid leaves the condenser at a pressure of 9 bar. Determine for the modified vapor-compression refrigeration cycle (a) the compressor power, in kW, (b) the refrigeration capacity, in tons, (c) the coefficient of performance. Compare results with those of Example 10.1.
+
+//solution
+mdot = .08 //mass flow rate in kg/s
+//analysis
+//at the inlet to the compressor, the refrigerant is a saturated vapor at 10C, so from Table A-10,
+h1 = 241.35 //in kj/kg
+s1 = .9253 //in kj/kg.k
+//Interpolating in Table A-12 gives
+h2s = 272.39 //in kj/kg.k
+//State 3 is a saturated liquid at 9 bar, so
+h3 = 99.56 //in kj/kg
+h4 = h3 //since The expansion through the valve is a throttling process
+
+//part(a)
+Wcdot = mdot*(h2s-h1) //The compressor power input in KW
+printf('the compressor power in kw is: %f',Wcdot)
+
+//part(b)
+Qindot = mdot*(h1-h4)*60/211 //refrigeration capacity in tons
+printf('\nthe refrigeration capacity in tons is: %f',Qindot)
+
+//part(c)
+beta = (h1-h4)/(h2s-h1)
+printf('\nthe coefficient of performance is: %f',beta)
+
+
+
+
+
+
+
+
+
diff --git a/572/CH10/EX10.3/c10_3.sce b/572/CH10/EX10.3/c10_3.sce new file mode 100755 index 000000000..eab88fea1 --- /dev/null +++ b/572/CH10/EX10.3/c10_3.sce @@ -0,0 +1,55 @@ +//(10.3) Reconsider the vapor-compression refrigeration cycle of Example 10.2, but include in the analysis that the compressor has an efficiency of 80%. Also, let the temperature of the liquid leaving the condenser be 30C. Determine for the modified cycle (a) the compressor power, in kW, (b) the refrigeration capacity, in tons, (c) the coefficient of performance, and (d) the rates of exergy destruction within the compressor and expansion valve, in kW, for T0 = 299 K (26C).
+
+//solution
+Tnot = 299 //in kelvin
+etac = .8 //compressor efficiency of 80 percent
+mdot = .08 //mass flow rate in kg/s
+//analysis
+//State 1 is the same as in Example 10.2, so
+h1 = 241.35 //in kj/kg
+s1 = .9253 //in kj/kg.k
+//from example 10.2
+h2s = 272.39 //in kj/kg
+h2 =(h2s-h1)/etac + h1 //in kj/kg
+//Interpolating in Table A-12,
+s2 = .9497 //in kj/kg.k
+
+h3 = 91.49 //in kj/kg
+s3 = .3396
+h4 = h3 //since The expansion through the valve is a throttling process
+//from data table
+hf4 = 36.97 //in kj/kg
+hg4 = 241.36 //in kj/kg
+sf4 = .1486 //in kj/kg.k
+sg4 = .9253 //in kj/kg.k
+x4 = (h4-hf4)/(hg4-hf4) //quality at state 4
+s4 = sf4 + x4*(sg4-sf4) //specific entropy at state 4 in kj/kg.k
+
+//part(a)
+Wcdot = mdot*(h2-h1) //compressor power in kw
+printf('the compressor power in kw is: %f',Wcdot)
+
+//part(b)
+Qindot = mdot*(h1-h4)*60/211 //refrigeration capacity in ton
+printf('\n\nnthe refrigeration capacity in ton is: %f',Qindot)
+
+//part(c)
+beta = (h1-h4)/(h2-h1) //coefficient of performance
+printf('\n\nthe coefficient of performance is: %f',beta)
+
+//part(d)
+Eddotc = mdot*Tnot*(s2-s1) //in kw
+Eddotv = mdot*Tnot*(s4-s3) //in kw
+printf('\n\nthe rate of exergy destruction within the compressor is: %f',Eddotc)
+printf('\nthe rate of exergy destruction within the valve is: %f',Eddotv)
+
+
+
+
+
+
+
+
+
+
+
diff --git a/572/CH10/EX10.4/c10_4.sce b/572/CH10/EX10.4/c10_4.sce new file mode 100755 index 000000000..a3e164f21 --- /dev/null +++ b/572/CH10/EX10.4/c10_4.sce @@ -0,0 +1,54 @@ +//(10.4) Air enters the compressor of an ideal Brayton refrigeration cycle at 1 bar, 270K, with a volumetric flow rate of 1.4 m3/s. If the compressor pressure ratio is 3 and the turbine inlet temperature is 300K, determine (a) the net power input, in kW, (b) the refrigeration capacity, in kW, (c) the coefficient of performance
+
+//solution
+
+//variable initialization
+p1 = 1 //in bar
+T1 = 270 //in kelvin
+AV = 1.4 //in m^3/s
+r = 3 //compressor pressure ratio
+T3 = 300 //turbine inlet temperature in kelvin
+
+//analysis
+//From Table A-22,
+h1 = 270.11 //in kj/kg
+pr1 = .9590
+pr2 = r*pr1
+//interpolating in Table A-22,
+h2s = 370.1 //in kj/kg
+//From Table A-22,
+h3 = 300.19 //in kj/kg
+pr3 = 1.3860
+pr4 = pr3/r
+//Interpolating in Table A-22, we obtain
+h4s = 219 //in kj/kg
+
+//part(a)
+R = 8.314 //universal gas constant, in SI units
+M = 28.97 //molar mass of air in grams
+mdot = (AV*p1)/((R/M)*T1)*10^2 //mass flow rate in kg/s
+
+Wcycledot = mdot*((h2s-h1)-(h3-h4s))
+printf('the net power input in kw is: %f',Wcycledot)
+
+//part(b)
+Qindot = mdot*(h1-h4s) //refrigeration capacity in kw
+printf('\nthe refregeration capacity in kw is: %f',Qindot)
+
+//part(c)
+beta = Qindot/Wcycledot //coefficient of performance
+printf('\nthe coefficient of performance is: %f',beta)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/572/CH10/EX10.5/c10_5.sce b/572/CH10/EX10.5/c10_5.sce new file mode 100755 index 000000000..d2436a3e7 --- /dev/null +++ b/572/CH10/EX10.5/c10_5.sce @@ -0,0 +1,39 @@ +//(10.5) Reconsider Example 10.4, but include in the analysis that the compressor and turbine each have an isentropic efficiency of 80%. Determine for the modified cycle (a) the net power input, in kW, (b) the refrigeration capacity, in kW, (c) the coefficient of performance, and interpret its value.
+
+//solution
+funcprot(0)
+
+//part(a)
+wcdots = 99.99 //work per unit mass for the isentropic compression determined with data from the solution in Example 10.4 in kj/kg
+mdot = 1.807 //mass flow rate in kg/s from 10.4
+etac = .8 //isentropic efficiency of compressor
+Wcdot = mdot*wcdots/etac //The power input to the compressor in kw
+
+//Using data form the solution to Example 10.4 gives
+wtdots =81.19 //in kj/kg
+etat = .8 //isentropic efficiency of turbine
+Wtdot = mdot*etat*wtdots //actual turbine work in kw
+
+Wdotcycle = Wcdot-Wtdot //The net power input to the cycle in kw
+printf('the net power input in kw is: %f',Wdotcycle)
+
+//part(b)
+h3 = 300.19 //in kj/kg
+h4 = h3 -Wtdot/mdot
+//from table A-22
+h1 = 270.11 //in kj/kg
+Qindot = mdot*(h1-h4) //refrigeration capacity in kw
+printf('\nthe refrigeration capacity in kw is: %f',Qindot)
+
+//part(c)
+beta = Qindot/Wdotcycle //coefficient of performance
+printf('\nthe coefficient of performance is: %f',beta)
+
+
+
+
+
+
+
+
+
|