How to output mass of solid in SimScape multibody

5 views (last 30 days)
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.

Accepted Answer

Sebastian Castro
Sebastian Castro on 19 May 2016
Edited: Sebastian Castro on 19 May 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 Comments
Ben Rancici
Ben Rancici on 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
Sebastian Pinzello on 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

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!