write code that can solve an otto cycle and make plots for it and finds thermal efficiency
Objective: close all clear all clc %inputs given pa k p1=101325; t1=500; gamma=1.4; t3=2300; %engine geometric parameters bore=0.1; stroke=0.1; cr=12; con_rod=0.15; %calculating the swept and clearance volume volumeswept=(pi/4)*bore^2*stroke volumeclearance=volumeswept/(cr-1) v1=volumeswept+volumeclearance; v2=volumeclearance; %state…