Otto Cycle - PV diagram Visualizer & Calculation for efficiency
Objective: % Main program To draw PV diagram for calculation of otto cycle efficiency clear variables close all clc %inputs gamma = 1.4; t3 = 2000; % Engine geometric parameters bore = 0.1; stroke = 0.1; con_rod = 0.15; cr = 9; a = stroke/2; R = con_rod/a; % state variables at point 1 p1 = 101325; t1 = 500; % calculating the swept…