Python Code for Otto Cycle
Objective: \'\'\' Simulating Otto cycle By Devdatta \'\'\' import math import matplotlib.pyplot as plt import numpy as np def engine_kinematics(bore, stroke, conn_rod, cr, start_crank, end_crank): # Geomtric Paramters a = stroke/2 R = conn_rod/a # Volume Computation v_s = (math.pi/4)*pow(bore,2)*stroke v_c = v_s/(cr-1) sc = math.radians(start_crank)…