diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2168/CH3/EX3.11 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2168/CH3/EX3.11')
-rwxr-xr-x | 2168/CH3/EX3.11/Chapter3_example11.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/2168/CH3/EX3.11/Chapter3_example11.sce b/2168/CH3/EX3.11/Chapter3_example11.sce new file mode 100755 index 000000000..4b1557a68 --- /dev/null +++ b/2168/CH3/EX3.11/Chapter3_example11.sce @@ -0,0 +1,17 @@ +clc
+clear
+d=0.25//Diameter of the cylinder in m
+L=0.35//Stroke in m
+Cv=1500//Clearance volume in c.c
+s=5//cut off ratio takes place at 5 percent of stroke
+a=1.4//Explosion ratio
+g=1.4//Ratio of specific heats for air
+
+//Calculations
+Vs=(3.14/4)*d^2*L//Stroke volume in m^3
+r=(Vs*10^6+Cv)/Cv//Compression ratio
+k=(Cv+((s/100)*Vs*10^6))/Cv//Cut off ratio
+na=(1-((1/(r^(g-1)))*((a*k^g-1)/((a-1)+a*g*(k-1)))))*100//Air standard efficiency in percent
+
+//Output
+printf('The air standard efficiency of the engine is %3.1f percent',na)
|