Why do I connect two OFFRFobjects with GenericJoint and they still separate in the simulation? #27
-
As stated in the title, I have connect two OFFRFobjects by GenericJoint and constraint all degree of freedom as constrainAxes = [1,1,1,1,1,1] using MarksuperelementRigid. However, when I added load and started dynamicsolver, the two OFFRFobjects were still separated during the simulation. I have set the offset of the marker, but the Axes of two object were different as the following photo. Does that influent the simulation result? How to deal with this problem? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
If you use a GenericJoint, it connects two rigid body markers. They need to have same orientation and position initially. If you want to connect them with different local frames, then you need to add a markerRotation at the GenericJoint (and possibly and offset in the joint). |
Beta Was this translation helpful? Give feedback.
If you use a GenericJoint, it connects two rigid body markers. They need to have same orientation and position initially. If you want to connect them with different local frames, then you need to add a markerRotation at the GenericJoint (and possibly and offset in the joint).
I assume that you use the index2 solver: in this case, different initial orientation will lead to arbitrary solution. If you use generalized alpha, it would try to immediately rotate and move the bodies such that the two frames of the GenericJoint match (which may cause severe problems for the Newton solver).