otto cycle
Objective: clear all close all clc %input p1=101325 t1=500 t3=2300 bore=0.1 stroke=0.1 con_rod=0.2 cr=8 a=stroke/2 r=con_rod/a %calculating swept volume and clearance volume v_swept=(pi*bore^2)/4*stroke v_c=v_swept/(cr-1) %finding v,p,t and point 1,2,3,4 v1=v_swept+v_c v2=v_c p2=p1*cr^1.4 t2=p2*v2*t1/(p1*v1) con_c=p1*v1^1.4; %to…