All Courses
All Courses
Courses by Software
Courses by Semester
Courses by Domain
Tool-focused Courses
Machine learning
POPULAR COURSES
Success Stories
AIM: Write a programme for AIR STANDARD CYCLE OBJECTION: The Otto cycle is an air-standard cycle which approximates the processes in petrol or diesel engines. It is based on constant volume heat addition (combustion) and heat rejection processes, and isentropic compression and expansion. …
GAURAV
updated on 23 Jun 2020
AIM: Write a programme for AIR STANDARD CYCLE
OBJECTION: The Otto cycle is an air-standard cycle which approximates the processes in petrol or diesel engines. It is based on constant volume heat addition (combustion) and heat rejection processes, and isentropic compression and expansion.
BODY :
import math
import matplotlib.pyplot as plt
def engine_kinematics(bore,stroke,con_rod,cr,start_crank,end_crank):
a = stroke/2
R = con_rod/a
#volume parameters
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_values = 50
dtheta = (ec-sc)/(num_values-1)
V = []
for i in range(0,num_values):
theta = sc+i*dtheta
term1 = 0.5*(cr-1)
term2 = R+1-math.cos(theta)
term3 = pow(R,2)-pow(math.sin(theta),2)
term3 = pow(term3,0.5)
V.append((1+term1*(term2 - term3))*V_C)
return V
#inputs
p1 = 101325
t1 = 500
gamma = 1.4
t3 = 2300
# geometric parameter
bore = 0.1
stroke = 0.1
con_rod = 0.15
cr = 12
# volume computation
V_S = (math.pi/4)*pow(bore,2)*stroke
V_C = V_S/(cr-1)
V1 = V_C +V_S
#state point 2
V2 = V_C
#p2v2 ^gamma = p1v1^gamma
p2 = p1*pow(V1,gamma)/pow(V2,gamma)
#p2v2/t2 = p1v1/t1 !rhs = p1v1/t1 ! p2v2/t2 = rhs | t2 = p2v2/rhs
rhs = p1*V1/t1
t2 = p2*V2/rhs
V_compression = engine_kinematics(bore,stroke,con_rod,cr,180,0)
constant = p1*pow(V1,gamma)
P_compression = []
for v in V_compression:
P_compression.append(constant/pow(v,gamma))
#state point 3
V3 = V2
rhs = p2*V2/t2
p3 = rhs*t3/V3
V_expansion = engine_kinematics(bore,stroke,con_rod,cr,0,180)
constant = p3*pow(V3,gamma)
P_expansion = []
for v in V_expansion:
P_expansion.append(constant/pow(v,gamma))
#state point 4
V4 = V1
#p4v4^gamma = p3v3^gamma
p4 = p3*pow(V3,gamma)/pow(V4,gamma)
#p4v4/t4 = rhs
t4 = p4*V4/rhs
efficency = abs( 1-(1/pow(cr,(gamma-1)))*100)
print(efficiency)
plt.plot([V2,V3],[p2,p3])
plt.plot(V_compression,P_compression)
plt.plot(V_expansion,P_expansion)
plt.plot([V4,V1],[p4,p1])
plt.show()
STEPS TAKEN WRITE A PROGRAMME
PLOT
RESULT
CONCLUSION:
The combustion process is idealized by a constant-volume process (SI cycle), a constant-pressure process (CI cycle), or a combination of both (CI Dual cycle).
Exhaust blow down is approximated by a constant-volume process.
All processes are considered reversible.
Leave a comment
Thanks for choosing to leave a comment. Please keep in mind that all the comments are moderated as per our comment policy, and your email will not be published for privacy reasons. Please leave a personal & meaningful conversation.
Other comments...
Week 6 - Data analysis
1. AIM:- Write a programme read data from the file containing the engine's data and plot PV diagram. 2. BODY:- import matplotlib.pyplot as plt import numpy as np from numpy import trapz import time # Basic Initilization line_count =1 crank = [] volume = [] # FILE PARSING STARTS HERE try : open('engine_data.out') except…
28 Jun 2020 02:38 PM IST
Week 5 - Curve fitting
1. What does popt and pcov mean? ANS. " popt " is an array that stores the values of the coefficients that are being passed in a given function. " pcov " is a two-dimensional array that stores the values of the estimated covariance of popt i.e the coefficients. 2. What does np.array(temperature) do?…
28 Jun 2020 01:27 PM IST
Week 3 - Solving second order ODEs
1. AIM:- Write a programme for solving second order differential equation for a pendulum and also transient behaviour of a pendulum . 2.Governing Equation : 3.OBJECTIVE OF PROJECT: To To study how the time period of a simple changes when its amplitude (θ ) is changed. 4.BODY:- import…
28 Jun 2020 12:57 PM IST
Week 2 Air standard Cycle
AIM: Write a programme for AIR STANDARD CYCLE OBJECTION: The Otto cycle is an air-standard cycle which approximates the processes in petrol or diesel engines. It is based on constant volume heat addition (combustion) and heat rejection processes, and isentropic compression and expansion. …
23 Jun 2020 02:52 PM IST
Related Courses
0 Hours of Content
Skill-Lync offers industry relevant advanced engineering courses for engineering students by partnering with industry experts.
© 2025 Skill-Lync Inc. All Rights Reserved.