summaryrefslogtreecommitdiff
path: root/1226/CH20/EX20.36/EX20_36.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1226/CH20/EX20.36/EX20_36.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 '1226/CH20/EX20.36/EX20_36.sce')
-rwxr-xr-x1226/CH20/EX20.36/EX20_36.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/1226/CH20/EX20.36/EX20_36.sce b/1226/CH20/EX20.36/EX20_36.sce
new file mode 100755
index 000000000..a3e6ac7a8
--- /dev/null
+++ b/1226/CH20/EX20.36/EX20_36.sce
@@ -0,0 +1,11 @@
+clc;funcprot(0);//EXAMPLE 20.36
+// Initialisation of Variables
+v=0.08;.........//Volume of air compressed in m^3
+p1=1;..........//Intake pressure in bar
+p2=1.5;........//Pressure after compression in in bar
+ga=1.4;.........//Ratio of specific heats
+//Calculations
+wac=v*(p2-p1)*10^5;........//Actual work done in Nm
+wid=(ga/(ga-1))*p1*v*(10^5)*(((p2/p1)^((ga-1)/ga))-1);...........//Ideal work done per revolution in Nw
+etac=wid/wac;................//Compressor efficiency
+disp(etac*100,"Compressor efficiency in %:")