P-V Diagram and thermal efficiency of an Air Standard Otto Cycle
Objective: %defining the function to calculate volume trace function [v] = engine_kinematics(bore,stroke,con_rod,cr,start_crank,end_crank) a= stroke/2;R = con_rod/a;v_swept = (pi/4)*bore^2*stroke;v_clearance = v_swept/(cr-1);theta = linspace(start_crank,end_crank,100); v = (1+0.5*(cr-1).*(R+1-cosd(theta)-(R^2 -(sind(theta)).^2).^0.5)).*v_clearance;end…