← Back to team overview

yade-users team mailing list archive

Re: [Question #663500]: densest packing possible

 

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

    Status: Solved => Open

george is still having a problem:
Good evening again,
Sorry it accidentaly flaged this as solved.

The thing is, i am using a predicate to avoid spheres from being spawned inside a wall
consequently i have the following code

for c,r in sp:
		   if pred(c,0):
		      continue
		   O.bodies.append(sphere(c,r))

by trying to use 
  		sp=pack.regularHexa(pack.inAlignedBox((boundaries[0],boundaries[2],boundaries[4]),(boundaries[1],boundaries[3],boundaries[5])),radius=r,gap=0.02)

i get the following error message


  for c,r in sp:
TypeError: 'Body' object is not iterable
mv: cannot stat 'TimeAngle.csv': No such file or directory

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