← Back to team overview

yade-users team mailing list archive

Re: [Question #668594]: Cylindrical loose sphere pack

 

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

    Status: Open => Answered

Robert Caulk proposed the following answer:
Hello Francesco,

I think you can do this quite easily with filterSpherePack [1].

so you would use makeCloud as usual, and then filter it according to
your desired cylinder predicate:

from yade import pack
psdSizes,psdCumm = [0.02,0.04,0.045,0.05,0.06,0.08,0.12],[0.,0.1,0.3,0.3,0.3,0.7,1.]
sp = pack.SpherePack();
sp.makeCloud((0,0,0),(1,1,1),psdSizes=psdSizes, psdCumm=psdCumm,distributionMass=True, num=20000)
pred=pack.inCylinder((0.5,0.5,0),(0.5,0.5,1),radius=0.3)
sp2 = pack.filterSpherePack(pred,sp,returnSpherePack=True)
sp.toSimulation()

Cheers,

Robert

[1]https://yade-dem.org/doc/yade.pack.html#yade.pack.filterSpherePack

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