yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #09964
Re: [Bug 1224894] [NEW] Bug in utils.psd() ?
Hi,
"binsSumCum: how much material (in units) are in the bin, cumulative"
if mass=true, you get the _mass_ of the material. Otherwise you will get the
number of particles.
Anton
2013/9/13 jduriez <jerome.duriez@xxxxxxxxxxxxxxx>:
> Public bug reported:
>
> Hi,
>
> I was trying utils.psd() function, and it seems to me there might be a
> bug concerning the third returned variable, this binsSumCum (https://www
> .yade-dem.org/doc/yade.utils.html#yade.utils.psd).
>
> I believed, from what I understood from code and doc, that the last
> number of binsSumCum should correspond to the number of spheres in the
> sample, but I get non-integer values, having nothing in common with
> O.bodies.__len__() ??
>
> Few lines as example :
>
> pred = yade.pack.inAlignedBox((0,0,0),(10,10,10))
> sp = pack.randomDensePack(pred,radius=0.5,rRelFuzz=0.3,memoizeDb='/tmp/gts-triax-packings.sqlite',returnSpherePack=True)
> sp.toSimulation()
> O.bodies.__len__() # ~ 1520
> yade.utils.psd(bins=1) # -> ~ 868000
>
> ** Affects: yade
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are subscribed to Yade.
> https://bugs.launchpad.net/bugs/1224894
>
> Title:
> Bug in utils.psd() ?
>
> Status in Yet Another Dynamic Engine:
> New
>
> Bug description:
> Hi,
>
> I was trying utils.psd() function, and it seems to me there might be a
> bug concerning the third returned variable, this binsSumCum
> (https://www.yade-dem.org/doc/yade.utils.html#yade.utils.psd).
>
> I believed, from what I understood from code and doc, that the last
> number of binsSumCum should correspond to the number of spheres in the
> sample, but I get non-integer values, having nothing in common with
> O.bodies.__len__() ??
>
> Few lines as example :
>
> pred = yade.pack.inAlignedBox((0,0,0),(10,10,10))
> sp = pack.randomDensePack(pred,radius=0.5,rRelFuzz=0.3,memoizeDb='/tmp/gts-triax-packings.sqlite',returnSpherePack=True)
> sp.toSimulation()
> O.bodies.__len__() # ~ 1520
> yade.utils.psd(bins=1) # -> ~ 868000
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/yade/+bug/1224894/+subscriptions
--
You received this bug notification because you are a member of Yade
developers, which is subscribed to Yade.
https://bugs.launchpad.net/bugs/1224894
Title:
Bug in utils.psd() ?
Status in Yet Another Dynamic Engine:
New
Bug description:
Hi,
I was trying utils.psd() function, and it seems to me there might be a
bug concerning the third returned variable, this binsSumCum
(https://www.yade-dem.org/doc/yade.utils.html#yade.utils.psd).
I believed, from what I understood from code and doc, that the last
number of binsSumCum should correspond to the number of spheres in the
sample, but I get non-integer values, having nothing in common with
O.bodies.__len__() ??
Few lines as example :
pred = yade.pack.inAlignedBox((0,0,0),(10,10,10))
sp = pack.randomDensePack(pred,radius=0.5,rRelFuzz=0.3,memoizeDb='/tmp/gts-triax-packings.sqlite',returnSpherePack=True)
sp.toSimulation()
O.bodies.__len__() # ~ 1520
yade.utils.psd(bins=1) # -> ~ 868000
To manage notifications about this bug go to:
https://bugs.launchpad.net/yade/+bug/1224894/+subscriptions
References