How to use the Spatial Contact Force block introduced in R2019b

조회 수: 4 (최근 30일)
Hi,
I am trying to model a contact force betweeen a cylinder and a plane. Previously I have used the "Sphere to Plane Force" in https://se.mathworks.com/matlabcentral/fileexchange/47417-simscape-multibody-contact-forces-library. However I wanted to try the new "Spatial Contact Force" in the Simscape Multibody library but I can't get it to work. I tried to connect the block directly to my cylinder and plane but it does not match, which I suspect is because the "Spatial Contact Force" does not use "Physical System" connections, se figure below.
If someone could please show an example of how to use the "Spatial Contact Force" block as well to enlighten me on which best to use between "Spatial Contact Force" and the "Sphere to Plane Force" I would be most thankful.
Sincerly
Christoffer

채택된 답변

Steve Miller
Steve Miller 2020년 8월 13일
You need to expose a Geometry port on any solids you wish to connect to the Spatial Contact Force block.
The instructions are on this page in the documentation: Modeling Contact Force Between Two Solids, section "Connect to Solid Blocks" Enable the Export: Entire Geometry option.
Then you can connect the blocks directly:

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Bodies에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by