yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #02507
Re: SpherePack, question No 3
>
> from yade import pack
> sp=pack.randomPeriPack(radius=1.,rRelFuzz=0.,initSize=Vector3().ONE*10.)
> a = sp.cellSize
> a=a[0]
(You could write a=sp.cellSize[0] just as well.)
> f=open('text','w')
> f.write(str(a))
Anton is right with closing files. Yade currently crashes at exit due to bug in log4cxx. Normally, files are flushed and closed at exit, but not at crash. I will have a look if there is a way to flush all files and we would do that from the crash handler.
I uploaded uploaded updated docs which now include also the yade.pack module; for SpherePack, see https://www.yade-dem.org/sphinx/yade.pack.html#yade._packSpheres.SpherePack .
HTH, Vaclav
References