summaryrefslogtreecommitdiff
path: root/3733/CH22/EX22.19/Ex22_19.sce
blob: 8c800e64a13206f69c399880e8e6b11e93607f90 (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
27
28
29
30
31
32
// Example 22_19
clc;funcprot(0);
//Given data
P=100;// MW
p_2=80;// bar
p_3=7;// bar
p_5=0.05;// bar
T_4=350;// °C

// Calculation
// From h-s chart:
h_2=2990;// kJ/kg
h_3=2350;// kJ/kg
h_4=3170;// kJ/kg
h_5=2180;// kJ/kg
// From steam tables
h_f6=138;// kJ/kg
h_f7=697;// kJ/kg
function[X]=mass(y)
    X(1)= (y(1)*(h_3-h_f7))-((1-y(1))*(h_f7-h_f6));
endfunction
y=[0.1];
z=fsolve(y,mass);
m=z(1);
m_p=m*100;// Percentage of bled steam in %
W=(h_2-h_3)+((1-m)*(h_4-h_5));// kJ/kg
Q_s=(h_2-h_f7)+((1-m)*(h_4-h_3));// kJ/kg
n=(W/Q_s)*100;// The efficiency of the power plant in %
m_b=((P*10^3)/((h_2-h_3)+((1-m)*(h_4-h_5))));// tons/hr
printf('\nThe percentage of bled steam=%0.1f percentage \nThe thermal efficiency of the cycle=%0.0f percentage \nBoiler generating rate=%0.0f tons/hr',m_p,n,m_b);
// The answer provided in the textbook is wrong