fill a box with polyhedra with size distribution (psdSizes, psdCumm )

Asked by Weimin Song

Dear all,

I'm wondering is it available to fill a box with polyhedra with specific size distribution? Such as using psdSizes and psdCumm in makeCloud?

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Bruno Chareyre
Solved:
Last query:
Last reply:
Revision history for this message
Best Bruno Chareyre (bruno-chareyre) said :
#1

Hi,
If you mean a makeCloud function specialized for polyhedra I would say no.
But actually you can use makeCloud to generate a sphere cloud and use this list to place polyhedra of the same size (say, each polyhedron is represented by the smallest sphere enclosing it).

list=makeCloud()
for s in list:
    O.bodies.append([convert sphere to polyhedron here])

Bruno

Revision history for this message
Weimin Song (wsong8) said :
#2

Thanks Bruno Chareyre, that solved my question.