-
Notifications
You must be signed in to change notification settings - Fork 0
Exemple: Simple Pendulum (Cartesian parameterization)
Let's suppose that we have a pendulum of mass m
, which describes a circular route of radius a
that starts at an angle theta0
with speed 0
.
This same problem is already described in the link Exemple: Simple Pendulum (Angular parameterization). But instead of using the angle theta
as parameter, we are going to use the variables x
and y
which describes the cartesian position of the mass.
We start at the position (x0, y0)
and without any velocity, so, we have that
The kinetic energy is given by the speed how the mass is moving in space. So it's only:
The potential energy is given only by the position of y
and so we have
So, the total energy is
In a matricial form we have that
As we don't have external force:
In a matrix notation, we have
As before we had only one degree of freedom for theta
, the real problem has only one degree of freedom.
Once we have two variables, and one degree of freedom, we need one contraint function g
.
So, as the point (x, y)
is in a circle, we add the constraint function g
that keeps the point in the circle:
But instead of having g=0
we will use the equation
Which means
We write it in a matrix notation to get
So, our real system equation is