yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #17255
[Question #668460]: replacing particles with pack.incilynder
New question #668460 on Yade:
https://answers.launchpad.net/yade/+question/668460
Hello everybody,
what I am trying to do is to agglomerate example (https://github.com/yade/trunk/tree/master/examples/agglomerate), but instead of dividing the sphere of makecloud, i want to replace then with an cylinder agglomerates with a hole inside as:
pack.inCylinder((0.0,0.0,0.0),(0.0,0.0,0.05),0.05)-pack.inCylinder((0.0,0.0,0.0),(0.0,0.0,0.05),0.01)
s
but I am not succeeding in it. My script is:
from yade import export,ymport
dim = (1,1,1) # dimensions for makeCloud
radius = 0.05
sp = pack.SpherePack()
sp.makeCloud((0.,0.,0.), dim, rMean=radius, seed=1)
sp.toSimulation()
for s in sp:
cil=pack.inCylinder((s[0][0],s[0][1],s[0][2]),(s[0][0],s[0][1],s[0][2]+0.05),s[1])-pack.inCylinder((s[0][0],s[0][1],s[0][2]),(s[0][0],s[0][1],s[0][2]+0.05),0.01)
sp1=pack.randomDensePack(cil,radius=0.01, returnSpherePack=True)
I am not sure if i can do that, I am sorry but I am still learning yade. I have seen question #403360 (https://answers.launchpad.net/yade/+question/403360) and I couldn't use it to solve my problem.
Is there another way of replacing the sphere by the pack? Can I use regularHexa instead of randomdensePack?
hope you can solve my problem.
thanks a lot
Leticia
--
You received this question notification because your team yade-users is
an answer contact for Yade.