Welcome to ask.woodem.org. You may post when you login through your GitHub account.

How to create a finite amount of clumps

0 votes
asked Oct 10, 2015 by tarthy6 (150 points)

I am looking to create a mixture of particles to accurately simulate soil. So far i have simply used spherePack to create different sized spheres and dropped them all onto each other to create a mixture of particles.

I would like to add non spherical particles to this mix as well, and am looking for help to create a fixed quantity of non spherical particles (clumps).


for example:

sp2.makeCloud((30,50,4),(60,100,6),rMean = 0.9,rRelFuzz=0)

i used the above section of code to create a small amount of spheres to act as small rocks in my simulation.


Is there a simple way like this to create non spheres? (clumps)

any help would be much appreciated,

Hitarth Chakravarty

1 Answer

0 votes
answered Oct 10, 2015 by eudoxos (49,150 points)

Hi Hitarth, have a look at tutorial about inlets, documentation of PsdClumpGenerator and examples/clump-psd.py, that should get you started. If you have some trouble, don't hesitate to ask. Cheers, václav