フィルターのクリア

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 Center および File ExchangeAssembly についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by