summaryrefslogtreecommitdiff
path: root/1442/CH4/EX4.7/4_7.sce
blob: 9140ab1f849285d355092c911ef083a9db5775a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
clc
//initialisation of variables
v= 0.15 //m^3/kg
v1= 0.13857 //m^3/kg
v2= 0.1512 //m^3/kg
v3= 0.050 //m^3//kg
vf= 0.001177 //m^3/kg
vg= 0.09963 //m^3/kg
uf= 906.44 //kJ/kg
ufg= 1693.8 //kJ/kg
//CALCULATIONS
a1= (v-v1)/(v2-v1)
a2= 1-a1
x= (v3-vf)/(vg-vf)
u= uf+x*ufg
//RESULTS
printf ('a2 = %.3f ',a2)
printf ('\n internal energy = %.1f kJ/kg',u)