← Back to team overview

yade-users team mailing list archive

[Question #223448]: Number of spheres is not true in particleSD method?

 

New question #223448 on Yade:
https://answers.launchpad.net/yade/+question/223448

Hello all,
As triaxial users, I bet you know about the method particleSD to generate a desired pack of spheres having a desired distribution of spheres.
I'm using the particleSD to generate my model, here is the code:  http://pastebin.com/BFmG3vkr, we'll pay attention at the following:

psdSizes=[0.002,0.003,0.004,0.005,0.006,0.007,0.008,0.0095]
psdCumm=[1,9,25,50,69,90,95,100]
sp.particleSD(mn,mx,0.00575,False,'triaxial_test',10000,psdSizes,psdCumm,False,seed=1)


10000 is the number of spheres. So as I understand, the generated spheres must be as close as this number, right?, but when I run the code, in the terminal I see these line: (as a result of the particleSD code):

fraction #0 (1%, r=0.002): 2376.37 spheres, fraction/cloud volumes 3.35103e-08/0.00796328
fraction #1 (9%, r=0.003): 5632.87 spheres, fraction/cloud volumes 1.13097e-07/0.00796328
fraction #2 (25%, r=0.004): 4752.73 spheres, fraction/cloud volumes 2.68083e-07/0.00796328
fraction #3 (50%, r=0.005): 3802.19 spheres, fraction/cloud volumes 5.23599e-07/0.00796328
fraction #4 (69%, r=0.006): 1672.26 spheres, fraction/cloud volumes 9.04779e-07/0.00796328
fraction #5 (90%, r=0.007): 1163.93 spheres, fraction/cloud volumes 1.43676e-06/0.00796328
fraction #6 (95%, r=0.008): 185.654 spheres, fraction/cloud volumes 2.14466e-06/0.00796328
fraction #7 (100%, r=0.0095): 110.867 spheres, fraction/cloud volumes 3.59136e-06/0.00796328

I sum up the number of spheres and I see that the sum is far much more than 10000 spheres.
(2376+5632+4752+3802+672+1163+85+110=19692, nearly twice the number I declared in the code)

Can you explain this for me?
Thanks in advance.

I'm run it by Yade-daily current latest version on Ubuntu 12.10, and here is the PSD line: http://i.imgur.com/xQh2Oje.png


-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.