__init__(self,
minGRadius,
maxGRadius,
do2d=False,
radiusScale=(0.1,0.4),
maxInsertFails=5000)
(Constructor)
|
|
Initialise the generator.
- Parameters:
minGRadius (float) - minimum grain radius
maxGRadius (float) - maximum grain radius
do2d (bool) - If True, grain particles all occur on the z=0
plane (ie particles packed into a circle).
radiusScale (tuple of two floats) - Randomly generated spherical particles will have radii which will
lie in the range
(radiusScale[0]*minGRadius,radiusScale[1]*maxGRadius) .
|