summaryrefslogtreecommitdiff
path: root/1775/CH2/EX2.13
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1775/CH2/EX2.13
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 '1775/CH2/EX2.13')
-rwxr-xr-x1775/CH2/EX2.13/Chapter2_Example13.sce30
1 files changed, 30 insertions, 0 deletions
diff --git a/1775/CH2/EX2.13/Chapter2_Example13.sce b/1775/CH2/EX2.13/Chapter2_Example13.sce
new file mode 100755
index 000000000..dcaf50df2
--- /dev/null
+++ b/1775/CH2/EX2.13/Chapter2_Example13.sce
@@ -0,0 +1,30 @@
+//Chapter-2, Illustration 13, Page 69
+//Title: Gas Power Cycles
+//=============================================================================
+clc
+clear
+
+//INPUT DATA
+d=0.2;//Bore in m
+L=0.5;//Stroke in m
+c=0.06;//Cut-off percentage
+y=1.4;//Ratio of specific heats
+rv=15;//Compression ratio
+rp=1.4;//Pressure ratio
+
+//CALCULATIONS
+Vs=(3.147/4)*(d^2)*L;//Stroke volume in m^3
+DV=c*Vs;//Difference in volumes at points 4 and 3
+V3=Vs/(rv-1);//Specific volume at point 3 in m^3
+V4=V3+DV;//Specific volume at point 4 in m^3
+rc=V4/V3;//Cut-off ratio
+ntd=(1-((rp*(rc^y)-1)/((rv^(y-1)*((rp-1)+(y*rp*(rc-1)))))))*100;//Ideal efficiency
+
+//OUTPUT
+mprintf('Ideal efficiency of the engine is %3.1f percent',ntd)
+
+
+
+
+
+//==============================END OF PROGRAM=================================