Multibody Contact Force Block Examples in Simscape Multibody
Version 24.1.1.6 (4.19 MB) by
Steve Miller
Examples demonstrating contact force modeling in Simscape Multibody
This repository contains a set of examples that demonstrate the Spatial Contact Force block and Planar Contact Force block. The examples cover:
- Solid-to-solid contact between parameterized solids like bricks, spheres, and cylinders
- Contact between CAD geometry including STEP files.
- Point Cloud definition for efficient contact modeling of complex shapes.
- Grid Surface modeling for efficient contact modeling with terrain.
- Custom force law definition including collision and friction forces.
Use the "Download from GitHub" button above to access files compatible with the current release of MATLAB.
Use the links below to access files compatible with earlier releases of MATLAB.
- For R2024a: Use the Download button above
- For R2023b: https://github.com/mathworks/Spatial-Contact-Force-Examples-Simscape-Multibody/archive/refs/tags/23.2.1.6.zip
- For R2023a: https://github.com/mathworks/Spatial-Contact-Force-Examples-Simscape-Multibody/archive/refs/tags/23.1.1.5.zip
- For R2022b: https://github.com/mathworks/Spatial-Contact-Force-Examples-Simscape-Multibody/archive/refs/tags/22.2.1.5.zip
- For R2022a: https://github.com/mathworks/Spatial-Contact-Force-Examples-Simscape-Multibody/archive/refs/tags/22.1.1.5.zip
- For R2021b: https://github.com/mathworks/Spatial-Contact-Force-Examples-Simscape-Multibody/archive/refs/tags/21.2.1.3.zip
- For R2021a: https://github.com/mathworks/Spatial-Contact-Force-Examples-Simscape-Multibody/archive/refs/tags/21.1.1.2.zip
- For R2020b: https://github.com/mathworks/Spatial-Contact-Force-Examples-Simscape-Multibody/archive/refs/tags/20.2.1.1.zip
- For R2020a: https://github.com/mathworks/Spatial-Contact-Force-Examples-Simscape-Multibody/archive/refs/tags/20.1.1.0.zip
Open the project file Spatial_Contact_Force_Examples.prj to get started.
To learn more about contact modeling with Simscape Multibody, please visit:
Product Capabilities:
- Simscape™
- Simscape Battery™
- Simscape Driveline™
- Simscape Electrical™
- Simscape Fluids™
- Simscape Multibody™
This submission uses the S^2 Sampling Toolbox Anton Semechko (2022). Suite of functions to perform uniform sampling of a sphere (https://github.com/AntonSemechko/S2-Sampling-Toolbox), GitHub. Retrieved March 24, 2022.
Cite As
Steve Miller (2024). Multibody Contact Force Block Examples in Simscape Multibody (https://github.com/mathworks/Spatial-Contact-Force-Examples-Simscape-Multibody/releases/tag/24.1.1.6), GitHub. Retrieved .
MATLAB Release Compatibility
Created with
R2024a
Compatible with R2020a to R2024a
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Models/Bouncing_Ball
Models/Custom_Force_Law
Models/Disk_Basic
Models/Mesh_Grid
Models/Point_Cloud_Basic
Models/Point_Cloud_StrWhl
Models/Ratchet_Pawl/Scripts_Data
Models/Spinning_Top/Tippe
Models/Spinning_Top/Totem
Scripts_Data
Scripts_Data/Convex_Hull
Scripts_Data/Point_Cloud
Scripts_Data/Point_Cloud/Resources
Workflows/Testing
Models/Bouncing_Ball
Models/Contact_Pairs
Models/Custom_Force_Law
Models/Disk_Basic
Models/Mesh_Grid
Models/Point_Cloud_Basic
Models/Point_Cloud_StrWhl
Models/Ratchet_Pawl
Models/Ratchet_Pawl/Libraries
Models/Spinning_Top/Tippe
Models/Spinning_Top/Totem
Models/Bouncing_Ball/Overview
Models/Custom_Force_Law/Overview
Models/Disk_Basic/Overview
Models/Mesh_Grid/Overview
Models/Point_Cloud_Basic/Overview
Models/Point_Cloud_StrWhl/Overview
Models/Ratchet_Pawl/Overview
Models/Spinning_Top/Tippe/Overview
Models/Spinning_Top/Totem/Overview
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.