Pack.inCylinder with specific clump

Asked by Felipe on 2016-06-26

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:
2016-07-04
Last query:
2016-07-04
Last reply:
2016-06-28
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

Felipe (felipetthadeu) said : #2

Thanks Christian Jakob, that solved my question.