What are the differences between "Spatial Contact Force" block in Simulink/Simscape Multibody Library and "Simscape Multibody Contact Forces Library", if any?
5 次查看(过去 30 天)
显示 更早的评论
Hello,
Is there any difference between "spatial contact force block" in Simulink/Simscape Multibody Library and "Simscape Multibody Contact Forces Library"?
- Spatial Contact Force Block: https://www.mathworks.com/help/physmod/sm/ref/spatialcontactforce.html
- Simscape Multibody Contact Forces Library: https://www.mathworks.com/matlabcentral/fileexchange/47417-simscape-multibody-contact-forces-library
As far as I see, both of them works in the same manner however Spatial Contact Force block is a plug-and-play block whereas Simscape Multibody Contact Forces Library requires to determine the possible contact types in advance and requires to use related contact-type blocks accordingly.
Are there any advantages or disadvantages of one over the other?
Thanks in advance.
Best regards,
Hakan
0 个评论
采纳的回答
Steve Miller
2021-3-25
Both are intended to help users model contact forces in Simscape Multibody models. If the Spatial Contact Force meets your needs, I highly recommend you use that block.
The Simscape Multibody Contact Forces Library was created long before the Spatial Contact Force block was added to Simscape Multibody. We created that library to examine use cases and prioritize features for the Spatial Contact Force block. We are maintaining that library on the File Exchange because it is an example of how you could create your own custom contact force law and custom friction law. If you are stuck in a release prior to when the feature you need was added to the Spatial Contact Force block, you could use that library.
Users of the Simscape Multibody Contact Forces Library should be able to (relatively) easy upgrade their models to the Spatial Contact Force block. There are a few contact types that are not (yet) direcly supported by the Spatial Contact Force block (inner surfaces of cylinders, cones, and spheres) but there are new options being added reach release so keep checking.
--Steve
3 个评论
Steve Miller
2021-3-25
This looks good to me! Depending on the degrees of freedom involved (if the peg, for example, cannot rotate), you might even be able to get away with just Joint Limits along some degrees of freedom. The option you have chosen is the most general and should work fine.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simscape Multibody 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!