Mass and Inertia modification for clump

Asked by kelaogui on 2013-06-11

Dear Sir,

I am working on different particle shape based on clump.

For current version of Yade, it seems the mass and inertia of clump is not modified.

Will you do the TODO: numerical integration of inertia based on regular space sampling with relative tolerance WRT minimum sphere radius in Clump.cpp line 53? I guess it will be very time consuming.

Is there any good way to solve this problem for now? I mean a general way that makes the error is within some tolerance. Thanks very much.

And Also, why replaceByClump() in my Yade doesn' work? I am not sure whether my way to call this function is correct or not, coz I didn't found an example script.

Zhaochen
Hong Kong University of Sci & Tech

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Christian Jakob
Solved:
2013-06-12
Last query:
2013-06-12
Last reply:
2013-06-11
Christian Jakob (jakob-ifgt) said : #1

Hi,

please have a look at the clump section in the users manual [1].

If you use clump() or appendClumped() method masses/inertia of clump will not be adapted automatically. You may want to use adaptClumpMasses() for this [2].
If you use replaceByClumps() method, masses will be adapted automatically. In this case there is no need for [2].

> And Also, why replaceByClump() in my Yade doesn' work?

Please attach a script and explain what does not work.

> I am not sure whether my way to call this function is correct or not,
> coz I didn't found an example script.

Hm, maybe you will find an example in examples/clumps/ folder?!

[1] https://yade-dem.org/doc/user.html?highlight=user#clumping-particles-together
[2] https://yade-dem.org/doc/yade.wrapper.html?highlight=adapt#yade.wrapper.BodyContainer.adaptClumpMasses

Regards,

Christian

kelaogui (kelaogui91) said : #2

Thanks, Christian.

I think because my version is a rather old development one from Git, it doesn't include adaptClumpMasses() or replaceByClump() function. I have downloaded the newest release version.

By the way, Could you tell me where i can find the source code of this adaptClumpMasses()?

Best Christian Jakob (jakob-ifgt) said : #3

> By the way, Could you tell me where i can find the source code of this
> adaptClumpMasses()?

https://github.com/yade/trunk/blob/master/py/wrapper/yadeWrapper.cpp#L402

kelaogui (kelaogui91) said : #4

Thanks Christian Jakob, that solved my question.