All Courses
All Courses
Courses by Software
Courses by Semester
Courses by Domain
Tool-focused Courses
Machine learning
POPULAR COURSES
Success Stories
AIM : To create a program using MATLAB for plotting Pressure vs Volume diagram for an well known Air Standard Cycle i.e. Otto Cycle and to find its Thermal Efficiency(Ƞ) of the engine. THEORY : The modern petrol (gasoline) engines operate on otto (constant volume) cycle. This cycle was introduced by a German scientist…
Ashutosh Trehan
updated on 08 Dec 2020
AIM : To create a program using MATLAB for plotting Pressure vs Volume diagram for an well known Air Standard Cycle i.e. Otto Cycle and to find its Thermal Efficiency(Ƞ) of the engine.
THEORY :
GOVERNING EQUATIONS :
VVc=1+12(cr−1)[R+1−cosθ−(R2−sin2θ)12]
where, r = cr(compression ratio) =VsVc= V1V2
OBJECTIVES OF THE PROJECT:
function [V] = Engine_kinematics(Bore,Stroke,Connect_rod,cr,start_crank,end_crank)
a = Stroke/2;
R = Connect_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
%% Code for Otto Cycle
clear all
close all
clc
% Inputs -
gamma = 1.4;
t3 = 2300;
% State variables -
p1 = 101325;
t1 = 500 ;
% Engine Geometric Parameters -
Bore = 0.1;
Stroke = 0.1;
Connect_Rod = 0.15;
cr = 12;
% Calculating the swept volume and 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 pt.2 -
%(p2v2)^gamma = (p1v1)^gamma
% p2 = p1*(cr)^gamma
p2 = p1*(cr)^gamma
% p1v1/t1 = p2v2/t2
t2 = p2*v2*t1/(p1*v1);
constant_c = p1*v1^gamma;
V_compression = Engine_kinematics(Bore,Stroke,Connect_Rod,cr,180,0);
P_compression = constant_c./V_compression.^gamma;
% State variable at pt.3 -
v3=v2 % As it is a Constant volume process
%p3v3/t3=p2v2/t2
%p3=p2*t3/t2
p3 = p2*t3/t2
constant_c = p3*v3^gamma;
V_expansion = Engine_kinematics(Bore,Stroke,Connect_Rod,cr,0,180);
P_expansion = constant_c./V_expansion.^gamma;
% State variables at pt.4-
v4 = v1
% (p3v3)^gamma = (p4v4)^gamma
% p4 = p3*(v3/v4)^gamma
p4 = p3*(v3/v4)^gamma
% Plot
figure (1)
hold on
plot(v1,p1,'*','markersize',5,'color','r')
plot(V_compression,P_compression,'linewidth',1)
plot(v2,p2,'*','markersize',5,'color','r')
plot(v3,p3,'*','markersize',5,'color','r')
plot(V_expansion,P_expansion,'linewidth',1)
plot(v4,p4,'*','markersize',5,'color','r')
plot([v2 v2],[p2 p3],'color','b','linewidth',1)
plot([v1 v4],[p1 p4],'color','b','linewidth',1)
xlabel('Volume(V)')
ylabel('Pressure(P)')
title('Pressure Vs Volume Diagram for OTTO CYCLE')
% Thermal efficiency for an Otto Cycle-
n = (1-(1/cr^(gamma-1)))*100;
Thermal_efficiency = n
The above plot shows the pressure vs volume graph for otto cycle in which volume decreases from state 1-2 during compression and increases from state 3-4 during expansion process.
The above image shows the thermal efficiency for an otto cycle after calculating all the state variables for pressure and volume.
STEPWISE EXPLANATION OF THE CODE –
Errors faced while programming –
Reason – Initial start of code with Use of clear all ; close all ; clc ; command in the function code.
Reason – Use normal of power expression to raise a power of matrix ^ instead of elementwise matrix power.
Steps taken to overcome the Errors Faced –
Screenshots showing errors thrown in command window –
Error for calling the function
Error in P_expansion line in Main code
CONCLUSION –
Thus, we get an brief idea about creating a program using piston kinematics for plotting PV diagram for an otto cycle where volume changes isentropically from process 1-2 and 3-4 respectively. Also, we had calculated thermal efficiency of an engine for an Otto cycle which is 62.98 %.
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...
MBD Simulation on IC Engine Valve Train
AIM : To create models, assembly & perform Motion analysis for the IC engine valve train . OBJECTIVE : To obtain the results for Valve Lift. Calculate and display the plots for contact force between Cam and Push Rod, Pushrod and Rocker Arm, Rocker Arm and Valve. INTRODUCTION : In IC engines, valve…
08 Dec 2020 12:46 PM IST
STATIC ANALYSIS FOR A PLATE WITH HOLES
AIM : To perform the Static Analysis on two different models of a plate with the holes and the comparison of results among the two models. OBJECTIVE : Prepare a static analysis and get the output for stress, strain and displacement for two models of plate with holes. Compare the final results of static analysis for the…
08 Dec 2020 12:46 PM IST
EV battery module Benefits and Specifications
AIM : To study the benefits of using Battery modules and specifications of an individual module specified for an battery pack. INTRODUCTION : A battery is a device that converts chemical energy into electrical energy and vice versa. The composition of an EV battery might vary slightly depending on the types of electric…
08 Dec 2020 12:45 PM IST
Frequency Analysis of a rotating shaft
AIM : To perform frequency analysis for a rotating shaft with disc in solidworks. OBJECTIVE : Conduct a frequency analysis on the rotating shaft with disc. Determine the 5 different mode shapes and display its resonant frequencies. INTRODUCTION : The goal of modal analysis in a model is to determine the natural mode…
08 Dec 2020 12:44 PM IST
Related Courses
Skill-Lync offers industry relevant advanced engineering courses for engineering students by partnering with industry experts.
© 2025 Skill-Lync Inc. All Rights Reserved.