summaryrefslogtreecommitdiff
path: root/2063/CH7/EX7.18
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.18
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.18')
-rwxr-xr-x2063/CH7/EX7.18/7_18.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/2063/CH7/EX7.18/7_18.sce b/2063/CH7/EX7.18/7_18.sce
new file mode 100755
index 000000000..c07cd7ccf
--- /dev/null
+++ b/2063/CH7/EX7.18/7_18.sce
@@ -0,0 +1,19 @@
+clc
+clear
+//Input data
+A=450;//Area of indicator diagram in mm^2
+l=60;//Length of indicator diagram in mm
+s=1.1;//Spring number in bar/mm
+d=0.1;//Diameter of piston in m
+L=0.13;//Length of stroke in m
+N=400;//Operating speed of the engine in rpm
+
+//Calculations
+Av=A/l;//Average height of indicator diagram in mm
+pm=Av*s;//Mean effective pressure in bar
+np=N/2;//Number of power strokes per minute for a four stroke diesel engine
+Ar=(3.14*d^2)/4;//Area of the piston in m^2
+I=(pm*10^5*L*Ar*np)/(1000*60);//Indicated power in kW
+
+//Output
+printf('(a)The indicated mean effective pressure is %3.2f bar\n (b)Indicated power is %3.2f kW',pm,I)