writing code for Air standard Cycle using python and plot P-V diagram
Objective: 1 otto cycle \"\"\"otto cycle \"\"\"import mathimport matplotlib.pyplot as plt def engine_kinematics(bore, stroke, con_rod, cr, start_crank, end_crank): # Geometric parametersa = stroke/2R = con_rod/a #volume parametersv_s = math.pi*(1/4)*pow(bore,2)*stroke #swept volume is…