yade-users team mailing list archive
Mailing list archive
Re: [Question #683388]: How to clump spheres and facet obtained from stl format
Question #683388 on Yade changed:
Irfaan Peerun gave more information on the question:
Just an update:
I have managed to convert the .stl file to .gts using the following command: stl2gts -r < filename.stl > filename.gts
gmsh and libgts-bin need to be installed to do so.
So now I have a surface which was imported in .gts format using the
My next step is to fill the surface with spheres of various sizes and
clump them together to produce a body of the same volume and geometry as
the surface. This would require overlapping of spheres.
I used the pack.randomDensePack function with sphere radius=0.00005 and
realfuzz=0.000005. The average range diameter of the surface 2.36mm to
1.18mm. Hence, my questions are:
 Is the pack.randomDensePack function appropriate for this situation?
Any rule of thumb in deciding the sphere radius? Does the function
include overlapping of spheres?
 By adding memoizeDb='/tmp/gts-packings.sqlite', does it mean that a
temporary sqlite file will be created to store the packing that will be
 Is there any function to obtain the clump volume as comparison to
the imported gts surface.
When running the script, I received the following error along with a blank view (no sphere or surface):
WARN /build/yade-fDuCoe/yade-2018.02b/pkg/common/InsertionSortCollider.cpp:242 action: verletDist is set to 0 because no spheres were found. It will result in suboptimal performances, consider setting a positive verletDist in your script.
Appreciate if anyone could guide me in solving this. The script is as
# ========= Script ===================
from yade import pack,ymport
#Add material for spheres
m=FrictMat(young = 1E8, poisson = 0.25, frictionAngle = 0.0, density = 2650)
# import surface
# parameters for radom packing in imported surface
# generate lists of spheres and outer surface
#clump spheres and surface together
# handle sphere+sphere and facet+sphere collisions
# set timestep to a fraction of the critical timestep
# save the simulation, so that it can be reloaded later, for experimentation
from yade import qt
You received this question notification because your team yade-users is
an answer contact for Yade.