![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1576237/image.png)
Simscape Multibody: How to model spatial contact between two objects using point clouds?
17 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello Everyone,
I'm trying to get the hang of using point clouds around geometry to model contact behavior/forces when objects collide. Right now, I'm starting with a simple model: a sphere dropping from a height onto a sphere fixed in space. I have a point cloud surrounding each sphere. I want to use Spatial Contact Force blocks (or some other method) to explore the collision between the two bodies.
My first foray into using point clouds was dropping two cubes with points on each corner onto a Grid Surface. This was fairly straightforward and I was able to see what I expected, which was a dice-on-a-table kind of effect.
I seem to be having trouble, however, connecting things together to model object-to-object interactions, such as the spheres I described above. Generally I am running into errors such as " 'Spatial Contact Force1' is not connected through its B port to a valid geometry. Resolve this issue in order to simulate the model." I have tried a few different combinations of connecting the Spatial Contact Force block, adding a Spatial Contact to each sphere, etc.
Am I missing something? Perhaps mis-applying the Spatial Contact Force blocks? Another method entirely?
Any suggestions would be helpful! Screenshots of model setup and block diagram attached.
Thank You!
2 commentaires
Jongil Lee
le 26 Déc 2023
Dear Kylen
You need to modify the one of ball from your model as below. The Spatial Contact Force block need the contact between a pair of geometries in 3-D space.
https://www.mathworks.com/help/releases/R2023b/sm/ref/spatialcontactforce.html
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1576237/image.png)
Réponses (0)
Voir également
Catégories
En savoir plus sur Applications dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!