summaryrefslogtreecommitdiff
path: root/2063/CH7/EX7.8
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2063/CH7/EX7.8
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 '2063/CH7/EX7.8')
-rwxr-xr-x2063/CH7/EX7.8/7_8.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/2063/CH7/EX7.8/7_8.sce b/2063/CH7/EX7.8/7_8.sce
new file mode 100755
index 000000000..3ab4c0c80
--- /dev/null
+++ b/2063/CH7/EX7.8/7_8.sce
@@ -0,0 +1,16 @@
+clc
+clear
+//Input data
+P=60;//Power developed by oil engine in kW
+M=6.5;//Mean effective pressure in kgf/cm^2
+N=85;//Number of explosions per minute
+r=1.75;//Ratio of stroke to bore diameter
+nm=0.8;//Mechanical efficiency
+
+//Calculations
+I=P/nm;//Indicated horse power
+d=((I*100*4*4500)/(M*r*3.14*N))^(1/3);//Bore diameter in cm
+l=r*d;//Stroke length in cm
+
+//Output
+printf('(a)Diameter of the bore is %3.2f cm \n (b)Stroke length of the piston is %3.2f cm',d,l)