← Back to team overview

yade-users team mailing list archive

Re: [Question #688280]: How to generate tiny particles in pore space

 

Question #688280 on Yade changed:
https://answers.launchpad.net/yade/+question/688280

    Status: Open => Answered

Jan Stránský proposed the following answer:
if you want non-overlapping particles, use one SpherePack instance, something like (not tested)
###
sp=pack.SpherePack() # just one SpherePack
sp.makeCloud((0,0,0),(1,1,1),num=900,rMean=0.04,rRelFuzz=0)
sp.toSimulation(color=[1,1,1])
doCompaction() # replace by your code
sp.fromSimulation() # now sp is according to compacted particles
n = len(sp)
sp.makeCloud(minCorner,maxCorner,num=3000,rMean=.005,rRelFuzz=.00033) # new particles, guaranteed to be "outside the body of soil particles" = outside already existing particles in sp
for i,(c,r) in enumerate(sp):
   if i < n: # skip already existing particles
      continue
   O.bodies.append(sphere(c,r))
###

> rRelFuzz=.00033

rRelFuzz is a relative value, the radii are in the range
((1-rRelFuzz)*rMean, (1+rRelFuzz)*rMean), isn't 0.00033 absolute value?

cheers
Jan

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.