Set CoG of ChBody

65 views
Skip to first unread message

Qihan Xuan

unread,
Jan 13, 2022, 4:24:27 PM1/13/22
to ProjectChrono
Hi,

The default density of ChBody is uniform. But I want to change it by changing its inertia and CoG.  Is there a way to do it?

Thanks,
Qihan

JASON Z

unread,
Jan 19, 2022, 11:31:08 PM1/19/22
to ProjectChrono
Qihan,

Could you please check out the usage of ChBodyAuxRef - https://api.projectchrono.org/classchrono_1_1_ch_body_aux_ref.html

You should be able to find functions - SetInertiaXX and SetFrame_COG_to_REF.

Anyone please feel free to correct me or add info.

Jason

Qihan Xuan

unread,
Feb 24, 2022, 11:56:03 AM2/24/22
to ProjectChrono
Thanks for your reply.
It works.
I usually use ChBodyAuxRef in the triangle mesh body. But now I found out it can also be applied to ChBodyEasyBox, ChBodyEasySphere, etc.

Thanks,
Qihan
Reply all
Reply to author
Forward
0 new messages