summaryrefslogtreecommitdiff
path: root/647/CH5/EX5.19/Example5_19.sce
blob: 4dec7015d3cfb8a912db66382ac0f7ff5eed2a3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
clear;
clc;

// Example: 5.19
// Page: 172

printf("Example: 5.19 - Page: 172\n\n");

// Solution

//*****Data*****//
Cp = 21;// [J/kmol]
T1 = 300;// [K]
T2 = 500;// [K]
S1 = 150;// [Entropy at T1, J/kmol]
//*************//

// This is a constant Entropy process. Therefore:
deltaS = Cp*log(T2/T1);// [J/kmol]
S2 = S1 + deltaS;// [J/kmol]
printf("Entropy at 500 K is %.2f J/kmol",S2);