Angle/distance (Theta) moved by a pendulum bob in t seconds.

In summary, the conversation discusses a programming project to model a pendulum using the Java Swing class for graphics. The individual is having trouble understanding the Physics behind it and asks for help. They then discuss their initial assumptions and calculations, but realize their equations do not make sense. They are given a suggested equation and links to resources for further explanation. The conversation concludes with gratitude for the help and a warning about the importance of differential equations in mathematical models.
  • #1
PieKook
2
0
Hello.

This is not a Physics homework problem, but rather a Programming project. I am asked to model a pendulum using the Java Swing class for graphics, but I'm having a few problems understanding the Physics behind it, and would appreciate a few answers and some guidance.


Doing the research, I found some energy equations (K = 1/2*m*v^2; U = mgh), but I don't think they'll be too useful in my calculations.

I then found the following equations:

Omega (W) = SQRT(g/L), where
Omega is the angular frequency,
g is the acceleration due to gravity, and
L is the length of pendulum the string.

Theta (Angular Frequency) = Theta_MAX * cos(Omega * dt + Phi), where
Theta is the angular distance moved in the given time period dt,
Theta_MAX is the maximum angle for the pendulum, and
Phi is the phase shift.

I think I want to use the Theta equation for program, but I'm not sure how.



Here are my initial assumptions for my model:

* Bob starts from rest at an angle of 20 degrees (0.349 radians)
* g = 10 m/s^2
* L = 100 m
* dt = 0.1 sec (time increment for displaying the location of the bob at different intervals)




Here are my calculations:

Omega = SQRT(g/L) = SQRT(10/100) = 0.32 rad/s (approximately 18.33 degrees per second)


Now here's where I think my calculations are incorrect when I try to find Theta, the angular displacement in each 0.1 second time increment. This angle will be used to draw the pendulum string (using the Java drawLine method).

Theta = Theta_Max * cos(Omega * dt + Phi)

Theta = 0.349 * cos(0.32 * 0.1 + 0.349) = 0.349 (?)

It seems that in this equation, as the time increment dt approaches to 0, the angular displacement Theta moved in these 0 seconds approaches to 0.349 * cos(Omega * 0 + Phi) = 0.349 * cos(Phi) = 0.349 * cos(0 + 0.349) = 0.328 rad, which does not make sense.


Am I mistaken with the phase shift? Or is the whole equation misplaced or something? I'm fairly sure this is the equation I need to figure out how far the bob has moved in each 0.1 second time increment.


Any information on the matter will be greatly appreciated.

Thank you.
 
Physics news on Phys.org
  • #2
Did you read the wiki artical on pendulums? That is an improvement on what you currently have.

The best place to start a pendulum model is from Newtons laws.

http://Newton.ex.ac.uk/research/qsystems/people/sque/physics/simple-pendulum/" is a link to a site the gives a pretty good derviation. For your model you want to start from:

[tex] \ddot {\theta } = - \frac g l sin(\theta) [/tex]

Use a 4th order Runga kutta integration scheme to get [itex] \theta [/itex] as a function of time.
 
Last edited by a moderator:
  • #3
As long as you are working with a pendulum whose length of swing is very short compared to the length of the pendulum itself, [itex]\theta[/itex] will be small. For small angles [itex]sin(\theta)[/itex] is approximately equal to [itex]\theta[/itex] so the differential equation
[tex] \ddot {\theta } = - \frac g l sin(\theta) [/tex]
can be approximated by
[tex]\ddot{\theta}= -\frac{g}{l} \theta[/tex]
and the general solution to that is
[tex]\theta(t)= C cos(\sqrt{\frac{g}{l}}t)+ D sin(\sqrt{\frac{g}{l}}t)[/itex]
In particular, if the pendulum is held up to angle [itex]\Theta_0[/itex] and released (initial speed 0) at t= 0,
[tex]\theta(t)= \Theta_0 cos(\sqrt{\frac{g}{l}}t)[/itex]
 
  • #4
Thank you very much for your time and help. I implemented it using this equation, and the pendulum works perfectly. :smile:



Integral said:
Did you read the wiki artical on pendulums? That is an improvement on what you currently have.

I did, as well as my old Physics book and a few articles Google retrieved for me, but none of them gave me the equation you guys had in mind. My search query was "Pendulum Motion Equations."



Integral said:
The best place to start a pendulum model is from Newtons laws.

http://Newton.ex.ac.uk/research/qsystems/people/sque/physics/simple-pendulum/" is a link to a site the gives a pretty good derviation. For your model you want to start from:

[tex] \ddot {\theta } = - \frac g l sin(\theta) [/tex]

Use a 4th order Runga kutta integration scheme to get [itex] \theta [/itex] as a function of time.


I kind of get the derivation by following the steps, but I'm afraid I've never heard of the Runge–Kutta method. I tried to research it a bit, but I've never had a Differential Equations class, so it's all going over my head.






HallsofIvy said:
As long as you are working with a pendulum whose length of swing is very short compared to the length of the pendulum itself, [itex]\theta[/itex] will be small. For small angles [itex]sin(\theta)[/itex] is approximately equal to [itex]\theta[/itex] so the differential equation
[tex] \ddot {\theta } = - \frac g l sin(\theta) [/tex]
can be approximated by
[tex]\ddot{\theta}= -\frac{g}{l} \theta[/tex]
and the general solution to that is
[tex]\theta(t)= C cos(\sqrt{\frac{g}{l}}t)+ D sin(\sqrt{\frac{g}{l}}t)[/itex]
In particular, if the pendulum is held up to angle [itex]\Theta_0[/itex] and released (initial speed 0) at t= 0,
[tex]\theta(t)= \Theta_0 cos(\sqrt{\frac{g}{l}}t)[/itex]


Thank you for the step-by-step explanation. I wouldn't have thought of that. This, in addition to Integral's link, have been very helpful.


Thanks again!
 
Last edited by a moderator:
  • #5
Note that Halls solution involves a small angle approximation, this means that it will not give accurate positions if the initial angle is much greater then ~.1 radians. This is the usual approximation that is made. If you want meaningful results for large angles you will need to find a way do solve the non linear problem ( where I stopped).

To do any decent work in mathematical models Differential equations are essential. (just a warning! :smile: )
 

FAQ: Angle/distance (Theta) moved by a pendulum bob in t seconds.

What is the formula for calculating the angle moved by a pendulum bob in a given time?

The formula for calculating the angle moved by a pendulum bob in a given time is θ = (L/g) * sin(ωt), where θ is the angle in radians, L is the length of the pendulum, g is the acceleration due to gravity, ω is the angular velocity, and t is the time in seconds.

How does the length of the pendulum affect the angle moved by the pendulum bob?

The length of the pendulum affects the angle moved by the pendulum bob because it is directly proportional to the angle. The longer the pendulum, the larger the angle moved in a given time.

Does the mass of the pendulum bob affect the angle moved?

No, the mass of the pendulum bob does not affect the angle moved. The angle is only dependent on the length of the pendulum, the acceleration due to gravity, angular velocity, and time.

How does the angle moved by a pendulum bob change with increasing time?

The angle moved by a pendulum bob increases with increasing time, but not at a constant rate. The angle starts at its maximum displacement and decreases as the pendulum swings back and forth, reaching zero at the equilibrium point and then increasing again as the pendulum swings in the opposite direction.

What factors affect the accuracy of the angle moved by a pendulum bob?

The accuracy of the angle moved by a pendulum bob is affected by several factors, including the length of the pendulum, the amplitude of the swing, air resistance, and the precision of the measurement tools used to calculate the angle.

Similar threads

Replies
76
Views
5K
Replies
1
Views
839
Replies
12
Views
3K
Replies
2
Views
2K
Replies
9
Views
1K
Replies
19
Views
2K
Replies
20
Views
1K
Replies
2
Views
5K
Back
Top