How do I customize contact force calculation in Simscape Multibody?
조회 수: 4 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2025년 10월 21일 0:00
답변: MathWorks Support Team
2025년 10월 21일 2:22
I want to implement my customized contact force when contact happens between two soilds in Simscape Multibody R2024b.
채택된 답변
MathWorks Support Team
2025년 10월 21일 0:00
The Spatial Contact Force block is designed to support custom friction and normal force laws. You set this up in the dialog by choosing Normal Force->Method->Provided by Input and/or Frictional Force->Method->Provided by Input, which expose input ports on the block. The normal force input expects a scalar normal force magnitude signal. The frictional force input expects a 2x1 friction force vector signal (x and y components of friction with respect to the contact frame). So taken together, the normal and frictional force inputs fully define the total 3D contact force. The outputs you can sense from the Spatial Contact Force block should likely be sufficient for creating custom normal and frictional forces. A common approach is to feed the outputs of the Spatial Contact Force block into a MATLAB Function block which computes the forces, and then feed those forces back into the Spatial Contact Force block. For instance, simple friction forces like Coulomb friction are usually based on tangential velocity (i.e., sliding velocity) and normal force, both of which can be sensed by the block; simple normal forces are usually based on penetration depth and penetration velocity ("Relative Normal Velocity"), both of which can also be sensed by the block.
For reference, this doc page attempts to illustrate the contact plane and contact frame.
댓글 수: 0
추가 답변 (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!