blob: 824b0f13146d144d3a44c3c0598e071e78458981 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
clc;clear;
//Example 7.18
//given data
P1=7;
T1=450;
P2=3;
//from steam tables
//at P1 and T1
h1=3288.3;
s1=6.6353;
//at P2
h2=h1;
s2=7.0046;
//calculations
// Sin - Sout + Sgen = dSsystem/dt
Sgen=s2-s1;
disp(Sgen,'the entropy generated in kJ/kg-K')
|