summaryrefslogtreecommitdiff
path: root/32/CH1/EX1.19/1_19.sce
blob: df2bc6a61735eb9d3680c0875b5a5a84625b6eb2 (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
//pathname=get_absolute_file_path('1.19.sce')
//filename=pathname+filesep()+'1.19-data.sci'
//exec(filename)
//Pressure of steam(in kPa):
p=17672
//Temperature of steam(in K):
t=712
//Critical pressure(in kPa):
Pc=22.09*10^3
//Critical temperature(in K):
Tc=647.3
//Gas constant for steam(in kJ/kg-K):
Rs=0.4615
//Considering perfect gas:
//Specific volume(in m^3/kg)
vp=Rs*t/p
//Considering real gas:
//Reduced pressure:
Rp=p/Pc
//Reduced temperature:
Rt=t/Tc
//Value of compressibility factor(from chart for Rp & Rt):
Z=0.785
//Specific volume(in m^3/kg):
vr=Z*vp
printf("\n\n RESULT \n\n")
printf("\n\n Specific volume considering perfect gas = %f m^3/kg",vp)
printf("\n Specific volume considering real gas =%f m^3/kg \n\n",vr)