SlideShare a Scribd company logo
International Journal of Engineering Science Invention
ISSN (Online): 2319 – 6734, ISSN (Print): 2319 – 6726
www.ijesi.org ||Volume 6 Issue 4|| April 2017 || PP. 33-38
www.ijesi.org 33 | Page
Simulation of Simple Pendulum
Abdalftah Elbori1
, Ltfei Abdalsmd2
1
(MODES Department Atilim University Turkey)
2
(Material Science Department, Kastamonu University Turkey)
Abstract :This paper presents the Physics Rotational Method of the simple gravity pendulum, and it also
applies Physics Direct Method to represent these equations, in addition to the numerical solutions discusses.
This research investigates the relationship between angular acceleration and angle to find out different
numerical solution by using simulation to see their behavior which shows in last part of this article.
Keywords: Physics Rotational Method, Simple Pendulum, Numerical Solution, Simulation
I. INTRODUCTION
A pendulum is a weight suspended from a pivot so that it can swing freely. When a pendulum is
displaced sideways from its resting equilibrium position, it is subject to a restoring force due to gravity that will
accelerate it back toward the equilibrium position [1] and [2] . When released, the restoring force combined with
the pendulum's mass causes it to oscillate about the equilibrium position, swinging back and forth. The time for
one complete cycle, a left swing and a right swing, is called the period. The period depends on the length of the
pendulum and also on the amplitude of the oscillation. However, if the amplitude is small, the period is almost
independent of the amplitude [3] and [4].
Many things in nature wiggle in a periodic fashion. That is, they vibrate. One such example is a simple
pendulum. If we suspend a mass at the end of a piece of string, we have a simple pendulum. Here, we try to
represents a periodic motion used in times past to control the motion of grandfather and cuckoo clocks. Such
oscillatory motion is called simple harmonic motion[5]. It was Galileo who first observed that the time a
pendulum takes to swing back and forth through small distances depends only on the length of the pendulum[3].
In this paper applies Physics - Rotational Method and Physics Direct Method to represent these equations. In the
second step, it discusses Numerical Solution and Linearization of simple pendulum. In the third step in this
paper figures out how to use Simulation of Simple pendulum and compare with double pendulum, finally we
will find the relationship between angular acceleration and angle to investigate the numerical solution and
simulation to see their behavior.
II. PHYSICS – ROTATIONAL METHOD
The pendulum is modeled as a point mass at the end of a massless rod. We define the following variables as in
the figure 1:
θ = angle of pendulum (0=vertical).
R = length of rod.
T = tension in rod.
m = mass of pendulum.
g = gravitational constant.
Figure.1. Pendulum variables
We will derive the equation of motion for the pendulum using the rotational analog of Newton's second law for
motion about a fixed axis, which is τ = I α, where τ = net torque, I = rotational inertia α=θ= acceleration. The
rotational inertia about the pivot is I=mR². Torque can be calculated as the vector cross product of the position
vector and the force. The magnitude of the torque due to gravity works out to be . So, we
have:
Which simplifies to
This is the equation of motion for the pendulum.
Simulation of Simple Pendulum
www.ijesi.org 34 | Page
III. PHYSICS - DIRECT METHOD
Let us consider Newton's second law . To show that there is nothing new in the rotational version of
Newton's second law, we derive the equation of motion here without the rotational dynamics. As you will see,
this method involves more algebra. We'll need the standard unit vectors, as in the Figure 2.
Figure.2. standard unit vectors
= unit vector in horizontal direction, = unit vector in vertical direction.
Figure.3. One Pendulum
By Figure 3 is easy to derive the kinematics of the pendulum as follows:
,
,
The position is derived by a fairly simple application of trigonometry. The velocity and acceleration are then the
first and second derivatives of the position. Next, we draw the free body diagram for the pendulum. The forces
on the pendulum are the tension in the rod T and gravity. So, it is possible to write the net force as in the figure
4:
Figure.4. Pendulum forces
Using Newton's law and the pendulum acceleration we found earlier, we have
It is possible to rewrite the vector components of the above equation as separate equations. This gives us two
simultaneous equations: the first components is and the second is for the component.
&
Next, by doing some algebraic manipulations to eliminate the unknown T. Multiply the first equation by
and the second by .
mg
T
Simulation of Simple Pendulum
www.ijesi.org 35 | Page
(2)
(3)
By adding the equation (2) and (3) together, we obtain
Therefore,
,
hence,
θ''+ =0
IV. NUMERICAL SOLUTION AND LINEARIZATION
Let us discuss how we can solve the equations of motion numerically, so that we can drive the simulation, we
use the Runge-Kutta method for solving sets of ordinary differential equations. Firstly let us define a variable
for the angular velocity Then we can write the second order equation (1) as two first order equations.
Such as,
Then, &
(4)
The restoring force must be proportional to the negative of the displacement. Here we have: ,
which is proportional to and not to itself.
By using Talyor series to get approximation of the function at the equlibrium point , we obtain
.
Figure.5. Motion of Simple Pendulum
Therefore, for small angles, we have
, where .
We have also the period and frequency are: , and ,
where
and let
We obtain
FT
Simulation of Simple Pendulum
www.ijesi.org 36 | Page
(5)
V. SIMULATION OF SIMPLE PENDULUM.
This simulation shows a simple pendulum operating under gravity. For small oscillations, the pendulum is
linear, but it is non-linear for larger oscillations.
We have where is positive constant. Hence
θ''+ =0 (6)
let us use represent state to solve this ordinary differential equation (6). Let’s start with a same step
.
Then,
&
(7)
Open up a m-file and type:
function dudt=pendulum (t,u)
w=10;
dudt(1,:) = u(2);
dudt(2,:) = -w*sin(u(1));
end
we note that, by looking at the figure.6, a number of frequencies increase as we decrease the value w. Let us
save this file as “pendulum m”. We need to use MATLAB to solve l the differential equation by this code
clear all
tspan=[0,2*pi];
u0=[pi/4;0];
[t,u]=ode45(@pendulum,tspan,u0,[]);
plot(t,u(:,1),'b-', 'Line Width', 2)
xlabel('time')
ylabel('angle')
0 1 2 3 4 5 6 7
-0.8
-0.6
-0.4
-0.2
0
0.2
0.4
0.6
0.8
time
angle
w=10
0 1 2 3 4 5 6 7
-0.8
-0.6
-0.4
-0.2
0
0.2
0.4
0.6
0.8
time
angle
w=100
Figure.6 Angular Displacement
Note that as we increase then oscillations will increase. By another word if we decrease R = length of rod we
will increase number of oscillations
Simulation of Simple Pendulum
www.ijesi.org 37 | Page
V.1 Euler method
We can also use Euler method, let us describe here is the code for the numerical solution of the equations of
motion for a simple pendulum using the Euler method. There is important this, we note that these oscillations
grow with time. The MATLAB code has already existed [1], just we insert our data as in the figure.7
length= 1;
g=9.8;
npoints = 250;
dt = 0.04;
omega = zeros(npoints,1);
theta = zeros(npoints,1);
time = zeros(npoints,1);
theta (1) =0.2;
for step = 1: npoints-1
omega(step+1) = omega(step) - (g/length) *theta(step)*dt;
theta(step+1) = theta(step)+omega(step)*dt
time(step+1) = time(step) + dt;
end
plot (time,theta,'r' ); xlabel('time (seconds) ');
ylabel ('theta (radians)');
0 1 2 3 4 5 6 7 8 9 10
-1.5
-1
-0.5
0
0.5
1
1.5
time (seconds)
theta(radians)
Simple Pendulum - Euler Method
Figure.7 Numerical Solution by Euler Method
VI. SIMULATION OF SIMPLE NON‐LINEAR.
Although finding an analytical solution to the simple non‐linear model is not evident, it can be solved
numerically with the aid of MATLAB‐Simulink. Start by isolating the highest order derivative from the linear
model:
The MATLAB‐Simulink model that solves this equation is given by the figure.8.
Figure.8 Simulation of Simple Nonlinear Pendulum
Note that the drag force must change sign based on the angular velocity of the pendulum. In other words,
although the drag force is taken as constant, it must always act opposite to the direction of motion.
If we run the figure.9, we obtain figure.9 and it depends on initial condition and the mass =55 and time=12
second, inertia= [ 1.25e-4 0 0; 0 0.208 0; 0 0 0.208], we obtain
Simulation of Simple Pendulum
www.ijesi.org 38 | Page
Figure.9 coordinates axes
VII. CONCLUSION
The length of the simple pendulum is directly proportional to the square of the period of oscillation, we
found that the pendulum goes slower than simple pendulum theory at larger angles. The time of this motion is
called the period, the period does not depend on the mass of the pendulum or on the size of the arc through
which it swings. Another factor involved in the period of motion is, the acceleration due to gravity (g), which on
the earth is 9.8 m/s2. It follows then that a long pendulum has a greater period than a shorter pendulum.
REFERENCES
[1]. Kidd, R.B. and S.L. Fogg, A simple formula for the large-angle pendulum period. The Physics Teacher, 2002. 40(2): p. 81-83.
[2]. Kenison, M. and W. Singhose. Input shaper design for double-pendulum planar gantry cranes. in Control Applications, 1999.
Proceedings of the 1999 IEEE International Conference on. 1999. IEEE.
[3]. Ganley, W., Simple pendulum approximation. American Journal of Physics, 1985. 53(1): p. 73-76.
[4]. Shinbrot, T., et al., Chaos in a double pendulum. American Journal of Physics, 1992. 60(6): p. 491-499.
[5]. Åström, K.J. and K. Furuta, Swinging up a pendulum by energy control. Automatica, 2000. 36(2): p. 287-295.

More Related Content

What's hot

Colgate Palmolive Pakistan Kotri Internship Report
Colgate Palmolive Pakistan Kotri Internship ReportColgate Palmolive Pakistan Kotri Internship Report
Colgate Palmolive Pakistan Kotri Internship Report
Mehran University of Engineering and Technology
 
extraction of magnesium
extraction of magnesiumextraction of magnesium
extraction of magnesium
shivaniagarwal87
 
Hi̇bri̇t Kompozi̇t Malzemeler (Hybrid Composite Materials)
Hi̇bri̇t Kompozi̇t Malzemeler (Hybrid Composite Materials)Hi̇bri̇t Kompozi̇t Malzemeler (Hybrid Composite Materials)
Hi̇bri̇t Kompozi̇t Malzemeler (Hybrid Composite Materials)
Çağatay ÖZADA
 
Chanderiya Lead Zinc Project
Chanderiya Lead Zinc ProjectChanderiya Lead Zinc Project
Chanderiya Lead Zinc Project
Pushkar Raj Chandna
 
Gauss Elimination Method With Partial Pivoting
Gauss Elimination Method With Partial PivotingGauss Elimination Method With Partial Pivoting
Gauss Elimination Method With Partial Pivoting
SM. Aurnob
 
Cauchy riemann equations
Cauchy riemann equationsCauchy riemann equations
Cauchy riemann equationssajidpk92
 
Creep deformation
Creep deformationCreep deformation
Creep deformation
NikDunaway
 
Vector analysis
Vector analysisVector analysis
Vector analysis
Solo Hermelin
 
Production of iron and steel
Production of iron and steelProduction of iron and steel
Production of iron and steel
temkin abdlkader
 
Extraction of Aluminium
Extraction of AluminiumExtraction of Aluminium
Extraction of Aluminium
SB Solutions
 

What's hot (12)

Colgate Palmolive Pakistan Kotri Internship Report
Colgate Palmolive Pakistan Kotri Internship ReportColgate Palmolive Pakistan Kotri Internship Report
Colgate Palmolive Pakistan Kotri Internship Report
 
extraction of magnesium
extraction of magnesiumextraction of magnesium
extraction of magnesium
 
Hi̇bri̇t Kompozi̇t Malzemeler (Hybrid Composite Materials)
Hi̇bri̇t Kompozi̇t Malzemeler (Hybrid Composite Materials)Hi̇bri̇t Kompozi̇t Malzemeler (Hybrid Composite Materials)
Hi̇bri̇t Kompozi̇t Malzemeler (Hybrid Composite Materials)
 
Chanderiya Lead Zinc Project
Chanderiya Lead Zinc ProjectChanderiya Lead Zinc Project
Chanderiya Lead Zinc Project
 
Gauss Elimination Method With Partial Pivoting
Gauss Elimination Method With Partial PivotingGauss Elimination Method With Partial Pivoting
Gauss Elimination Method With Partial Pivoting
 
Cauchy riemann equations
Cauchy riemann equationsCauchy riemann equations
Cauchy riemann equations
 
Creep deformation
Creep deformationCreep deformation
Creep deformation
 
Honda Report On Paint
Honda Report On PaintHonda Report On Paint
Honda Report On Paint
 
Simple Harmonic Motion
Simple Harmonic MotionSimple Harmonic Motion
Simple Harmonic Motion
 
Vector analysis
Vector analysisVector analysis
Vector analysis
 
Production of iron and steel
Production of iron and steelProduction of iron and steel
Production of iron and steel
 
Extraction of Aluminium
Extraction of AluminiumExtraction of Aluminium
Extraction of Aluminium
 

Similar to Simulation of Simple Pendulum

Shm 1
Shm 1Shm 1
Shm 1
syar 2604
 
A Route to Chaos for the Physical Double Pendulum by
A Route to Chaos for the Physical Double Pendulum by A Route to Chaos for the Physical Double Pendulum by
A Route to Chaos for the Physical Double Pendulum by Daniel Berkowitz
 
Simulation of Double Pendulum
Simulation of Double PendulumSimulation of Double Pendulum
Simulation of Double Pendulum
QUESTJOURNAL
 
REPORT SUMMARYVibration refers to a mechanical.docx
REPORT SUMMARYVibration refers to a mechanical.docxREPORT SUMMARYVibration refers to a mechanical.docx
REPORT SUMMARYVibration refers to a mechanical.docx
debishakespeare
 
Story of pendulum
Story of pendulumStory of pendulum
Story of pendulum
leucosolonia
 
Form 4 experiments all topics
Form 4 experiments all topicsForm 4 experiments all topics
Form 4 experiments all topics
Carwoy Rock
 
Chapter 2 pp
Chapter 2 ppChapter 2 pp
Shm
ShmShm
Circular motion
Circular motionCircular motion
Circular motion
BashrTebse
 
Damped and undamped motion differential equations.pptx
Damped and undamped motion differential equations.pptxDamped and undamped motion differential equations.pptx
Damped and undamped motion differential equations.pptx
BrijeshMishra525980
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)
IJERD Editor
 
The simple pendulum (using O.D.E)
The simple pendulum (using O.D.E)The simple pendulum (using O.D.E)
The simple pendulum (using O.D.E)
darshan231995
 
On Equivalent Amplitude Motion of the Foucault Pendulum
On Equivalent Amplitude Motion of the Foucault PendulumOn Equivalent Amplitude Motion of the Foucault Pendulum
On Equivalent Amplitude Motion of the Foucault PendulumShuai Yuan
 
Ch09 ssm
Ch09 ssmCh09 ssm
Ch09 ssm
Marta Díaz
 
International Refereed Journal of Engineering and Science (IRJES)
International Refereed Journal of Engineering and Science (IRJES)International Refereed Journal of Engineering and Science (IRJES)
International Refereed Journal of Engineering and Science (IRJES)
irjes
 
group 9 sec c3 .docx
group 9 sec  c3 .docxgroup 9 sec  c3 .docx
group 9 sec c3 .docx
MUSHFIQURSTUDENT
 
Fly wheel(2).docx
Fly wheel(2).docxFly wheel(2).docx
Fly wheel(2).docx
Saif al-din ali
 

Similar to Simulation of Simple Pendulum (20)

Shm 1
Shm 1Shm 1
Shm 1
 
A Route to Chaos for the Physical Double Pendulum by
A Route to Chaos for the Physical Double Pendulum by A Route to Chaos for the Physical Double Pendulum by
A Route to Chaos for the Physical Double Pendulum by
 
Simulation of Double Pendulum
Simulation of Double PendulumSimulation of Double Pendulum
Simulation of Double Pendulum
 
REPORT SUMMARYVibration refers to a mechanical.docx
REPORT SUMMARYVibration refers to a mechanical.docxREPORT SUMMARYVibration refers to a mechanical.docx
REPORT SUMMARYVibration refers to a mechanical.docx
 
Story of pendulum
Story of pendulumStory of pendulum
Story of pendulum
 
AP Physics C Rotational Motion
AP Physics C Rotational MotionAP Physics C Rotational Motion
AP Physics C Rotational Motion
 
ProjectAndersSchreiber
ProjectAndersSchreiberProjectAndersSchreiber
ProjectAndersSchreiber
 
Free vibrations
Free vibrationsFree vibrations
Free vibrations
 
Form 4 experiments all topics
Form 4 experiments all topicsForm 4 experiments all topics
Form 4 experiments all topics
 
Chapter 2 pp
Chapter 2 ppChapter 2 pp
Chapter 2 pp
 
Shm
ShmShm
Shm
 
Circular motion
Circular motionCircular motion
Circular motion
 
Damped and undamped motion differential equations.pptx
Damped and undamped motion differential equations.pptxDamped and undamped motion differential equations.pptx
Damped and undamped motion differential equations.pptx
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)
 
The simple pendulum (using O.D.E)
The simple pendulum (using O.D.E)The simple pendulum (using O.D.E)
The simple pendulum (using O.D.E)
 
On Equivalent Amplitude Motion of the Foucault Pendulum
On Equivalent Amplitude Motion of the Foucault PendulumOn Equivalent Amplitude Motion of the Foucault Pendulum
On Equivalent Amplitude Motion of the Foucault Pendulum
 
Ch09 ssm
Ch09 ssmCh09 ssm
Ch09 ssm
 
International Refereed Journal of Engineering and Science (IRJES)
International Refereed Journal of Engineering and Science (IRJES)International Refereed Journal of Engineering and Science (IRJES)
International Refereed Journal of Engineering and Science (IRJES)
 
group 9 sec c3 .docx
group 9 sec  c3 .docxgroup 9 sec  c3 .docx
group 9 sec c3 .docx
 
Fly wheel(2).docx
Fly wheel(2).docxFly wheel(2).docx
Fly wheel(2).docx
 

Recently uploaded

一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
Pipe Restoration Solutions
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
addressing modes in computer architecture
addressing modes  in computer architectureaddressing modes  in computer architecture
addressing modes in computer architecture
ShahidSultan24
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
Kamal Acharya
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
abh.arya
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
AafreenAbuthahir2
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
Kamal Acharya
 

Recently uploaded (20)

一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
addressing modes in computer architecture
addressing modes  in computer architectureaddressing modes  in computer architecture
addressing modes in computer architecture
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
 

Simulation of Simple Pendulum

  • 1. International Journal of Engineering Science Invention ISSN (Online): 2319 – 6734, ISSN (Print): 2319 – 6726 www.ijesi.org ||Volume 6 Issue 4|| April 2017 || PP. 33-38 www.ijesi.org 33 | Page Simulation of Simple Pendulum Abdalftah Elbori1 , Ltfei Abdalsmd2 1 (MODES Department Atilim University Turkey) 2 (Material Science Department, Kastamonu University Turkey) Abstract :This paper presents the Physics Rotational Method of the simple gravity pendulum, and it also applies Physics Direct Method to represent these equations, in addition to the numerical solutions discusses. This research investigates the relationship between angular acceleration and angle to find out different numerical solution by using simulation to see their behavior which shows in last part of this article. Keywords: Physics Rotational Method, Simple Pendulum, Numerical Solution, Simulation I. INTRODUCTION A pendulum is a weight suspended from a pivot so that it can swing freely. When a pendulum is displaced sideways from its resting equilibrium position, it is subject to a restoring force due to gravity that will accelerate it back toward the equilibrium position [1] and [2] . When released, the restoring force combined with the pendulum's mass causes it to oscillate about the equilibrium position, swinging back and forth. The time for one complete cycle, a left swing and a right swing, is called the period. The period depends on the length of the pendulum and also on the amplitude of the oscillation. However, if the amplitude is small, the period is almost independent of the amplitude [3] and [4]. Many things in nature wiggle in a periodic fashion. That is, they vibrate. One such example is a simple pendulum. If we suspend a mass at the end of a piece of string, we have a simple pendulum. Here, we try to represents a periodic motion used in times past to control the motion of grandfather and cuckoo clocks. Such oscillatory motion is called simple harmonic motion[5]. It was Galileo who first observed that the time a pendulum takes to swing back and forth through small distances depends only on the length of the pendulum[3]. In this paper applies Physics - Rotational Method and Physics Direct Method to represent these equations. In the second step, it discusses Numerical Solution and Linearization of simple pendulum. In the third step in this paper figures out how to use Simulation of Simple pendulum and compare with double pendulum, finally we will find the relationship between angular acceleration and angle to investigate the numerical solution and simulation to see their behavior. II. PHYSICS – ROTATIONAL METHOD The pendulum is modeled as a point mass at the end of a massless rod. We define the following variables as in the figure 1: θ = angle of pendulum (0=vertical). R = length of rod. T = tension in rod. m = mass of pendulum. g = gravitational constant. Figure.1. Pendulum variables We will derive the equation of motion for the pendulum using the rotational analog of Newton's second law for motion about a fixed axis, which is τ = I α, where τ = net torque, I = rotational inertia α=θ= acceleration. The rotational inertia about the pivot is I=mR². Torque can be calculated as the vector cross product of the position vector and the force. The magnitude of the torque due to gravity works out to be . So, we have: Which simplifies to This is the equation of motion for the pendulum.
  • 2. Simulation of Simple Pendulum www.ijesi.org 34 | Page III. PHYSICS - DIRECT METHOD Let us consider Newton's second law . To show that there is nothing new in the rotational version of Newton's second law, we derive the equation of motion here without the rotational dynamics. As you will see, this method involves more algebra. We'll need the standard unit vectors, as in the Figure 2. Figure.2. standard unit vectors = unit vector in horizontal direction, = unit vector in vertical direction. Figure.3. One Pendulum By Figure 3 is easy to derive the kinematics of the pendulum as follows: , , The position is derived by a fairly simple application of trigonometry. The velocity and acceleration are then the first and second derivatives of the position. Next, we draw the free body diagram for the pendulum. The forces on the pendulum are the tension in the rod T and gravity. So, it is possible to write the net force as in the figure 4: Figure.4. Pendulum forces Using Newton's law and the pendulum acceleration we found earlier, we have It is possible to rewrite the vector components of the above equation as separate equations. This gives us two simultaneous equations: the first components is and the second is for the component. & Next, by doing some algebraic manipulations to eliminate the unknown T. Multiply the first equation by and the second by . mg T
  • 3. Simulation of Simple Pendulum www.ijesi.org 35 | Page (2) (3) By adding the equation (2) and (3) together, we obtain Therefore, , hence, θ''+ =0 IV. NUMERICAL SOLUTION AND LINEARIZATION Let us discuss how we can solve the equations of motion numerically, so that we can drive the simulation, we use the Runge-Kutta method for solving sets of ordinary differential equations. Firstly let us define a variable for the angular velocity Then we can write the second order equation (1) as two first order equations. Such as, Then, & (4) The restoring force must be proportional to the negative of the displacement. Here we have: , which is proportional to and not to itself. By using Talyor series to get approximation of the function at the equlibrium point , we obtain . Figure.5. Motion of Simple Pendulum Therefore, for small angles, we have , where . We have also the period and frequency are: , and , where and let We obtain FT
  • 4. Simulation of Simple Pendulum www.ijesi.org 36 | Page (5) V. SIMULATION OF SIMPLE PENDULUM. This simulation shows a simple pendulum operating under gravity. For small oscillations, the pendulum is linear, but it is non-linear for larger oscillations. We have where is positive constant. Hence θ''+ =0 (6) let us use represent state to solve this ordinary differential equation (6). Let’s start with a same step . Then, & (7) Open up a m-file and type: function dudt=pendulum (t,u) w=10; dudt(1,:) = u(2); dudt(2,:) = -w*sin(u(1)); end we note that, by looking at the figure.6, a number of frequencies increase as we decrease the value w. Let us save this file as “pendulum m”. We need to use MATLAB to solve l the differential equation by this code clear all tspan=[0,2*pi]; u0=[pi/4;0]; [t,u]=ode45(@pendulum,tspan,u0,[]); plot(t,u(:,1),'b-', 'Line Width', 2) xlabel('time') ylabel('angle') 0 1 2 3 4 5 6 7 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 time angle w=10 0 1 2 3 4 5 6 7 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 time angle w=100 Figure.6 Angular Displacement Note that as we increase then oscillations will increase. By another word if we decrease R = length of rod we will increase number of oscillations
  • 5. Simulation of Simple Pendulum www.ijesi.org 37 | Page V.1 Euler method We can also use Euler method, let us describe here is the code for the numerical solution of the equations of motion for a simple pendulum using the Euler method. There is important this, we note that these oscillations grow with time. The MATLAB code has already existed [1], just we insert our data as in the figure.7 length= 1; g=9.8; npoints = 250; dt = 0.04; omega = zeros(npoints,1); theta = zeros(npoints,1); time = zeros(npoints,1); theta (1) =0.2; for step = 1: npoints-1 omega(step+1) = omega(step) - (g/length) *theta(step)*dt; theta(step+1) = theta(step)+omega(step)*dt time(step+1) = time(step) + dt; end plot (time,theta,'r' ); xlabel('time (seconds) '); ylabel ('theta (radians)'); 0 1 2 3 4 5 6 7 8 9 10 -1.5 -1 -0.5 0 0.5 1 1.5 time (seconds) theta(radians) Simple Pendulum - Euler Method Figure.7 Numerical Solution by Euler Method VI. SIMULATION OF SIMPLE NON‐LINEAR. Although finding an analytical solution to the simple non‐linear model is not evident, it can be solved numerically with the aid of MATLAB‐Simulink. Start by isolating the highest order derivative from the linear model: The MATLAB‐Simulink model that solves this equation is given by the figure.8. Figure.8 Simulation of Simple Nonlinear Pendulum Note that the drag force must change sign based on the angular velocity of the pendulum. In other words, although the drag force is taken as constant, it must always act opposite to the direction of motion. If we run the figure.9, we obtain figure.9 and it depends on initial condition and the mass =55 and time=12 second, inertia= [ 1.25e-4 0 0; 0 0.208 0; 0 0 0.208], we obtain
  • 6. Simulation of Simple Pendulum www.ijesi.org 38 | Page Figure.9 coordinates axes VII. CONCLUSION The length of the simple pendulum is directly proportional to the square of the period of oscillation, we found that the pendulum goes slower than simple pendulum theory at larger angles. The time of this motion is called the period, the period does not depend on the mass of the pendulum or on the size of the arc through which it swings. Another factor involved in the period of motion is, the acceleration due to gravity (g), which on the earth is 9.8 m/s2. It follows then that a long pendulum has a greater period than a shorter pendulum. REFERENCES [1]. Kidd, R.B. and S.L. Fogg, A simple formula for the large-angle pendulum period. The Physics Teacher, 2002. 40(2): p. 81-83. [2]. Kenison, M. and W. Singhose. Input shaper design for double-pendulum planar gantry cranes. in Control Applications, 1999. Proceedings of the 1999 IEEE International Conference on. 1999. IEEE. [3]. Ganley, W., Simple pendulum approximation. American Journal of Physics, 1985. 53(1): p. 73-76. [4]. Shinbrot, T., et al., Chaos in a double pendulum. American Journal of Physics, 1992. 60(6): p. 491-499. [5]. Åström, K.J. and K. Furuta, Swinging up a pendulum by energy control. Automatica, 2000. 36(2): p. 287-295.