summaryrefslogtreecommitdiff
path: root/32/CH7/EX7.01/7_01.sce
blob: efaa3e37a1e3c97d10f36a5f1d8bc95ccec2cd34 (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
//pathname=get_absolute_file_path('7.01.sce')
//filename=pathname+filesep()+'7.01-data.sci'
//exec(filename)
//Pressure of entering steam(in MPa):
p1=1.6
//Temperature of entering steam(in K):
T1=300+273
//Pressure of leaving steam(in MPa):
p2=0.1
//Temperature of leaving steam(in K):
T2=150+273
//Velocity of the leaving steam(in m/s):
c2=150
//Surrounding temperature(in K):
T0=15+273
//Mass flow rate(in kg/s):
m=2.5
//From steam tables:
h1=3034.8 //kJ/kg
s1=6.8844 //kJ/kg.K
h2=2776.4 //kJ/kg
s2=7.6134 //kJ/kg.K
//Maxiimum work possible(in kW):
Wmax=(h1-h2)-T0*(s1-s2)-(c2^2)/2*10^(-3)
printf("\nRESULT")
printf("\nMaximum work possible = %f kW",m*Wmax)