summaryrefslogtreecommitdiff
path: root/1226/CH17/EX17.4/EX17_4.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1226/CH17/EX17.4/EX17_4.sce
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 '1226/CH17/EX17.4/EX17_4.sce')
-rwxr-xr-x1226/CH17/EX17.4/EX17_4.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/1226/CH17/EX17.4/EX17_4.sce b/1226/CH17/EX17.4/EX17_4.sce
new file mode 100755
index 000000000..839f6f9b4
--- /dev/null
+++ b/1226/CH17/EX17.4/EX17_4.sce
@@ -0,0 +1,13 @@
+clc;funcprot(0);//EXAMPLE 17.4
+// Initialisation of Variables
+n=4;........................//No of cylinders
+k=0.5;......................//For four stroke engine
+Tb=160;.....................//Max brake torque in Nm
+N=3000;......................//Engine rpm
+Pm=9.6;....................//Brake mean effective pressure in bar
+//Calculations
+D=((2*%pi*N*Tb*6)/(60*1000*Pm*(%pi/4)*N*k*10))^(1/3);.....................//Bore of engine in m
+L=D;...................//Given that the stroke is equal to bore
+Disp=(%pi/4)*D*D*L;....................................//Displacement in m^3
+disp(D*1000,"Since it is given that the stroke is equal to bore, their value is (in mm): ")
+disp(Disp,"The engine displacement (in m^3):")