All Courses
All Courses
Courses by Software
Courses by Semester
Courses by Domain
Tool-focused Courses
Machine learning
POPULAR COURSES
Success Stories
Aim:-To Plotting Pv Diagram For Otto Cycle And Calculating The thermal Efficiency Of Otto Cycle By Using Mat-lab. Theory:-An Otto Cycle Is An Idealized Thermodynamic Cycle That Describes The Functioning Of a Typical Spark Ignition Piston Engine.It Is The Thermodynamic Cycle Most Commonly Found In Automobile…
Ravinder Kumar
updated on 12 Oct 2020
Aim:-To Plotting Pv Diagram For Otto Cycle And Calculating The thermal Efficiency Of Otto Cycle By Using Mat-lab.
Theory:-An Otto Cycle Is An Idealized Thermodynamic Cycle That Describes The Functioning Of a Typical Spark Ignition Piston Engine.It Is The Thermodynamic Cycle Most Commonly Found In Automobile Engines
The Otto cycle 1 → 2 → 3 → 4 consists of following four processes:
Process 1 → 2: Reversible adiabatic compression of air;
Process 2 → 3: Heat addition at constant volume;
Process 3 → 4: Reversible adiabatic expansion of air;
Process 4 → 1: Heat rejection at constant volume.
Code:-
clear all
close all
clc
%input
gamma=1.4;
t3=2500;
%state variable
p1=101325;
t1=500;
%engine geomatric perameters
bore=0.1;
stroke=0.1;
connecting_rod=0.15;
cr=12;
%calculate the swept volume and clerance volume
v_swept=(pi/4)*bore^2*stroke;
v_clerance=v_swept/(cr-1);
v1=v_swept+v_clerance;
v2=v_clerance;
% state variable at point2
p2=p1*(v1/v2)^gamma;
constant_c=p1*v1^gamma;
t2=(p2*v2*t1)/(p1*v1);
v_compression=engine_kinamatic(bore,stroke,connecting_rod,cr,180,0);
p_compression=constant_c./v_compression.^gamma;
% state variable at point 3
v3=v2;
p3=p2*t3/t2;
constant_c=p3*v3^gamma;
v_expension=engine_kinamatic(bore,stroke,connecting_rod,cr,0,180);
p_expension=constant_c./v_expension.^gamma;
%state variable at point4
v4=v1;
p4=p3*(v3/v4)^gamma;
n = 1 - 1/(cr^gamma-1);
%plotting
figure(1)
hold on
plot(v1,p1,'*','color','b')
plot(v2,p2,'*','color','b')
plot(v3,p3,'*','color','b')
plot(v4,p4,'*','color','b')
grid on
plot(v_compression,p_compression)
plot(v_expension,p_expension)
plot([v2 v3], [p2 p3],'color','g')
plot([v4 v1], [p4 p1],'color','g')
xlabel('(volume)')
ylabel('(pressure)')
title('(Otto Cycle)','fontsize',21)
text(v1,p1,'state-1','fontsize',8)
text(v2,p2,'state-2','fontsize',8)
text(v3,p3,'state-3','fontsize',8)
text(v4,p4,'state-4','fontsize',8)
text(3*10^(-4),3*10^6,[sprintf('Thermal Efficieny=%d',n)])
Procedure:-
Following Steps Used To Plot Pv Diagram And Calculate Efficiency Of Otto Cycle In Mat-lab .
P1=101325 , T1=500,T3=2500 ,Cr=12,(Gamma)=1.4
V_Swept =(Pi/4)*Bore*Stroke
V_Clearance=V_Swept/(Cr-1)
For Constant Volume Process V2=V3 V4=V1
For Isentropic Compression P1*(V1^Gamma)=P2*(V2^Gamma)
For Isentropic Expansion P3*(V3^Gamma)=P4*(V4^Gamma)
Pv/T=Constant
function [v] = engine_kinamatic(bore,stroke,connecting_rod,cr,start_crank,end_crank)
a=stroke/2;
R=connecting_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^Gamma)=Constant
Efficiency(N)=1-(1/Cr(Gamma-1)
OUTPUT:-
THERMAL EFFICIENCY=9.68176e-01
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...
Boeing-747 _ Final_Project
BOEING 747-8 DESIGN BY USING SOLIDWORKS OBJECTIVE: The main ojective of this project is to design Boeing 747-8 Aircraft by using Solidworks Part and Surface Modelling Environment, and after completion of modelling, assembling the individual parts by using Solidworks Design Environment. INTRODUCTION OF BOEING…
20 Sep 2021 03:49 PM IST
Week 4 Challenge
Define tooling direction Ans-The Tooling Direction is basically the direction that the mold pulls apart. The mold is built in two separate pieces, basically. You have a Cavity side and you have the Core side. The Core pulls apart from the Cavity and that's the Dyeline or the Tooling Direction. Write the definition…
03 Sep 2021 01:04 PM IST
Week 3 Challenge
Parametric_modeling_structure Create a CATIA parametric structure with publication command
31 Aug 2021 01:38 PM IST
EV Drivetrain
Aim:-To get to know the types of converters used in HEV and EV vehicles. -To find the speed using torque-speed relation. - To get to know about induction and DC brushless motors. Q1:-Which types of power converter circuits are employed in an electric and hybrid electric vehicle? Ans:-There are two…
25 Aug 2021 02:51 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.