summaryrefslogtreecommitdiff
path: root/443/CH3/EX3.20
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /443/CH3/EX3.20
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 '443/CH3/EX3.20')
-rwxr-xr-x443/CH3/EX3.20/3_20.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/443/CH3/EX3.20/3_20.sce b/443/CH3/EX3.20/3_20.sce
new file mode 100755
index 000000000..9f70435c4
--- /dev/null
+++ b/443/CH3/EX3.20/3_20.sce
@@ -0,0 +1,14 @@
+pathname=get_absolute_file_path('3_20.sce')
+filename=pathname+filesep()+'3_20_data.sci'
+exec(filename)
+//Pressure at the end of compression stroke(in N/m^2)
+p2=r^y*p1*10^5
+//Pressure at start of expansion stroke(in N/m^2)
+p3=p2
+//Cutoff ratio
+pm*(r-1)=p3*(rc-1)+((p3*rc-(p3/r^y)*rc^1.4)/(y-1))-((p3-(p3/r^y)*r)/(y-1))
+//Air standard efficiency
+n=1-(1/(y*r^(y-1))*(((rc^y)-1)/(rc-1)))
+printf("\n\nRESULTS\n\n")
+printf("\nCutoff ratio:%f\n",rc)
+printf("\nAir standard efficiency:%f\n",n*100) \ No newline at end of file