New question #660522 on Yade:
https://answers.launchpad.net/yade/+question/660522

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 


#!/usr/bin/python
# -*- coding: utf-8 -*-

# F.T. Silva <email address hidden>
# Script to define a numerical model for shear box

from yade.pack import *
from yade import pack,export,qt
from yade import plot
from yade import ymport

#Def of the material which will be used

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.

_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to