summaryrefslogtreecommitdiff
path: root/3825/CH9/EX9.9/Ex9_9.sce
blob: acd06e8baf02ef7b27c581e3308a5029154631ed (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
clc
h2=203.1063
s2=0.6825
sf=0.0736
sg=0.7094
hf=17.9517
hg=178.9017
s1=s2
X1=(s1-sf)/(sg-sf)
mprintf("X1=%f\n",X1)//ans vary due to roundoff error
h1=(X1*hg)+(1-X1)*hf
mprintf("h1=%fkJ/kg\n",h1)//ans vary due to roundoff error
h3=75.1134
h4=h3
COPR=(h1-h4)/(h2-h1)
mprintf("COPR=%f\n",COPR)//ans vary due to roundoff error
m=0.05
mprintf("Capacity of refrigerator=%fkW\n",m*(h1-h4))//ans vary due to roundoff error
Preq=m*(h2-h1)
mprintf("Power required=%fkW\n",Preq)//ans vary due to roundoff error
TL=253 //in kelvin
TH=313 //in kelvin
COP=TL/(TH-TL)
mprintf("COP=%f",COP)//ans vary due to roundoff error