particleSD2 spheres simulation problem

Asked by joao miguel manso on 2012-03-30

Hi,

I'm trying to fill a cylinder with a given psd. Does anyone know why I get the message:

AttributeError: 'NoneType' object has no attribute 'hSize'

when I run the following code?

from yade import pack
psdSizes,psdCumm=[.00475,.0095,.0191,.0254],[7.3,25.8,88.3,100]
pred=pack.inCylinder(centerBottom=(0,0,-.237),centerTop=(0,0,.237),radius=.25)
O.bodies.append(utils.geom.facetCylinder(center=(0,0,0),radius=.25,height=.474,wallMask=31))
sp0=pack.SpherePack()
sp0.particleSD2(radii=psdSizes,passing=psdCumm,periodic=True,numSph=1000)
sp0.toSimulation()

Thanks in advance.

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Bruno Chareyre
Solved:
2012-04-02
Last query:
2012-04-02
Last reply:
2012-03-30

There was a bug in toSimulation()
It is fixed in revision git8d051.
Thanks for pointing this.

Christian Jakob (jakob-ifgt) said : #2

Wow, 2h and 25 minutes for a fixing a bug, is that a new record? ^^

joao miguel manso (jmanso) said : #3

Thanks Chareyre, that solved my question.