summaryrefslogtreecommitdiff
path: root/2063/CH9/EX9.4/9_4.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.4/9_4.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.4/9_4.sce')
-rwxr-xr-x2063/CH9/EX9.4/9_4.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/2063/CH9/EX9.4/9_4.sce b/2063/CH9/EX9.4/9_4.sce
new file mode 100755
index 000000000..55eaf5ae9
--- /dev/null
+++ b/2063/CH9/EX9.4/9_4.sce
@@ -0,0 +1,19 @@
+clc
+clear
+//Input data
+D=0.25;//Diameter of the cylinder of a single acting air compressor in m
+L=0.4;//Length of the stroke in m
+P1=1;//Initial Pressure of the compressor in bar
+T1=303;//Initial temperature of the compressor in K
+P2=6;//Pressure during running in bar
+N=250;//Operating speed of the compressor in rpm
+R=287;//Gas constant in J/kg K
+
+//Calculations
+V1=(3.14*D^2*L)/4;//Volume of air before compression in m^3
+m=(P1*10^5*V1)/(R*T1);//Mass of air delivered by the compressor per stroke in kg/stroke
+Nw=N;//Since single acting cylinder number of working stroke is equal to Operating speed of the compressor in rpm
+ma=m*Nw;//Mass of air delivered per minute in kg/min
+
+//Output
+printf('Mass of air delivered per minute is %3.2f kg/min',ma)