summaryrefslogtreecommitdiff
path: root/3685/CH7/EX7.9/Ex7_9.sce
diff options
context:
space:
mode:
Diffstat (limited to '3685/CH7/EX7.9/Ex7_9.sce')
-rw-r--r--3685/CH7/EX7.9/Ex7_9.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/3685/CH7/EX7.9/Ex7_9.sce b/3685/CH7/EX7.9/Ex7_9.sce
new file mode 100644
index 000000000..24d74cd43
--- /dev/null
+++ b/3685/CH7/EX7.9/Ex7_9.sce
@@ -0,0 +1,19 @@
+clc
+T1 = 300 // Inlet temperature of air in K
+T2 = 330 // Exit temperature of first air stream in K
+T3 = 270 // Exit temperature of second air stream in K
+P1 = 4 // Pressure of inlet air stream in bar
+P2 =1 // Pressure of first exit air stream in bar
+P3 =1 // Pressure of second exit air stream in bar
+cp = 1.0005 // Specific heat capacity of air in kJ/kgK
+R = 0.287 // Gas constant
+
+printf("\n Example 7.9")
+S21 = cp*log(T2/T1)-R*log(P2/P1) // Entropy generation
+S31 = cp*log(T3/T1)-R*log(P3/P1) // Entropy generation
+Sgen = 1*S21 + 1*S31 // Total entropy generation
+printf("\n The entropy generated during the process is %f kW/K",Sgen)
+//The answers vary due to round off error
+
+printf("\n As the entropy generated is positive so such device is possible")
+