MATLAB Answers

What are the differences between "Spatial Contact Force" block in Simulink/Simscape Multibody Library and "Simscape Multibody Contact Forces Library", if any?

8 views (last 30 days)
Hello,
Is there any difference between "spatial contact force block" in Simulink/Simscape Multibody Library and "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?
Let me kindly mention you please @Steve Miller.
Thanks in advance.
Best regards,
Hakan

Accepted Answer

Steve Miller
Steve Miller on 25 Mar 2021
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 Comments
Hakan Ertugrul
Hakan Ertugrul on 25 Mar 2021
Perfect. Thanks for your encouragement :-)
I will start with no rotation degree of freedom to be simple as you mentioned but I plan to generalize with 6-DOF.
I think I should actuate the peg with force, leave the automatic calculation for motion, otherwise peg can penetrate the solids of holes, right?
I also plan to measure force/torque values at the tip during contact. Can I do it with 6-DOF Joint or Bushing Joint because there is obviously no force/torque measurement sensor like "Transform Sensor"? Or do you have any suggestion for measuring the reaction force/torques in vectoral form?

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!