Otto Cycle - PV Diagram Efficiency
Objective: % Otto Cycle clear all close all clc % Inputs gamma = 1.4; t3 = 2300; % State Variables p1 = 101325; t1 = 500; % Engine Geometric 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…