Spatial contact force block
Show older comments
Hi
I am trying to build a model for the dog clutch with Simscape multibody as shown in the below figure. each side can rotate independantly, and the dog teeth contact each other. the model is translated from solidworks using Multibody link. To model the contact, I am using the spactial contact force block. I tired to run the model and rotate one dog side but it penetrate the other one.
According to MATLAB help the geomtry export should be turned on and 'export entire geometry' can be seen. However, In my case, I see only the option 'convex Hull'



7 Comments
Yifeng Tang
on 26 Apr 2021
Contact force only works with Convex Hull at this moment. See Documentation page here: https://www.mathworks.com/help/releases/R2021a/physmod/sm/ref/spatialcontactforce.html?s_tid=doc_srchtitle
I also want to point to the Dog Clutch block in Simscape Driveline, maybe it can help with your model: https://www.mathworks.com/help/releases/R2021a/physmod/sdl/ref/dogclutch.html?s_tid=doc_srchtitle
If you want to stay in the Multibody, I think it's possible to separate the teeths as individual solid blocks. This way they'll all be sufficiently described by convex hulls. The model will look messy though.
I'll comment again if I can find a better solution.
Ayham Aljawabrah
on 26 Apr 2021
Yifeng Tang
on 29 Apr 2021
Hi Ayham,
Thanks for additional details.
To include chamfers in Multibody contact force modeling should be OK, as the geometry of EACH teeth is probably still a convex hull. However, you still need to treat each teeth individually. How many teeth do you have? If not too many, say 3 or 4, this may worth a try.
Ultimately this will be a trade-off between the pain with modeling individual teeth for contact force v.s. the pain with co-simulation with another software. You may find on this page some information on simulation platform integration: https://www.mathworks.com/help/simulink/co-sim_gateway.html?s_tid=CRUX_lftnav
The dog clutch block in Simscape Driveline is not open-sourced. Some blocks in the Driveline library have the Simscape code exposed, but not this one. I don't think customization based on it would be feasible at this point.
Ayham Aljawabrah
on 1 May 2021
Edited: Ayham Aljawabrah
on 1 May 2021
Yifeng Tang
on 1 May 2021
Looking at the screenshot, it appears that you are using the import tool from CAD into Multibody. I wonder if it is possible in CAD to separate the teeths from the base so they appear as individual parts in Multibody. You may then do the convex hull thing with each teeth. Try it with a small number of teeth and see how much pain it was before going to all 30 of them.
Ayham Aljawabrah
on 4 May 2021
Yifeng Tang
on 5 May 2021
Just summarize the discussion into the answer.
Have fun with your modeling!
Accepted Answer
More Answers (0)
Categories
Find more on Assembly in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!