← Back to team overview

yade-users team mailing list archive

Re: [Question #406741]: random dense packing with bidisperse particles in Yade

 

Question #406741 on Yade changed:
https://answers.launchpad.net/yade/+question/406741

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hi Lei,

a workaround is to use the core of the function [1,2] (copy paste
approach), but change the sp.makeCloud command to create desired packing,
something like:
###########################
from yade import pack
sp = SpherePack()
r1,r2 = 1.0, 0.4
num1,num2 = 20,100
sp.makeCloud((0,0,0),(10,10,10),r1,num=num1)
sp.makeCloud((0,0,0),(10,10,10),r2,num=num2)
sp.toSimulation()
###########################

cheers
Jan

[1] https://github.com/yade/trunk/blob/master/py/pack/pack.py#L454
[2] https://github.com/yade/trunk/blob/master/py/pack/pack.py#L554

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.