Center of mass in multisphere (SOLVED)

Submitted by Westbrink on Mon, 06/20/2016 - 13:38

Hi all,

I am using the particletemplate/multisphere command to create clumps. The command allows the use of self-defined inertia tensor and mass.
I need to adjust also the center of mass. Currently LIGGGHTS uses the monte carlo method to calculate the center of mass.
Does anyone knows how to set the center of mass individually?

Thanks

ckloss's picture

ckloss | Tue, 06/28/2016 - 18:42

Hi Fabian,

currently the center of mass is calculated from Monte Carlo, you'd have to change the fix_template_multisphere.cpp file to read the value!

best wishes
Christoph

Westbrink | Fri, 07/01/2016 - 08:19

Hi Christoph,

thank you, I found the corresponding position in the code and changed several things.

Regards,
Fabian

richti83's picture

richti83 | Mon, 07/04/2016 - 09:09

Hi Fabian,
would you please share your modifications ? I'm also interested in manipulating the COM of Clumps, but don't want to invent the wheel twice.
Thanks,
Christian.

I'm not an associate of DCS GmbH and not a core developer of LIGGGHTS®
ResearchGate | Contact