Skip to content

Additional Range of Motion Constraint for GenericJoint #17

Discussion options

You must be logged in to vote

This is an interesting question, and it is in general possible. In a recent test, which did not yet make it into the examples section of Exudyn, we did the following for a TorsionalSpringDamper (which could be also adapted for a regular SpringDamper):

def UFtsd(mbs, t, itemNumber, rotation, angularVelocity, stiffness, damping, offset):
f = 0.
limPos=pi
limNeg=-pi
if rotation > limPos:
f = 50stiffness(rotation-limPos)*2 + stiffness(rotation-offset) + dampingangularVelocity
elif rotation < limNeg:
f = -50
stiffness*(rotation-limNeg)*2 + stiffness(rotation-offset) + dampingangularVelocity
else:
f = stiffness
(rotation-offset) + damping*angularVelocity
return f

This limits our joint with a quad…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by csas8682
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants