summaryrefslogtreecommitdiff
path: root/3685/CH19/EX19.9
diff options
context:
space:
mode:
Diffstat (limited to '3685/CH19/EX19.9')
-rw-r--r--3685/CH19/EX19.9/Ex19_9.sce19
-rw-r--r--3685/CH19/EX19.9/Ex19_9.txt5
2 files changed, 24 insertions, 0 deletions
diff --git a/3685/CH19/EX19.9/Ex19_9.sce b/3685/CH19/EX19.9/Ex19_9.sce
new file mode 100644
index 000000000..af7e86b49
--- /dev/null
+++ b/3685/CH19/EX19.9/Ex19_9.sce
@@ -0,0 +1,19 @@
+clc
+// Given that
+p1 = 1 // Pressure in bar
+T1 = 300 // Temperature in K
+p4 = 9// Compressed pressure in bar
+n = 1.3 // Polytropic index
+R = 0.287 // Gas constant in kJ/kgK
+cp = 1.042 // Heat capapcity in kJ/kgK
+printf("\n Example 19.9\n")
+p2 = sqrt(p1*p4)
+T2 =T1*((p2/p1)^((n-1)/n))
+Wc = (2*n/(n-1))*R*1*(T2-T1)
+Wc_ = Wc/2
+Q = 1*cp*(T2-T1)
+Q_ = cp*(T1-T2)+Wc_
+H = Q+2*Q_
+printf("\n Compressor work = %f kJ/kg,\n Total heat transfer to the surrounding = %f kJ/kg",Wc_,H)
+//The answers given in the book contain calculation error
+
diff --git a/3685/CH19/EX19.9/Ex19_9.txt b/3685/CH19/EX19.9/Ex19_9.txt
new file mode 100644
index 000000000..1503053e4
--- /dev/null
+++ b/3685/CH19/EX19.9/Ex19_9.txt
@@ -0,0 +1,5 @@
+
+ Example 19.9
+
+ Compressor work = 107.662023 kJ/kg,
+ Total heat transfer to the surrounding = 125.119950 kJ/kg \ No newline at end of file