How to arrange my cloud (1st polyhedra, 2nd spheres) stacked but not mixed?
Dear All,
I am trying to create a cloud array/stack, from Polyhedra, then Spheres, but my problem is they are really takes time to be loading on showing up, and unfortunately only Spheres appeared and Polyhedras don't appear. In addition, the spheres is not under gravity (so it is just floating).
Could you help me how to create it?
and if I want to add rectangular plate such as rubber in the middle of cloud array (still inside the box/facet), is that possible? How to make it so?
Here is my existing code:
##Sphere Cylinder pack
from yade import pack,plot,
import math
from pylab import rand #for sand color
from yade import polyhedra_
#export.
##Polyhedra
#p=PolyhedraMat()
#p.density=2600 #kg/m^3
#p.young=1e7 #Pa
#p.poisson=.2
#p.frictionAngle=18 #rad
polyhedra_
##Sand
O.bodies.
sp=pack.
sp.makeCloud(
sp.toSimulation
##Define material of the grains
b=O.bodies[0]
b.state.
b.state.vel=(0,0,0)
O.materials.
boulder=O.bodies[0]
##Make a floor
O.bodies.
##Engines and Constitutive Law
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLo
[Ig2_
[Ip2_
[Law2_
NewtonIntegra
PyRunner(
# PyRunner(
#VTKRecorder
]
O.dt=.9*
def checkUnbalanced():
if O.iter<1000:return # at the very start, unbalanced force can be low as there is only few contacts, but it does not mean the packing is stable
O.materials.
O.bodies.
O.bodies[
checker.
def unloadBoulder():
abs(O.
O.saveTmp()
Thank you in advance.
Best regards.
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: