summaryrefslogtreecommitdiff
path: root/1226/CH17/EX17.1/EX17_1.sce
blob: 730d921f51cbcc9f153456cdbc5a9e40e0cc59ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clc;funcprot(0);//EXAMPLE 17.1
// Initialisation of Variables
Pmi=6;.....................//Mean effective pressure in bar
N=1000;....................//Engine rpm
d=0.11;.....................//Diameter of piston in m
l=0.14;.....................//Stroke length in m
n=1;........................//No of cylinders
k=1;........................//k=1 for two stroke engine
//Calculations
V=l*(%pi/4)*d*d;.............//Volume of the cylinder in m^3
IP=(n*Pmi*V*k*10*N)/6;.........//Indicated Power developed in kW
disp(IP,"Indicated power developed (in kW):")