program on Otto cycle engine kinematics and its thermal efficiency
Objective: %otto cycle %engine geometric parametersbore = 0.1;stroke = 0.1;con_rod = 0.15;cr = 12; %Calculating the swept volume and clearance volumev_swept = (pi/4)*bore^2*stroke;v_clearance = v_swept/(cr-1); v1= v_swept + v_clearancev2=v_clearance %state variables at state point 2%p2v2^gamma=p1v1^gamma%p2=p1(v1/v2)^gamma=p1*cr^gamma…