summaryrefslogtreecommitdiff
path: root/2024/CH6/EX6.5/6_5.sce
blob: 97cce0617339804376f76eb78a3e2c07c34fd9eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clc
//Initialization of variables
Qrev=81.4 //Btu/lbm
T1=355.21 //F
T2=500 //F
cp=0.562
//calculations
cp=Qrev/(T2-T1)
ds=cp*(log((460+T2)/(460+T1)))
s1=1.5728
s2=s1+ds
//results
printf("Change in entropy = %.4f Btu/lbm F",ds)
printf("\n Final entropy = %.4f Btu/lbm F",s2)