Skip to main content
gamedev.net
🔒 Locked

pendulum formula

Started by mike74 Aug 6, 2005 at 5:25 PM 4 replies 1.1k views
Original Post
mike74
mike74
Does anyone know what the formula is for the angle of a standard pendulum in terms of time? Basically, I'm looking for something like theta = f(time) You probably have to define mass, length of the string, gravity, and maybe a few other things as well. mike http://www.coolgroups.com/
Mike C.http://www.coolgroups.com/zoomer/http://www.coolgroups.com/ez/
Mercury
Mercury
The pendulum formulae can be found Here. It depends on gravity and the length of the string. Mass doesn't factor in. (Unless you're trying to calculate the air resistance effecting it. Then it would, but that would add another level of complexity to it)
Eelco
Eelco
strictly speaking, the closed form solution of this system is not known.

linearized around the rest position however, it is quite solvable, given you define the problem a little better.

google clearly is your friend if you want to know the whole story.
mike74
mike74
So, basically, it looks like a good approximation is this:

theta = theta0 * cos(sqrt(gravity/length) * time)

So, when you say "linearized", are you talking about using the small angle approximation to make "sin(theta)" equal to "theta"?


mike
http://www.coolgroups.com/
Mike C.http://www.coolgroups.com/zoomer/http://www.coolgroups.com/ez/
bjle
bjle
Yep, that's what he's talking about.
kSquared
kSquared
Quote:
Original post by mike74
Does anyone know what the formula is for the angle of a standard pendulum in terms of time?

Basically, I'm looking for something like

theta = f(time)

Let θ be the angle of the pendulum made with the vertical, L the length of the connecting rod, T the force of tension in the rod, m the mass of the pendulum, and g the gravitational constant.

Using Newton's second law for rotational forces (τ = Iα), observe that the pendulum's rotational inertia around the pivot point is I = mR2. It works out that the torque due to gravity is τ = -Lmg · sin(θ). This gives us -Lmg · sin(θ) = mR2α, which in turn simplifies to θ" = -g/L · sin(θ).

Now we want θ as a function of an external variable, time (t), or θ(t). For small oscillations, we can use the approximation θ = sin(θ) (the "linearization" mentioned before), so we get θ(t) = θ0 · cos(sqrt[g/L] · t) as the final answer.
- k2 "Choose a job you love, and you'll never have to work a day in your life." — Confucius"Logic will get you from A to B. Imagination will get you everywhere." — Albert Einstein"Money is the most egalitarian force in society. It confers power on whoever holds it." — Roger Starr{General Programming Forum FAQ<

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.