Otto cycle PV diagram and thermal efficiency of the engine
Objective: close all clear all clc %inputs gamma = 1.4 T3 = 2300 %state variables P1 = 101325 T1 = 500 %engine geomentric parameters bore = .1; stroke =.1; con_rod = .15; cr = 12; %claculation of the swept volume and clearance volume swept_volume = (pi/4)*bore^2*stroke; clearance_volume = swept_volume/ (cr-1); V1 = clearance_volume…