PV diagram of an otto cycle
Objective: 1. % Inputs gamma = 1.4; t3 = 2300; % state variable p1 = 101325; t1 = 500; % engine geometric parameters bore = 0.1; stroke = 0.1; con_rod = 0.15; cr = 12; % swept volume and clearance volume v_swept = (pi/4)* bore^2 * stroke; v_clear = v_swept/(cr-1); v1 = v_swept + v_clear; v2 = v_clear; % state variables at point2…