Otto Cycle Using Python
Objective: # Otto Cycle Simulator By Harsh Chimmani import math import matplotlib.pyplot as plt def engine_kinematics(bore,stroke,can_rod,cr,start_angle,end_angle): #engine parameters a = stroke/2 R = con_rod/a # volume computation v_s = (math.pi/4)*pow(bore,2)*stroke v_c = v_s/(cr-1) sc = math.radians(start_angle) ec = math.radians(end_angle)…