summaryrefslogtreecommitdiff
path: root/1442/CH4/EX4.5/4_5.sce
blob: 00c3fb0628a9c1a33d074ea3eecb12145f8cadd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
clc
//initialisation of variables
vf= 0.001404 //m^3/kg
x= 0.8
vg= 0.02167 //m^3/kg
uf= 1332 //kJ/kg
ug= 1231 //kJ/kg
hf= 1344 //kJ/kg
hg= 1404.9 //kJ/kg
//CALCULATIONS
v= vf+x*(vg-vf)
u= uf+x*ug
h= hf+x*hg
//RESULTS
printf ('volume = %.5f m^3/kg',v)
printf ('\n internal energy = %.1f kJ/kg',u)
printf ('\n enthalpy = %.1f kJ/kg',h)