diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3685/CH19/EX19.9/Ex19_9.sce | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '3685/CH19/EX19.9/Ex19_9.sce')
-rw-r--r-- | 3685/CH19/EX19.9/Ex19_9.sce | 19 |
1 files changed, 19 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
+
|