-
Notifications
You must be signed in to change notification settings - Fork 0
Exemple: Piston Connecting Rod
A disk of inertia Id
is connected to an extremity of a bar with a distance of a
of its center. This bar has length b
and mass mb
and in the other extremity is connected a piston of mass mp
.
So, lets call (x, y)
the position of the extremity of the bar connected to the disk, and (x+q, 0)
the position of the piston.
To solve this problem we are going to use three variables that we call x
, y
and q
.
Therefore, our variable vector X
is (x, y, q)
.
As this problem has only one degree of freedom, that could be the angle theta
of the disk, we need two constraint functions:
So, the gradient is
In this problem, we have three objects and we don't have any potential energy, only kinetic energy.
If it rotates with an angular speed of w
, it will have the energy of
After some calculs, we get the energy like
Summing all the energies we get
Putting it in a matricial form we get:
As we know, we have the lagrangian operator:
Which, with the matricial notation of energy we get only:
Once we get the lagrangian, and knowing that there is no external force, we have:
Which gives us
Adding the constraint functions we get
Which gives, in our case
We could use this matrix, with the initial conditions.
But we are going to inverse the matrix Mexp
to show that we can make the solution faster.
So, as show in this link, we can find the inverse of Mexp
using the inverse of M
and the gradient of g
.
- Finish and show inverse of
Mexp