Otto Cycle
Objective: % Otto Cyle clear all close all clc % Inputs % Constant gamma = 1.4; % State Conditions p1 = 101325; t1 = 500; t3 = 2300; % Engine Geometric Parameters bore = 0.1; stroke = 0.1; con_rod = 0.15; cr = 12; v_swept = (pi/4)*bore^2*stroke; v_clearance = v_swept/(cr-1); % State 1: v1 = v_swept + v_clearance; %…