Body angular momentum around the CoM

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Seyyed Hamed Hosseini Nasab
Posts: 18
Joined: Mon Jan 25, 2016 3:32 am

Body angular momentum around the CoM

Post by Seyyed Hamed Hosseini Nasab » Fri Mar 27, 2020 7:15 am

Anybody knows how to get the whole body angular momentum around center of mass using Matlab API?

With kind regards,
Hamed

Tags:

User avatar
Nicos Haralabidis
Posts: 197
Joined: Tue Aug 16, 2016 1:46 am

Re: Body angular momentum around the CoM

Post by Nicos Haralabidis » Tue Mar 31, 2020 6:47 am

Hello Hamed,

I don't think you can do it through the 3.3 MATLAB API, but you can through the 4.x API. Once you have loaded your model, set the states and realized to the velocity stage you can get MatterSubsystem:
smss = model.getMatterSubsystem();

From the MatterSubsystem you can the use the method calcSystemCentralMomentum: https://simbody.github.io/simbody-3.6-d ... 5a30f13d96

The first 3 elements are the angular momentum components.

I hope that helps!

Cheers,

Nicos

POST REPLY