summaryrefslogtreecommitdiff
path: root/479/CH4/EX4.2/Example_4_2.sce
blob: 013071aa17d399a9771ada2e9a9016137e4d5d1b (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
//Chemical Engineering Thermodynamics
//Chapter 4
//Second Law of Thermodynamics

//Example 4.2
clear;
clc;

//Given
T1 = 373;//Temperature of the saturated steam in K
T2 = 298;//Temperature of the saturated water in K
//To calculate the total change in entropy and hence determine the reversibility of the process

//del_H = del_Q+(V*del_P)
//del_H =del_Q; since it is a constant pressure process

//From steam table,
//enthalpy of saturated steam at 373K is
H1 = 6348.5;// in Kcal/Kg
//enthalpy of saturated liquid water at 373K is
H2 = 99.15;//in Kcal/Kg
Q = H2-H1;//heat rejected in Kcal/Kg
del_S1 = Q/T1;//change in entropy of the system in Kcal/Kg K
del_S2 = Q/T2;//change in entropy of the surronding in Kcal/Kg K
del_St = del_S1+del_S2;//total change in the entropy in Kcal/Kg K
if(del_St == 0)
    mprintf('Process is reversible');
else
    mprintf('Process is irreversible');
end
//end