summaryrefslogtreecommitdiff
path: root/1808/CH6/EX6.11/Chapter6_Exampl11.sce
blob: 6ba1e062f2937e261030f5d729325526723f4328 (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
clc
clear
//INPUT DATA
P=11;//Power used to run the compressor in kW
h1=188.41;//total heat of gas leaving refrigeration in kJ/kg
h2=213.53;//total heat of gas leaving compressor in kJ/kg
h4=77.46;//total heat of liquid before throttling in kJ/kg

//CALCULATIONS
Re=h1-h4;//refrigeration effect
wd=h2-h1;//work done
cop=Re/wd;//COP of refrigerant system
m=P/wd;//mss of refrigerant 

//OUTPUT
printf('(i)COP is %3.3f \n (ii)mass of refrigerant %3.4f kg/s ',cop,m)