summaryrefslogtreecommitdiff
path: root/2471/CH2/EX2.6/Ex2_6.sce
blob: 4af45b3fc60e33a427f80c1a343b050104b6bafb (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
clear ;
clc;
// Example 2.6
printf('Example 2.6\n\n');
printf('Page No. 52\n\n');

// given
P1= 50;// Dry saturated steam pressure in bar
P2= 0.5;// condenser  pressure in bar

//By using the steam tables saturation temperature is obtained at given pressures
T1= 537//The saturation temperatue in K at 50 bar
T2= 306//The saturation temperatue in K at 0.5 bar

// For Carnot Cycle
n=(1-(T2/T1))*100;
printf('Efficiency percentage of Carnot Cycle is %3.0f \n',n)


// For Rankine Cycle
// By usins steam tables, the total heat and the sensibles heat  and other remaining parameter has been calculated
h1= 2794*10^3;//the total heat in dry steam at 50 bar in J/kg
d= 0.655;// dryness fraction 
h2= 1725*10^3;// the entropy at state 2 in J/kg
h3= 138*10^3;// the sensible heat at 0.5 bar in J/kg
Vf= 1.03*10^-3;// volume of fluid im m^3,calculated from steam table
W= (Vf*(P1-P2))*10^5;// pump work in J/kg
E=(((h1-h2)-(W))/((h1-h3)-(W)))*100;
printf('Efficiency percentage of Rankine Cycle is %3.0f \n',E)