P V DIAGRAM VISUALIZER FOR AIR STANDARD CYCLE
Objective: close all clear all clc %Inputs gamma = 1.4; t3 = 2300; p1 = 101325; t1 = 500; bore = 0.1; stroke = 0.1; con_rod = 0.15; cr = 15; %Calculations v_swept = (pi/4)*bore^2*stroke; v_clearance = v_swept/(cr-1); %Stage 1 to 2 v1 = v_swept + v_clearance; v2 = v_clearance; %Stage 2 to 3 p2 = p1*cr^gamma; t2 = p2*v2*t1/(p1*v1);…