How to output mass of solid in SimScape multibody
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Steven Wassom
le 18 Mai 2016
Commenté : Sebastian Pinzello
le 8 Juil 2019
I created a solid by revolving a cross-section, and have given it a density and want the mass calculated from the geometry. How do I output the mass number? I want to scale the density to obtain a certain mass value. I have tried h=find_system('modelname','ClassName','Solid') and then get_param(h,'Mass'), and all I get is the value 1, no matter what density I use.
0 commentaires
Réponse acceptée
Sebastian Castro
le 19 Mai 2016
Modifié(e) : Sebastian Castro
le 19 Mai 2016
You unfortunately cannot get this information in the latest release so far (R2016a). MathWorks has received quite a few requests for this already.
When you query the block's "Mass" parameter as you did, it's actually looking at a hidden parameter in the block where, instead of calculating mass/inertia from geometry, you specify your own mass and moments of inertia. This is why you get 1, which is the default value for that parameter.
- Sebastian
9 commentaires
Ben Rancici
le 27 Nov 2017
Thank you for your quick answer. I indeed have seen the values under the new node "Derived Values", and I was wondering if there were any mean to use them directly under Simulink. Is it possible?
Sebastian Pinzello
le 8 Juil 2019
Hi Sebastian,
I'm just wondering if there has been any update to Ben Rancici's question. It would be super useful to be able to quickly sum up all the masses of a mechanical system.
Cheers,
Sebastian
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Bodies 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!