program code for the otto cycle simulator
Objective: Aim: To write a program code for the otto cycle simulator . Program code: import mathimport matplotlib.pyplot as plt #inputsp1=101325t1=500gamma=1.4t3=2300 #Geometric parameters Bore =0.1stroke = 0.1con_rod=0.15cr=12 #volume Computationv_s = (math.pi/4)*pow(Bore,2)*strokev_c = v_s/(cr-1)v1= v_c…