All Courses
All Courses
Courses by Software
Courses by Semester
Courses by Domain
Tool-focused Courses
Machine learning
POPULAR COURSES
Success Stories
AIM: To write the code that solve otto cycle and plot PV daigram. THEORY: OTTO CYCLE: The otto cycle is a cycle of engine operation which requires four strokes of the piston:for induction, compression,…
Shreyas A M
updated on 12 Feb 2020
AIM: To write the code that solve otto cycle and plot PV daigram.
THEORY:
OTTO CYCLE:
The otto cycle is a cycle of engine operation which requires four strokes of the piston:for induction, compression, ignition, and exhaust. The fuel and air mixture is compressed before combustion is started by an electrical spark or other means.
PV daigram:
Process 1 to 2=isentropic compression.
Here enters the cycle at point 1 when compression starts and it ends at point 2. The air is compressed in an isentropic process through a volume ratio callled compression ratio.
Process 2 to 3=Constant colume heat addition.
Here heat addition starts at point 2 and ends at point 3. A quantity of heat is added at constant volume and thr working fluid temperature rises.
Process 3 to 4= Isentropic expansion
Here the isentropic expansion starts at point 3 and it ends at point 4 to the original vloume
Process 4 to 1 = Constant volume heat rejection
Here completes the cycle by a constant volume process in which heat is rejected .
THERMAL EFFICIENCY:
Te efficiency of a heat engine measured by the ratio of the work done by otto cycle to the heat supply to it.
ηth=WQth
EQUATIONS USED:
Vvc=1+.5⋅(cr−1)(R+1−cos(θ)−(R2−sin(θ)2).5)
where V=volume trace
vc=clearance volume
cr= compression ratio
R=connecting rod length
PROGRAM:
STEP 1
clear all
close all
clc
%inputs
gamma=1.4
t3=2000
% state variables
p1=101325
t1=500
% engine geometric parameters
bore=.1;
stroke=.1;
con_rod=0.15;
cr=12;
%calculating the swept volume and the clearance volume
v_swept=(pi/4)*bore^2*stroke;
v_clearance=v_swept/(cr-1);
v1=v_swept +v_clearance
v2=v_clearance
%state variables at state point 2
%p2v2^gamma=p1v1^gamma
%p2=p1*(v1/v2)^gamma=p1*cr^gamma
p2=p1*cr^gamma;
%p1v1/t1=p2v2/t2 | t2=p2*v2*t1/(p1*v1)
t2=p2*v2*t1/(p1*v1)
% state variables at state point 3
v3=v2
%p3v3/t3=p2v2/t2 | p3=p2*t3/t2
p3=p2*t3/t2
% state variables at point sate point 4
v4=v1
%p3v3^gammma=p4v4^gamma | p4= p3*(v3/v4)^gamma
p4= p3*(v3/v4)^gamma
figure(1)
hold on
plot(v1,p1,'*','color','r')
plot(v2,p2,'*','color','r')
plot(v3,p3,'*','color','r')
plot(v4,p4,'*','color','r')
SREP 2:
function[V]=engine_kinematics(bore,stroke,con_rod,cr,start_crank,end_crank)
a=stroke/2;
R=con_rod/a;
v_s=pi/4*bore^2*stroke;
v_c=v_s/(cr-1);
theta = linspace(start_crank,end_crank,100);
term1=.5*(cr-1);
term2=R+1-cosd(theta);
term3=(R^2-sind(theta).^2).^.5;
V=(1+term1*(term2-term3)).*v_c;
end
STEP 3: inserting step 2 function in step 1
clear all
close all
clc
%inputs
gamma=1.4
t3=2000
% state variables
p1=101325
t1=500
% engine geometric parameters
bore=.1;
stroke=.1;
con_rod=0.15;
cr=12;
%calculating the swept volume and the clearance volume
v_swept=(pi/4)*bore^2*stroke;
v_clearance=v_swept/(cr-1);
v1=v_swept +v_clearance
v2=v_clearance
%state variables at state point 2
%p2v2^gamma=p1v1^gamma
%p2=p1*(v1/v2)^gamma=p1*cr^gamma
p2=p1*cr^gamma;
%p1v1/t1=p2v2/t2 | t2=p2*v2*t1/(p1*v1)
t2=p2*v2*t1/(p1*v1)
constant_c=p1*v1^gamma;
V_compression=engine_kinematics(bore,stroke,con_rod,cr,180,0)
P_compression=constant_c./V_compression.^gamma;
% state variables at state point 3
v3=v2
%p3v3/t3=p2v2/t2 | p3=p2*t3/t2
p3=p2*t3/t2
constant_c=p3*v3^gamma;
V_expansion=engine_kinematics(bore,stroke,con_rod,cr,180,0)
P_expansion=constant_c./V_expansion.^gamma;
% state variables at point sate point 4
v4=v1
% p3v3^gammma=p4v4^gamma | p4= p3*(v3/v4)^gamma
p4= p3*(v3/v4)^gamma
figure(1)
hold on
plot(v1,p1,'*','color','r')
plot(V_compression,P_compression)
plot(v2,p2,'*','color','r')
plot(v3,p3,'*','color','r')
plot(V_expansion,P_expansion)
plot(v4,p4,'*','color','r')
plot([v2 v2],[p2 p3])
plot([v1 v1],[p4 p1])
RESULT: PV daigram for the otto cycle is plotted.
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 4-1D Element Creation Challenge
Mesh the Given component with the Size of 5 Units. Create 1D elements on the following component with given cross-section and DOF a. Rod element:- Translational DOF should be Constrained with RBE2 link Cross-Section: BOX- Dimension a= 12 mm …
01 Apr 2021 11:42 AM IST
Week 10 - Simulating Combustion of Natural Gas.
Aim: Perform a combustion simulation on the combustor model using methane as fuel. Objectives: Part I Perform a combustion simulation on the combustor model and plot the variation of the mass fraction of the different species’ in the simulation using line probes at different locations of the combustor as shown in Fig.…
24 Mar 2021 05:17 PM IST
Week 9 - Parametric study on Gate valve.
Aim: To perform a parametric study on the gate valve simulation by setting the opening from 10 % to 80%. Objective: Obtain the mass flow rates at the outlet for each design point. Calculate the flow coefficient and flow factor for each opening and plot the graph. Discuss the results of the mass flow rate and flow coefficient. …
22 Mar 2021 12:20 PM IST
Week 8 - Simulating Cyclone separator with Discrete Phase Modelling
Aim:- To perform analysis on cyclone separator and calculate the separation efficiency and pressure drop. Objective:- To write a few words about any four empirical models used to calculate the cyclone separator efficiency. To perform an analysis on a given cyclone separator model by varying…
18 Mar 2021 08:43 AM 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.