← Back to team overview

yade-dev team mailing list archive

Re: [Branch ~yade-dev/yade/trunk] Rev 2891: Add utils.psd(). First try

 

Hi Bruno,

yes, I saw it.
The problem is, that I'm planning to implement PSD for SpheresFactory.
Particle are creating there all the time.
That is why I need something to control PSD of "particle flow".

Anyway, code review is very welcome. It is only a draft.
Thanks

Anton




On Tue, Jul 19, 2011 at 5:15 PM, Bruno Chareyre
<bruno.chareyre@xxxxxxxxxxx> wrote:
> Hi Anton,
>
> Just in case: you know that SpherePack has a psd() function already?
>
> Maybe these lines (partly stolen from test/psd.py) would do what you want:
> sp0=pack.SpherePack()
> sp0.fromSimulation()
> pylab.semilogx(*sp0.psd(bins=30,mass=True),label='Mass PSD of (free) %d
> random spheres'%len(sp0))
>
> Bruno
>
> On 19/07/11 16:54, noreply@xxxxxxxxxxxxx wrote:
>


References