summaryrefslogtreecommitdiff
path: root/2015/CH5/EX5.2/5_2.sce
blob: 8faf72704292dbc994b3a59148e5db927e2d34a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clc
//initialisation of variables
hg=2803.4 //kj/kg
c=300 //m/s
sg=6.1253 //kj/kgk
h2=2090.0 //kj/kg
//CALCULATIONS
h0=hg+((c)^2)/2000
c2=44.72*(h0-h2)^0.5
//RESULTS
printf('total enthalpy is %2fkj/kg',h0) //textbook answer is wrong
printf('\nfinal stream is %2fm/s',c2) //textbook answer is wrong