yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #16207
Re: [Question #660522]: can walls be excluded from particles cloud creation?
Question #660522 on Yade changed:
https://answers.launchpad.net/yade/+question/660522
Description changed to:
Good evening,
Is there a way to create particles that cover as much of the free space as possible, but not have particles appear inside the walls?
I currently have this code
from yade.pack import *
from yade import ymport
rod1 = O.bodies.append(ymport.stl('file.stl'))
sp=pack.SpherePack()
sp.makeCloud((0,0,3),(20,20,15),rMean=0.5)
sp.toSimulation()
O.engines=[
ForceResetter(),
InsertionSortCollider([Bo1_Sphere_Aabb(),Bo1_Facet_Aabb()]),
InteractionLoop(
# handle sphere+sphere and facet+sphere collisions
[Ig2_Sphere_Sphere_ScGeom(),Ig2_Facet_Sphere_ScGeom()],
[Ip2_FrictMat_FrictMat_FrictPhys()],
[Law2_ScGeom_FrictPhys_CundallStrack()]
),
NewtonIntegrator(gravity=(0,-9.81,0),damping=0.4),
# call the checkUnbalanced function (defined below) every 2 seconds
]
O.dt=.5*PWaveTimeStep()
but whenever i start the simulation a lot of particles end up inside the
walls which both slows down the simulation and makes the visualization
confusing
Thank you very much for your time,
Any help is appreciated as i am new in yade andprogramming in general
John
--
You received this question notification because your team yade-users is
an answer contact for Yade.