PV diagram Visualizer Otto Cycle along with thermal efficiency
Objective: %PV DIAGRAM FOR OTTO CYCLE AND OUTPUT THERMAL EFFICIENCY clear allclose allclc % Otto Cycle % Inputsgamma = 1.4;T3 = 2300;%State VariablesP1 = 101325;T1 = 300; %Engine geometry parametersbore = 0.1;stroke = 0.1;con_rod = 0.15;cr = 12; v_swept = (pi/4)*bore^2*stroke;v_clearance = v_swept/(cr - 1); v1 = v_swept + v_clearance;v2…