![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/177698/image.png)
How to simulate Coulomb static friction in a multi-body system in SIMULINK/SimScape language?
5 次查看(过去 30 天)
显示 更早的评论
I'm trying to simulate a multibody system including Coulomb static friction.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/166302/image.png)
So far I have been able to write the equations . I have also been able to implement the math in Modelica language and run the code in both OpenModelica and Wolfram SystemModeller. The issue is that the simulation take like ages. I want to try and do it in SIMULINK/SimScape to see if it is any faster. I have found some SIMULINK/SimScape blocks, but the issue is first I do not understand how they work and they seem to only include kinetic friction. so my questions:
- Is my math correct ?
- Are there any easy examples of a multibody system including the Coulomb static friction compatible with my math?
- Is it possible to program in SIMULINK/SimScape language without using the visual programming interface, like OpenModelica?
0 个评论
回答(1 个)
Steve Miller
2017-8-5
Hi Foad - you can model this in Simscape, either in a textual format or in a graphical editor. Attached is a Simscape model and a screenshot is below. I suspect the slow simulations are caused by the transitions from non-sliding to sliding and vice-versa which can be tricky for solvers. The model I have attached simulates extremely fast. I'm not sure if I have matched all your parameters. Your mus is 1.3, which I assume is static friction. Normally coefficients of friction are between 0 and 1, so I'm not sure how to interpret that.
Good luck with your project!
--Steve
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/177698/image.png)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Discontinuities 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!