summaryrefslogtreecommitdiff
path: root/2063/CH9/EX9.9/9_9.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2063/CH9/EX9.9/9_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 '2063/CH9/EX9.9/9_9.sce')
-rwxr-xr-x2063/CH9/EX9.9/9_9.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/2063/CH9/EX9.9/9_9.sce b/2063/CH9/EX9.9/9_9.sce
new file mode 100755
index 000000000..05a918e96
--- /dev/null
+++ b/2063/CH9/EX9.9/9_9.sce
@@ -0,0 +1,15 @@
+clc
+clear
+//Input data
+m=2;//Mass of air delivered per second in kg
+P1=1;//Initial pressure of a single stage compressor in bar
+T1=293;//Initial temperature in K
+P2=7;//Final pressure in bar
+n=1.4;//Polytropic index
+R=287;//Gas constant in J/kg K
+
+//Calculations
+W=((n/(n-1))*m*R*T1*(((P2/P1)^((n-1)/n))-1))/(60*1000);//Work done by compressor in kW
+
+//Output
+printf('Power required to compress and deliver 2kg of air per minute is %3.3f kW',W)