summaryrefslogtreecommitdiff
path: root/2507/CH10/EX10.12/Ex10_12.sce
blob: cbe7ab638d885ce8e43ae3727b6c4f06bbbc5ae3 (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
clc
clear
printf("Example 10.12 | Page number 361 \n\n");
//Find the work and heat interactions during the expansion process
//Given data
m =0.1 //kg
p1 = 10 //bar 
p2 = 1 //bar
//Solution
//From saturated steam table
v1 = 0.1944 //m^3/kg
v2 = (p1/p2)^(1/1.3)*v1 //m^3/kg
W = m*(p1*v1-p2*v2)*100/(1.3-1) //kJ
printf("Work during expansion process = %.2f kJ\n",W)
h1 = 2778.1 //kJ/kg
u1 = (h1 - p1*v1*100) //kJ/kg

vf = 0.001043 //m^3/kg
vg = 1.694 //m^3/kg
x2 = (v2-vf)/(vg-vf) //Dryness fraction
hf = 417.33 //kJ/kg
hg = 2675.5 //kJ/kg
h2 = (1-x2)*hf + x2*hg //kJ/kg
u2 = h2 - p2*v2*100 //kJ/kg
printf("Heat rejected from steam = %.2f kJ",W+m*(u2-u1))