summaryrefslogtreecommitdiff
path: root/3825/CH6/EX6.1/Ex6_1.sce
blob: f9f2ed825abad6bd7c0f81bfa6b210b89b5017df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
clc
mi=1 //in kg/second
me=mi
m=mi
Q=-10 //in kJ/s
hi=3276.6 //in kJ/kg
vi=80 //in metre/second
Zi=10 //in metres
hg=2584.8
hf=191.83
Xe=0.95
he=(hg*Xe)+(1-Xe)*hf
mprintf("he=%fkJ/kg\n",he)//ans vary due to roundoff error
g=9.81 
Ze=3
ve=150 //in metre/second
Ws=(Q*10^3)-((((he*10^3)+(ve^2/2)+(g*Ze))-((hi*10^3)+(vi^2/2)+(g*Zi)))*m)//from the first law of thermodynamics
mprintf("Ws=%fkW\n",Ws/1000)//ans vary due to roundoff error