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

// Example: 5.10
// Page: 164

printf("Example: 5.10 - Page: 164\n\n");

// Solution

//*****Data*****//
n = 5;// [moles]
T1 = 300;// [K]
T2 = 400;// [K]
P1 = 3;// [bars]
P2 = 12;// [bars]
Cp = 26.73;// [J/mol K]
R = 8.314;// [K/mol K]
//*************//

deltaS = n*((Cp*log(T2/T1)) + (R*log(P1/P2)));// [kJ/K]
printf("Change in Entropy is %f kJ/K",deltaS);