Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Matlab question please answer this using matlab 1. [10 marks] An engineer wants

ID: 3606051 • Letter: M

Question

Matlab question please answer this using matlab

1. [10 marks] An engineer wants to work out how much fuel a 4-cylinder internal combustion engine uses per hour, as a function of the speed of the engine in revolutions per minute and the dimensions of the cylinders in centimetres. An engine cylinder of radius r can be modelled as a perfect cylinder of height, h, thus each cylinder has a maximum volume (when the piston is at the bottom of its stroke) of The volume of fuel f (in litres) used per revolution in practice is based on the fuel-air ratio and can be simply modelled using a constant factor, C, multiplied by the maximum cylinder volume, v, (in litres) as follows In answering this question, assume a fuel-air ratio constant of C 0.0001 (a) 2 marks Write a MATLAB function cylinder vol(r,h) that calculates and returns the volume (in litres) of the engine cylinders of height h and radius r in centimetres). Keep in mind that 1 litre 1000cm

Explanation / Answer

a)

v = 3.14 * r * r * h;

end

b)

function f = fuel_per_revolution(v)

C = 0.0001 ;

f = C * v;

end

c)

function fuel = litres_per_hour(rpm , r , h)

volume = cylinder_vol(r, h); % volume of one cylinder

fl = fuel_per_revolution(volume); % fuel for one cylinder for one revolution

revolutionInHour = rpm * 60; % In one minute 'rpm' revolutions so in 60 min its 'rpm * 60'

fuel = 4 * revolutionInHour   * fl; % 4 coz there are 4 cylinders,

end