How to constrain the motion of geometry in only one direction in MBD

Raheem Sterling_22160
Raheem Sterling_22160 Altair Community Member
edited August 5 in Community Q&A

Hi,

When I use the MBD to apply a force on geometery in z direction, I want to constrain the direction only in z direction, which means  the motion in x and y direction should be limited, how to achieve this? 

Thanks

Tagged:

Answers

  • Stephen Cole
    Stephen Cole
    Altair Employee
    edited August 5

    Hi Raheem,

    Are you connecting to a MBD solver or using the in-built Force Controller? If connecting to a MBD solver the constraint would have to come from the MBD side.  If using a force controller you can set the Constrain Motion Directions option, for example shown below constrained to Z direction only.

    image


    Regards

    Stephen

  • Raheem Sterling_22160
    Raheem Sterling_22160 Altair Community Member
    edited August 5

    Hi Raheem,

    Are you connecting to a MBD solver or using the in-built Force Controller? If connecting to a MBD solver the constraint would have to come from the MBD side.  If using a force controller you can set the Constrain Motion Directions option, for example shown below constrained to Z direction only.

    image


    Regards

    Stephen

    Thanks Stephen, I used user defined code to connect the MBD, I set geometry.translation.setX(0.0) , and the same for setY. It seems right, I am not sure if it is correct.

    Regards

    Raheem