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 that can solve an otto cycle and make plots for it. THEORY:- An Otto cycle is an idealized thermodynamic cycle that describes the functioning of a typical spark ignition piston engine.The basic Otto cycle is made up of four processes:•Isentropic compression;•Constant volume…
MD TAUFIQUE SAMDAANI
updated on 21 May 2020
AIM:-
To write a program that can solve an otto cycle and make plots for it.
THEORY:-
An Otto cycle is an idealized thermodynamic cycle that describes the functioning of a typical spark ignition piston engine.
The basic Otto cycle is made up of four processes:
•Isentropic compression;
•Constant volume heat addition;
•Isentropic expansion and
•Constant volume heat rejection.
GOVERNING EQUATIONS:-
Adiabatic Equation
Where,
Ideal Gas Eqaution
where ,
and
are the pressure, volume and temperature;
is the amount of substance; and
is the ideal gas constant. It is the same for all gases.
Thermal Effeicincy
where T1 is the temperature at point 1
T2 is the temperature at point 2
T3 is the temperature at point 3
T4 is the temperature at point 4
INPUTS:-
CODE:-
Main Program
clear all
close all
clc
%inputs
gamma=1.4
t3=2300
p1=101325
t1=500
%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 point w
%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,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
%Temperatue at point 4
t4=p4*v4*t3/(p3*v3);
%Thermal efficiency of engine
n_th=1-((t4-t1)/(t3-t2))
figure(1)
hold on
plot(v1,p1,'*','color','r') %To plot point 1
plot(v_compression,p_compression) % To plot isentropic compression
plot(v2,p2,'*','color','k') %To plot point 2
plot([v2 v3],[p2 p3]) % To plot constant volume heat addition
plot(v3,p3,'*','color','g') % To plot point 3
plot(v_expansion,p_expansion) % To plot isentropic expansion
plot(v4,p4,'*','color','y') % To plot point 4
plot([v4 v1],[p4 p1]) % To plot constant heat rejection
ylabel('Pressure')
xlabel('Volume')
legend('Point1','isentropic compression','Point 2','constant vol heat addition','Point 3','isentropic expansion','Point 4','constant volume heat rejection')
Errors Encountered:-
due to which this error came in the command window
Function:-
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=0.5*(cr-1);
term2=R+1 - cosd(theta);
term3=(R^2 - sind(theta).^2).^0.5;
% To find the volume traced
v=(1+term1*(term2-term3)).*V_c;
endfunction
OUTPUT-
Graph:-
CONCLUSION:-
The thermal efficiency of the above figure is 0.629.
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...
Planetary Gear
AIM:- To generate 3D models To assemble The generated models to from the planetary gear To do Motion Analysis on the Planetary Gear on the cases given INTRODUCTION:- Planetary Gear or Epicyclic gear is a gear system consisting of one or more outer, or planet, gears or pinions, revolving about a central sun…
18 Jul 2020 03:32 PM IST
MBD Simulation on IC Engine Valve Train
AIM:- To Model the parts To Assemble the parts created To run simulation on IC Engine Valve under the given conditions INTRODUCTION:- A valvetrain or valve train is a mechanical system that controls operation of the intake and exhaust valves in an internal combustion engine. The intake valves…
18 Jul 2020 03:29 PM IST
MBD Simulation on a Piston Assembly
AIM:- To design the different parts of the Piston Assembly. To Assemble the parts created To do Motion Analysis on the Piston Assembly and , rotary motion is provided to the crankshaft INTRODUCTION:- Piston Assembly motion analysis is study of the reciprocating motion of the piston in the cyclinder and the motion…
18 Jul 2020 03:22 PM IST
Internal Geneva Mechanism
AIM:- To create 3D models for Driver and Driven Wheels To create assemble the driver an driven wheel in order to show Internal Geneva Mechanism To do motion Study of internal geneva mechanism ( with and without Precise Contact) To make a plot of the driven wheel's angular displacement and discuss the results in different…
18 Jul 2020 03:13 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.