Skip to content

problems in useing joints in sympy.physics.mechanics #25613

Answered by moorepants
stein104 asked this question in Q&A
Discussion options

You must be logged in to vote

This makes a pin joint a distance of l/2 from the rod's mass center:

rev = PinJoint('J', wall1, rod, coordinates=q1, speeds=u1, 
                joint_axis=wall1.z,
                child_point=l/2*rod.x)

This glues the point mass to l*3/2 away from the rod's mass center.

fix = WeldJoint('K', rod, point_mass, parent_point=l*(3/2)*rod.frame.x)   
joints = (rev, fix)
left_end = rod.masscenter.locatenew('left_end', -l*(3/2) * rod.frame.x)

So it seems your rod is 3*l long and the mass center of the rod is located at the rod's geometric center but the pin joint is located l/2 from its mass center. And then point mass is l*3/2 from the rod's mass center.

The total inertia of this rod + mass w…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@stein104
Comment options

@moorepants
Comment options

@moorepants
Comment options

@stein104
Comment options

@moorepants
Comment options

Answer selected by stein104
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants