PV diagram
Objective: clear all close all clc %Gas Propeties Gamma = 1.4; %state variables P1 = 101325; T1 = 300; T3 = 2000; %Engine parameters d_bore = 0.1; stroke = 0.1; con_rod = 0.15; cr = 12; %Swept and clearance Volume computation v_swept = (pi/4)*((d_bore)^2)*stroke; v_clerance = v_swept/(cr-1); %trace of P-V Cycle. v1 = v_swept + v_clerance;…