Air Standard Cycle
Objective: clear allclose allclc % 1. P-V diagram% inputs gamma = 1.4t3 = 2300 % state variables p1= 101325t1 = 500 % engine parameters bore = 0.1;stroke = 0.1;con_rod = 0.15;cr = 12; % calculating the swept volume and clearance volume v_swept = (pi/4)*bore^2*stroke;v_clearance = v_swept/(cr-1); v1 = v_swept + v_clearancev2 = v_clearance…