yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #17732
[Question #670641]: Exceeded 200 attempts to place non-overlapping clump
New question #670641 on Yade:
https://answers.launchpad.net/yade/+question/670641
Hi,
I am trying to use makeClumpCloud to generate a volume filled with clumps. Even though the volume is quite large, the number of clumps added to the packing is quite limited (see image: http://pasteall.org/pic/485b8c6d558fcbecc33cf58cf7b74e00) and I receive the warning
"Exceeded 200 attempts to place non-overlapping clump. Only 12 clumps were added, although you requested 100"
Does anyone know why yade is unable to add more clumps to the simulation?
Many thanks
Jesse
clump0 available http://pasteall.org/1013941/text
clump1 available http://pasteall.org/1013943/text
from yade import pack,export,ymport
import random
random.seed(1) # to make colors always the same
minCorner = (0,0,0)
#maxCorner = (7e-7,7e-7,7e-7)
maxCorner = (5e-7,5e-7,5e-7)
#O.periodic=True
sp = pack.SpherePack()
# load clumps
ymport.textClumps('/tmp/clump0.txt')
c0 = pack.SpherePack()
c0.fromSimulation()
O.resetThisScene()
ymport.textClumps('/tmp/clump1.txt')
#c1 = getClumpInfo()
c1 = pack.SpherePack()
c1.fromSimulation()
O.switchScene(); O.resetThisScene()
print('Creating Clump Cloud')
test = sp.makeClumpCloud(minCorner, maxCorner, [c0,c1], periodic=True, num = 100)#, periodic=True, num=-1, seed=1)
#test = sp.makeClumpCloud(minCorner, maxCorner, [c0,c1], periodic=True, num = 1000)#, periodic=True, num=-1, seed=1)
sp.toSimulation()
--
You received this question notification because your team yade-users is
an answer contact for Yade.