summaryrefslogtreecommitdiff
path: root/779/CH18/EX18.9/18_9.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /779/CH18/EX18.9/18_9.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '779/CH18/EX18.9/18_9.sce')
-rwxr-xr-x779/CH18/EX18.9/18_9.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/779/CH18/EX18.9/18_9.sce b/779/CH18/EX18.9/18_9.sce
new file mode 100755
index 000000000..4ac12f61f
--- /dev/null
+++ b/779/CH18/EX18.9/18_9.sce
@@ -0,0 +1,10 @@
+T1 = 283; P21 = 2.5; // P2/P1
+P32 = 2.1; // P3/P2
+ns = 0.85; ma = 5; cp = 1.005;
+T2s = T1*(P21)^((g-1)/g);
+T2 = T1 + (T2s-T1)/ns;
+T3 = T2-50;
+T4s = T3*(P32)^((g-1)/g);
+T4 = T3 + (T4s-T3)/ns;
+P = ma*cp*((T2-T1)+(T4-T3));
+disp("kW",P,"Total compressor power is") \ No newline at end of file