Constraints #90
Replies: 3 comments 2 replies
-
I guess in that case I could split up the string and have constrains on both of them. However, this isn't really what I want to do. I need something where the two parts of the string are of non-constant length but the sum of both is constant. Ie a string running over a pulley with two weights and the weights are moving up and down. |
Beta Was this translation helpful? Give feedback.
-
Constraining something onto a given path is a sliding joint. This requires to parameterize the path, and there are three options:
What you describe in your reference can be realized with ANCFCable2D elements in combination (with possibly a set of) ObjectContactCircleCable2D or ObjectContactFrictionCircleCable2D, checkout the example ANCFcontactCircle.py which should work well to start with. |
Beta Was this translation helpful? Give feedback.
-
Thank you! I will look into the various options. |
Beta Was this translation helpful? Give feedback.
-
From reading the Doc, I understand that we can use e.g. DistanceConstraint as in pendulum2Dconstraint.py to define the distance between ground and the weight.
How would I implement a distance that is constant along a given path?
Imagine some object obstructing the path of the string as shown here:
https://sites.pitt.edu/~vincentm/OLLI-WebPhysSciFi/BlockedPendDiscuss.html
Beta Was this translation helpful? Give feedback.
All reactions