Code covered by the BSD License  

Highlights from
Spark Ignition Engine GUI

image thumbnail

Spark Ignition Engine GUI

by

 

01 Apr 2013 (Updated )

computer program for thermodynamic engine model for a spark ignition engine.

sz_valve(th,tho,thc,Dp,ds,lm)
% Valve opening closing
function A = sz_valve(th,tho,thc,Dp,ds,lm)
if th > thc
    A = 0;
else
end
Ap = 0.4 * 0.25 * pi * (Dp^2 - ds^2);
lift = 0.5 * lm * (1 - cos(2*pi*(th-tho)/(thc-tho)));
Av = 0.4 * pi * Dp * lift;
if Av < Ap
    A = Av;
else
    A = Ap;
end
end

Contact us