summaryrefslogtreecommitdiff
path: root/1775/CH2/EX2.2
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.2
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.2')
-rwxr-xr-x1775/CH2/EX2.2/Chapter2_Example2.sce30
1 files changed, 30 insertions, 0 deletions
diff --git a/1775/CH2/EX2.2/Chapter2_Example2.sce b/1775/CH2/EX2.2/Chapter2_Example2.sce
new file mode 100755
index 000000000..f85fd4b7d
--- /dev/null
+++ b/1775/CH2/EX2.2/Chapter2_Example2.sce
@@ -0,0 +1,30 @@
+//Chapter-2, Illustration 2, Page 57
+//Title: Gas Power Cycles
+//=============================================================================
+clc
+clear
+
+//INPUT DATA
+d=80;//Bore in mm
+L=85;//Stroke in mm
+Vc=0.06;//Clearance volume in litre
+n=0.22;//Actual thermal efficiency
+y=1.4;//Ratio of specific heats
+
+//CALCULATIONS
+Vs=(3.147/4)*(d^2)*L;//Stroke volume in mm^3
+Vt=Vs+(Vc*(10^6));//Total volume in mm^3
+rv=Vt/(Vc*(10^6));//Compression ratio
+ni=(1-(1/(rv^(y-1))));//Ideal thermal efficiency
+nr=(n/ni)*100;//Relative efficiency
+
+//OUTPUT
+mprintf('Relative efficiency of the engine is %3.1f percent',nr)
+
+
+
+
+
+
+
+//==============================END OF PROGRAM=================================