Equations of motions for 3D pendulum using spherical joint #25971
-
does anybody have experience with obtaining equations of motions in sympy for 3D pendulum using sympy mechanics ? I tried to do it the easiest way as possible, but the resulting mass matrix has NaNs in it, does anybody know how to fix the problem ? Here's the code I'm using:
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 11 replies
-
It is good to include cross references: https://stackoverflow.com/questions/77629242/equations-of-motions-for-3d-pendulum-in-sympy?noredirect=1#comment136860754_77629242 |
Beta Was this translation helpful? Give feedback.
-
Here is an example of a pendulum with spherical joints: https://pydy.readthedocs.io/en/stable/examples/three-link-conical-pendulum.html |
Beta Was this translation helpful? Give feedback.
-
It is generally best not to invert the mass matrix symbolically. You can introduce divide-by-zeros by doing so, depending on your choice of coordinates. |
Beta Was this translation helpful? Give feedback.
-
Also, make sure you set |
Beta Was this translation helpful? Give feedback.
-
A conical pendulum has only 2 generalized coordinates. You are formulating it with 3. My guess is the singularity is associated with having an acceleration equation for a mass-less/inertia-less state. |
Beta Was this translation helpful? Give feedback.
A conical pendulum has only 2 generalized coordinates. You are formulating it with 3. My guess is the singularity is associated with having an acceleration equation for a mass-less/inertia-less state.