summaryrefslogtreecommitdiff
path: root/167/CH11/EX11.2/ex2.sce
blob: 0aa74bfebd347128ea38cc2a82c5eabdf3a39dd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//ques2
//The Actual Vapor-Compression Refrigeration Cycle
clear
clc
//state 1 
P1=0.14;//Pressure in MPa
T1=-10;//Temperature in C
h1=246.36;//enthalpy of heat in kJ/kg
//state 2
P2=0.8;//Pressure in MPa
T2=50;//Temperature in C
h2=286.69;//Enthalpy of heat in kJ/kg
//state 3
P3=0.72;//Pressure in MPa
T3=26;//Temperature in C
h3=87.83;//Enthalpy in kJ/kg

h4=h3;//throttling
ms=0.05;//mass flow rate in kg/s
Qls=ms*(h1-h4);//heat removal in kW 
Wins=ms*(h2-h1);//Power in kW
printf('(a) Rate of heat removal = %.2f kW \n',Qls);
printf('     Power = %.2f kW \n',Wins);

//(b)The isentropic efficiency of the compressor is determined as
h2s=284.21;
nc=(h2s-h1)/(h2-h1);
printf(' (b) Isentropic efficiency = %.3f \n',nc);
COPr=Qls/Wins;
printf(' (c) Coefficient of performance of the refrigerator = %.1f \n',COPr);