principle of psd in yade

Asked by lip

hello
i want to know the pirnciple of psd in yade.
when i use function makeCloud() to generate shere of two different size use arguments psdSize and psdCum, i noticed that the distribution of two sphere of different size is always uniform in the box. i want to know how yade acheived that?
lookforward for your answer

Question information

Language:
English Edit question
Status:
Answered
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jan Stránský (honzik) said :
#1

Hello,
please provide a MWE [1]
thanks
Jan

[1] https://yade-dem.org/wiki/Howtoask

Revision history for this message
Bruno Chareyre (bruno-chareyre) said :
#2

Hi,
I suspect the question is for me since I wrote the generation algorithm, but I don't understand the question at all.
Bruno

Revision history for this message
lip (mr.xie) said :
#3

dear Bruno:
     below is my code:
    sp=pack.SpherePack()
    sp.makeCloud((0.2,0.2,2),(2.4,2.4,100),psdSizes=[0.1,0.1,0.6,0.6],psdCumm=(0.0,0.7,0.7,1),seed=1,porosity=1)
the purpose of the code is to generate sphere of size 0.1 and 0.6. i notice that the distribution of two sphere in different size is always evenly in the box, for example, in height 2-12, the numble of big sphere is about 3 and the numble of samll shpere is about 7, in the height 12-22 is the same, i want to know how this kind of distribution is formed.

Revision history for this message
Bruno Chareyre (bruno-chareyre) said :
#4

The algorithm is simply based on:
position=random()

Then, if you find _exactly_ the same number in each half-domain you are just lucky.

Can you help with this problem?

Provide an answer of your own, or ask lip for more information if necessary.

To post a message you must log in.