summaryrefslogtreecommitdiff
path: root/2024/CH6/EX6.5/6_5.sce
diff options
context:
space:
mode:
Diffstat (limited to '2024/CH6/EX6.5/6_5.sce')
-rwxr-xr-x2024/CH6/EX6.5/6_5.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/2024/CH6/EX6.5/6_5.sce b/2024/CH6/EX6.5/6_5.sce
new file mode 100755
index 000000000..97cce0617
--- /dev/null
+++ b/2024/CH6/EX6.5/6_5.sce
@@ -0,0 +1,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)