How to output mass of solid in SimScape multibody

6 ビュー (過去 30 日間)
Steven Wassom
Steven Wassom 2016 年 5 月 18 日
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.

採用された回答

Sebastian Castro
Sebastian Castro 2016 年 5 月 19 日
編集済み: Sebastian Castro 2016 年 5 月 19 日
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 件のコメント
Ben Rancici
Ben Rancici 2017 年 11 月 27 日
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 2019 年 7 月 8 日
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

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeBodies についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by