yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #14544
Re: [Question #600268]: create cloud sphere packing with two specific sizes
Question #600268 on Yade changed:
https://answers.launchpad.net/yade/+question/600268
Status: Open => Answered
Jérôme Duriez proposed the following answer:
Hi,
Since makeCloud allows one to define psd (see psdSizes and psdCumm in
the doc [*]), this is not so difficult:
sp=pack.SpherePack()
sp.makeCloud(Vector3(0,0,0),Vector3(100,100,100),num=2,psdSizes=[2,2,6,6],psdCumm=[0,0.50000000000001,0.50000000000001,1]) # defining a step-wise psd, using in this case 0.50000000000001 instead of 0.5 because I assume 0.5*num = 0.5*2 might give something just smaller than 1 for numerical reasons and in the end 0 particles of one size and 2 of the other
sp.toSimulation()
Another solution maybe exists, calling twice makeCloud() to merge two
monosized clouds (one with 2 diameter, another one with 6)
Jerome
[*] https://yade-
dem.org/doc/yade.pack.html?highlight=makecloud#yade._packSpheres.SpherePack.makeCloud
--
You received this question notification because your team yade-users is
an answer contact for Yade.