Simscape Multibody Contact Forces Library

Contact force examples and library.
24.3K Downloads
Updated 6 Dec 2023
This library contains contact force models and force laws for multibody modeling in Simscape Multibody. They cover 2-dimensional and 3-dimensional problems with or without friction. More than 45 example models are provided, including basic contact force examples (bouncing ball) and more complex applications such as a cam-follower mechanism, differential drive robot, and a robot arm with a gripper. Both linear and nonlinear force laws are included, and you can easily add your own custom force law to your multibody dynamics model.
Please note that the Spatial Contact Force block has been added in R2019b. You should see if this block meets your needs before using this library.
Use the "Download" button above to get files compatible with the latest release of MATLAB.
Use the links below to get files compatible with earlier releases of MATLAB.
See how to use these forces to model a cam-follower mechanism:
Learn more about multibody simulation with Simscape Multibody by watching this webinar
Find other Simscape examples by searching posts for the keyword "physical modeling"
Learn more about MathWorks Simscape Products:

Cite As

Steve Miller (2024). Simscape Multibody Contact Forces Library (https://github.com/mathworks/Simscape-Multibody-Contact-Forces-Library/releases/tag/23.2.5.1), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2023b
Compatible with R2015a to R2023b
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!

CFL_Core/Libraries

CFL_Core/Libraries/Extrusions

CFL_Core/Scripts_Data

CFL_Core/Scripts_Data/Doc

CFL_Core/Test_Models

Examples/2D/Ball_Bearing

Examples/2D/Ball_Bearing/Scripts_Data

Examples/2D/Cam_Follower

Examples/2D/Cam_Follower/UI

Examples/2D/Cam_Follower_Constraint

Examples/2D/Geneva_Drive

Examples/2D/Geneva_Drive/CAD/Export

Examples/2D/Mini_Golf

Examples/2D/Mini_Golf/Scripts_Data

Examples/2D/Simple/Collision

Examples/2D/Simple/Friction

Examples/2D/Spinning_Boxes

Examples/3D/Caster_4_Whl

Examples/3D/Gripper_2Belts

Examples/3D/MATLAB_Build/Spheres_in_Sphere

Examples/3D/Robot_2_Whl

Examples/3D/Robot_6Legs_4Bar

Examples/3D/Robot_6Legs_4Bar/Scripts_Data

Examples/3D/Simple/Collision

Examples/3D/Simple/Friction

Examples/3D/Tread_Drive

Scripts_Data

Scripts_Data/Doc

CFL_Core/Libraries

CFL_Core/Test_Models

Examples/2D/Ball_Bearing

Examples/2D/Ball_Bearing/Libraries

Examples/2D/Cam_Follower

Examples/2D/Cam_Follower_Constraint

Examples/2D/Conveyor_Belts

Examples/2D/Geneva_Drive

Examples/2D/Geneva_Drive/CAD/Export

Examples/2D/Mini_Golf

Examples/2D/Mini_Golf/Libraries

Examples/2D/Simple/Collision

Examples/2D/Simple/Friction

Examples/2D/Spinning_Boxes

Examples/3D/Caster_4_Whl

Examples/3D/Gripper_2Belts

Examples/3D/MATLAB_Build/Spheres_in_Sphere

Examples/3D/Robot_2_Whl

Examples/3D/Robot_6Legs_4Bar

Examples/3D/Robot_6Legs_4Bar/Libraries

Examples/3D/Simple/Collision

Examples/3D/Simple/Friction

Examples/3D/Tread_Drive

Version Published Release Notes
23.2.5.1

See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Contact-Forces-Library/releases/tag/23.2.5.1

23.1.5.1

See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Contact-Forces-Library/releases/tag/23.1.5.1
See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Contact-Forces-Library/releases/tag/23.1.5.1

22.2.5.1

See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Contact-Forces-Library/releases/tag/22.2.5.1

22.1.5.1

See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Contact-Forces-Library/releases/tag/22.1.5.1

22.1.5.0

See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Contact-Forces-Library/releases/tag/22.1.5.0

21.2.5.1

See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Contact-Forces-Library/releases/tag/21.2.5.1

21.2.5.0

See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Contact-Forces-Library/releases/tag/21.2.5.0

21.1.5.1

See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Contact-Forces-Library/releases/tag/21.1.5.1

21.1.5.0

See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Contact-Forces-Library/releases/tag/21.1.5.0

20.2.5.1

See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Contact-Forces-Library/releases/tag/20.2.5.1

20.2.5.0

See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Contact-Forces-Library/releases/tag/20.2.5.0

19.2.5.1

See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Contact-Forces-Library/releases/tag/19.2.5.1

19.2.5.0

See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Contact-Forces-Library/releases/tag/19.2.5.0

19.1.4.1

See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Contact-Forces-Library/releases/tag/19.1.4.1

18.2.4.1

See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Contact-Forces-Library/releases/tag/18.2.4.1

18.1.4.1

See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Contact-Forces-Library/releases/tag/18.1.4.1

17.2.4.1

See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Contact-Forces-Library/releases/tag/17.2.4.1

17.1.4.1

See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Contact-Forces-Library/releases/tag/17.1.4.1

16.2.4.1

See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Contact-Forces-Library/releases/tag/16.2.4.1

16.1.4.1

See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Contact-Forces-Library/releases/tag/16.1.4.1

15.2.4.1

See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Contact-Forces-Library/releases/tag/15.2.4.1

15.1.4.1

See release notes for this release on GitHub: https://github.com/mathworks/Simscape-Multibody-Contact-Forces-Library/releases/tag/15.1.4.1

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.