Air cycle
Objective: # otto cycle import math import matplotlib.pyplot as plt def air_cycle(bore,stroke,con_rod,cr,start_crank,end_crank): #geometric parameters a=stroke/2 R=con_rod/a #volume parametrs V_s= math.pi*(1/4)*pow(bore,2)*stroke V_c = V_s/(cr-1) sc = math.radians(start_crank) ec = math.radians(end_crank) num = 50 detheta = (ec-sc)/(num-1)…