PV diagram of otto cycle with its efficiency
Objective: clear all close all clc %state variables p1 = 10000 t1=313 gama=1.4 t3=2150 %engine parameters bore=0.12; stroke=0.2; con_rod=0.7; cr=6; %calculating clerence volume and stroke volume swept_vol=(3.14/4)*bore*bore*stroke clearence_vol=(swept_vol/(cr-1)) v1=clearence_vol+swept_vol v2=clearence_vol…