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 a program to solve an Otto Cycle and determine its Thermal Efficiency of the cycle and write a program to plot P-V Diagram GOVERNING EQUATIONS: …
Udaya Jyothi K
updated on 08 Jan 2021
AIM: To write a program to solve an Otto Cycle and determine its Thermal Efficiency of the cycle and write a program to plot P-V Diagram
GOVERNING EQUATIONS:
Heat Engines where combustion takes inside the cylinder and the products of combustion directly act on piston to develop the power are called Internal Combustion Engine. Internal combustions are classified based on fuel(petrol, diesel, gas), cycle of operation (Otto Cycle, Diesel Cycle, Dual Cycle), no. of power stroke(Four-Stroke, Two stroke), method of ignition(spark Ignition, compression Ignition) and so on.
The standard terminology commonly used in I.C engines are
Working Principal Of Four Stroke Engine:
Four Stroke and Two stroke Petrol and gas engines operates on the working principal of Otto cycle or Constant Volume Air-Cycle. This cycle consists of two reversible adiabatic processes and two constant volume processes. Let us see how an engine operates on this cycle.
The working principal of the engine is completed in four strokes or in 2 revolutions of crank shaft as shown below. The cylinder has twovalves inlet and exhaust valve, piston, connecting rod, crankshaft, spark ignition.
SUCTION STROKE: During this stroke, when the crank rotates from 0∘ to 180∘, , the piston at TDC moves downwards till BDC creating pressure less than the atmospheric pressure which is outside the cylinder. This allows the fuel enter inside the cylinder through inlet valve .Now the volume of the fuel is V1, temperature is t1 and pressure is P1.
COMPRESSION STROKE: During this stroke, the crank rotates from 180∘, to 0∘ completing one revolution which pushes the piston from BDC to TDC .When it reaches TDC the pressure in the volume increases to P2 and volume decreases to V2.At the end of this stroke ignition takes place ,the pressure and temperature increases high form P2 to P3 and temperature at t2 to t3 while volume is kept constant i.e V2 =v3
EXPANSION STROKE: The increased pressure of the fuel exerts force and pushes the piston down to BDC which provides power to crank and crank rotates from 0∘ to 180∘, . The power gained by the crank is transmitted to the engine through connecting rod of length , cd. Now the pressure of the fuel is reduces from P4 to p1 at constant volume v4 .
EXHAUTION STROKE: The piston moves from BDC to TDC as the pressure inside the cylinder is less. During this stroke all the exhaust gases pushes out through exhaust valve. The pressure inside the cylinder is P4 and temperature is t4 while the volume is constant v4 which is equal to V1. The cank rotates from 180∘, to 0∘ completes two revolution with one power stroke.
P-V and T-S Diagram of an Otto cycle :
EQUATIONS:
Splitting equation into three terms for our program
Term1=0.5∗(Cr−1)
Term2=R+1−cosd(θ)
Term3=(R2−sind2(θ))0.5
V=(1+Term1∗(Term2−Term3))∗Vc
Where V----Volume of the cylinder, m3
R----Ratio of connecting rod,Cd and area of cylinder,a
7. Thermal Efficiency=1−1Crγ−1 where gamma=1.4
OBJECTIVE:
The main objective is to plot t1 diagram for an engine operating on Otto cyle. To determine the efficiency of the engine working on this cycle. For this we need solve all the four processes with available inputs.
1---2 Reversible adiabatic compression process
2---3 Heat addition at constant volume process
3---4 Reversible adiabatic expansio processn
4---1 heat rejection at constant volume process
Here the inputs pressure p1 , temperature t1, and temperature t3 are taken. Using these values we can find the remaining parameters p2, t2, p3, p4, v1 ,v2,v3, v4
From the engine dynamics , the available data is
Bore, Stroke, Area a, Connecting Rod length Cd
From the available data and the above given formulae, we find
R, Swept volume Vs, Clearance Volume Vc.
Applying constant volume law to the state 2,3,4,1, we get
v1=v4
v2=v3
where v1=Vs+Vc
v2=Vc
Applying Isentropic law to state 1-2 ,the relation betweenp and v is
p∗vγ=C where γ =1.4(adiabatic process)
p1∗v1γ=p2∗v2γ
We find p2=(v1/v2)γp1
From 1-2 process, the relation between p and t is, pt=C
p2t2=p1t1
t2=p2p1∗t1
Applying constant volume law to state 2-3 ,the relation between p and t is
pt=C,v=constant
p3t3=p2t2
We find p3=t3t2∗p2
Applying Isentropic law to state 3-4 ,the relation between p and v is
p∗vγ=C where γ =1.4(adiabatic process)
p3∗v3γ=p4∗v4γ
p4=(v3/v4)γp3
We create subprogram in which code for function name Engine_kinematics is done and we call this function to get values of p and v at every angle of crank during compression and expansion process, so that p-V diagram can be plotted easily.
Coding:
Main program
clear all
close all
clc
%Inputs
gamma=1.4
%State variables
p1=101325
t1=500
t3=2300
%Engine geometric parameters
bore=0.1;
stroke=0.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 point2
%p2v2^gamma=p1v1^gamma
%p2=p*(v1/v2)^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, 0,180);
p_compression=constant_c./v_compression.^gamma;
%state variables at state point3
v3=v2
%p3v3/t3=p2v2/t2 | p3=p2*t3/t2
p3=p2*t3/t2;
constant_c1=p3*v3^gamma;
v_expansion=Engine_Kinematics(bore, stroke, con_rod, cr, 180,0);
p_expansion=constant_c1./v_expansion.^gamma;
%state variables at state point4
v4=v1
%p3v3^gamma=p4v4^gamma | p4=p3(v3/v4)^gamma
p4=p3*(v3/v4)^gamma
Efficiency=1-1/cr.^(gamma-1)
figure(1)
hold on
plot(v1,p1,'*','color','r')
plot(v_compression,p_compression)
plot(v2,p2,'*','color','r')
plot([v2 v3],[p2 p3])
plot(v3,p3,'*','color','r')
plot(v_expansion, p_expansion)
plot([v4 v1],[p4 p1])
plot(v4,p4,'*','color','r')
SUB-FUNCTION: Function called
function v=Engine_Kinematics(bore, stroke, cond_rod, cr, start_crank, end_crank)
a=stroke/2;
R=cond_rod/a;
v_s=(pi/4)*bore^2*stroke;
v_c=v_s/(cr-1);
theta=linspace(start_crank,end_crank,100);
term1=0.5*(cr-1);
term2=R+1-cosd(theta);
term3=(R^2-sind(theta).^2).^0.5;
v=(1+term1*(term2-term3)).*v_c;
end
P-V Plot for Otto Cycle:
Conclusion:
In Heat Engines, using air standard cycles like Otto Cycle we can find the performance of an internal combustion engines. The air standard efficiency of the Otto-cycle depends on the compression ratio only and it increases with the increase in compression ratio.It is easy to estimate the theoritical work developed by an engine working on a particular cycle.
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...
Final Project: Design of an Electric Vehicle
Q. Create a MATLAB model of an electric car that uses a battery and a DC motor. Choose suitable blocks from the powertrain block set. prepare a report about your model including following Objectives 1. System-level configuration 2. Model parameters 3. results $.conclusion A: The Electric Vehicle…
18 Nov 2021 07:10 PM IST
Week-11 Challenge: Braking
The most important feature of electric vehicles and hybrid vehicles is their ability to absorb, store and reuse the braking energy. A successfully designed braking system for a vehicle must always meet two distinct demands. While applying the sudden brake, the vehicle must come to rest in the shortest possible distance…
03 Nov 2021 01:51 PM IST
Week-7 Challenge: DC Motor Control
Q1 A. Explain the MATLAB demo model named ‘Speed control of a DC motor using BJT H- bridge. Comment on the armature current shoot-up from the scope results Transistors have been used as amplification devices, where control of the base currents used to make the transistor conducive to a greater or lesser…
30 Aug 2021 08:25 AM IST
Week-6 Challenge: EV Drivetrain
which types of power converter circuits are employed in an electric and hybrid electric vehicle? The control inputs given by the vehicle brake and accelerate pedals are received by the electronic controllers produces control signals to the power source system through power devices. These…
09 Aug 2021 07:55 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.