How to output mass of solid in SimScape multibody
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Steven Wassom
am 18 Mai 2016
Kommentiert: Sebastian Pinzello
am 8 Jul. 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 Kommentare
Akzeptierte Antwort
Sebastian Castro
am 19 Mai 2016
Bearbeitet: Sebastian Castro
am 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 Kommentare
Ben Rancici
am 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
am 8 Jul. 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
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Bodies finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!