sympy - mechanics & pydy - constraints question

43 views
Skip to first unread message

Jan

unread,
Sep 5, 2023, 3:40:50 AM9/5/23
to sympy
I am in the process of teaching myself how to use the sympy mechanics package for multi-body modelling with the addition of the pydy package.

I am running into an issue when using the generate_ode_function tool in pydy and am looking for a bit of guidance as to what is going on.

An example of the issue that I am running into is here - I have adapted the quick-return example from this article to include an additional body, attached to upper sliding point. I am able to run the article's model without issue and can match the results seen there, however when I try to attach this additional body, the simulation falls apart with the constraints failing.

The additional body is the top grey part, pointing upward in the below picture.
QuickReturn_Extended.png

 I imagine the issue that I am running into is due to the way that the constraints are defined, however I can't see how the constraints on the new body are different from what was required for the article's model.

Reply all
Reply to author
Forward
0 new messages