필터 지우기
필터 지우기

How can I create a custom joint or constraint in SimMechanics?

조회 수: 1 (최근 30일)
Pedro Simplicio
Pedro Simplicio 2014년 9월 26일
댓글: Pedro Simplicio 2014년 10월 1일
Hello,
I have a SimMechanics model where I'd like to include a weld joint (or, alternatively, a 3D translational+rotational constraint) that could be deactivated after a certain simulation time.
I've tried to create such a component using Simscape language, but with no success since I couldn't interface it with the SimMechanics body coordinate connector port.
Does anyone know if it's possible to create this interface? Alternatively, how can we access the source code of the weld joint and start from there? Or is there another way of achieving my objective?
Thank you so much!

답변 (1개)

Abe
Abe 2014년 9월 30일
Hello Pedro. Objects of different domains (SimMechanics vs Simscape) cannot be connected. Same idea with (SimEletronics vs SimPowersystems vs SimFoundation vs etc). What you can do is use a Simscape->PS block or PS->Simscape block to to send signals to force actuator inputs within the SimMechanics environment. For instance, you can tell it to apply a force for up to six seconds after which you make the force step down to a value of zero.
As you have found joints within the SimMechanics environments, you should be able to double-click the joint and tell it you want to add a force actuator and/or force sensor if I recall.
Maybe this will help you get to the next step. Cheers.
  댓글 수: 1
Pedro Simplicio
Pedro Simplicio 2014년 10월 1일
Thank you so much for your reply, Abe. That's indeed the workaround approach I'm employing right now, although it's not very robust because of the stiffness of the solution. The possibility of interfacing Simscape code with SimMechanics 3D connectors would clearly introduce a nice degree of modelling flexibility here.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Assembly에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by