Pack.inCylinder with specific clump

Asked by Felipe

Hello Everybody,

I would like to know if it is possible to create pack.inCylinder with a specific clump?

For example, let me show the example below of the normal pack.inCylinder that i am creating in my simulation.

pred=pack.inCylinder((X,Y,Z),(X',Y',Z'), radius=R)
sp=SpherePack()
sp=pack.randomDensePack(pred,radius=5,returnSpherePack=True,material='spheres')
sp.toSimulation()

After that, I want to create the same pack.inCylinder but including clump spheres, following the next example.

clump1=O.bodies.appendClumped([\
sphere([X,Y,Z], material='spheres', radius=R),\
sphere([X',Y',Z'], material='spheres', radius=R)\
])

*Note: X,Y,Z are only aleatory coordinates of the system and R is the radius.

Is there a way to do it? It mean, Do I get to create this pack.inCylinder including clumps?

If you have any queries about my question, please let me know.

Thank you for attention.

Best Regards,

Felipe

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Christian Jakob
Solved:
Last query:
Last reply:
Revision history for this message
Best Christian Jakob (jakob-ifgt) said :
#1

Hi,

You can try replaceByClumps() method (see example in clumps folder). The procedure is to create spheres first and replace them with specific clumps (via clump templates) in a second step. The disadvantage of this method is, that there might be some overlaps between the clumps. So you maybe have to reduce overlaps via calm() function.

Hope it helps,

Christian

Revision history for this message
Felipe (felipetthadeu) said :
#2

Thanks Christian Jakob, that solved my question.