OTTO CYCLE
Objective: % otto cycle with points at state alone clear allclose allclc%constants gamma= 1.4pi= 3.14 % input variable bore= 0.1;stroke= 0.2;cr= 12;con_rod= 4 %state propertiesp1 = 101325 %N/m^2t1= 300 %Kt3= 2000 %K% calculationvs= ((pi/4)*(stroke )*(bore^2))vc= vs/(cr-1)v1= vs+vcv2= vc % 1-2 state variable calculations p2 = (v1/v2)^gamma…