All Courses
All Courses
Courses by Software
Courses by Semester
Courses by Domain
Tool-focused Courses
Machine learning
POPULAR COURSES
Success Stories
Objective: - Develop a program that can solve an otto cycle and make a plot for it. Principle: - An Otto cycle is an idealized thermodynamic cycle that describes the functioning of a typical spark-ignition engine. It is the thermodynamic cycle most commonly found in automobile engines. The Otto Cycle…
Saransh Dimri
updated on 27 Nov 2020
Objective: -
Develop a program that can solve an otto cycle and make a plot for it.
Principle: -
An Otto cycle is an idealized thermodynamic cycle that describes the functioning of a typical spark-ignition engine. It is the thermodynamic cycle most commonly found in automobile engines. The Otto Cycle is an air-standard cycle that 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
There are three air-standard cycles:
Solution Procedure: -
The basic Otto cycle has four processes:
Processes: -
Governing Equations: -
VVc=1+0.5(CR−1)[R+1−cosθ−(R2−sin2θ)0.5]
PVr=constant
PT=constant
CR=Vs+VcVc
η=1−1(RC)γ−1
CODE for the Function: -
%Function for calculation Volume compression and expression
function[V] = engine_kine(bore,stroke,con_rod,cr, st_crank,end_crank)
cr =12
%Crank pin radius = stroke/2 in meter
a=stroke/2
%Ration of connected rod to the crankpin radius
R = con_rod/a
%Swept volume and Clearance Volume in (m^3)
v_swept =pi/4*bore^2*stroke;
v_c= v_swept/(cr-1)
theta = linspace(st_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
Explanation of the above code: -
function is used to make the code easy to implement ,it is a group of statements that together perform a task
a is equal to crank pin radius which is equal to stroke/2
Code of the Otto cycle Program: -
clear all
close all
clc
%inputs
gamma =1.4
t3 =2300
% State variable
p1 = 101325
t1 = 500
% Engine geometric parameters
bore= 0.1;
stroke = 0.1;
con_rod = 0.15;
cr= 12;
%calculating the swept volume and clearence 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_kine(bore,stroke,con_rod,cr,180,0);
%p_compression*v_compression^gamma = constant_c
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_kine(bore,stroke,con_rod,cr,0,180);
p_expansion = constant_c./v_expansion.^gamma;
% state variables at state point 4
v4=v1;
%p3v3^gamma = p4v4^gamma | p4 = p3(v3/v4)^gamma
p4 = p3*(v3/v4)^gamma;
%Thermal Efficiency
thermal_effi = 1-((cr)^(1-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([v1 v_compression v2 v3 v_expansion v4 v1],[p1 p_compression p2 p3 p_expansion p4 p1],'color','b')
grid on
title('Air Standard Cycle : Otto Cycle')
xlabel('Volume')
ylabel('Pressure')
Explanation of the above code: -
Engine geometric parameters
calculating the swept volume and clearence volume
state variables at state point 2
state variables at state point 3
state variables at state point 4
%Thermal Efficiency
Output : -
Thermal efficiency in the command window
The workspace variables
The output plot of the otto cycle: -
Conclusion and Discussion: -
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 11 Project 2- MATLAB Module to calculate Forces and Displacements for a 3D Frame Structure(nonlinear analysis)
Objective: MATLAB Module to calculate Forces and Displacements for a 3D Frame Structure(nonlinear analysis) Solution procedure: 1) Develop a Matlab function to accept Node information: Node numbers, Node coordinates, and information on nodes to perform analysis on a 3D planar frame structure. 2) Based on the Matlab…
08 Aug 2022 02:32 PM IST
Week 1-Model Creation in DesignModeler Challenge
Objective: Model a butterfly valve Solution Procedure: 1 - Main Housing 2)SHAFT 3) UPPER PLATE:- 4) LOWER PLATE:- 5) BUTTERFLY VALVE ASSEMBLY IMPORT THE GEOMETRY FILE 6)BOLT AND NUT CONCLUSION AND LEARNING:- Learned about using design modeller learned about components sketch tools learned about…
18 Apr 2022 04:56 PM IST
Week 6 Project 1- MATLAB Module to calculate Forces and Displacements for a 3D Frame Structure(Linear analysis)
Objective: MATLAB Module to calculate Forces and Displacements for a 3D Frame Structure(Linear analysis) Solution procedure: 1) Develop a Matlab function to accept Node information: Node numbers, Node coordinates, and information on nodes to perform analysis on a 3D planar frame structure. 2) Based on the Matlab module…
08 Apr 2022 08:33 AM IST
Week 10 Challenge- Frame analysis and MATLAB Module for Gauss Elimination Method
OBJECTIVE:- 1) Assume a structure frame. Write down a displacement matrix with variables corresponding to pre-selected degrees of freedom and degrees of freedom to be eliminated. Mathematically, derive the process that takes the original set of equations and condense it to the form shown below Equtaion given is[k][δ]=[p]The `[delta(b)…
03 Apr 2022 08:03 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.