gridpfacet.cylinder interacting with walls, spheres, facetbox etc.
I would like to have cylinders moving on a conveyor belt (horizontal wall with given velocity) and colliding with lateral walls (facetboxes). I am trying to compare the performance of two kinds of cylnders: clumps of spheres and gridpfacets. I prepared this basic script. The clumps do all I wish (they are transported by the conveyor horizontal wall, interact with the lateral facetboxes and among themselves). The gridpfacet cylinder is not transported (it seems it does not interact with the horizontal wall neither with the newtonintegrator). If I impose a velocity to it - uncommenting the commented line - (perhaps not in a very smart way), I see a part of the cylinder moving but it does not interact with the walls or with the spheres.
-------
from yade import pack,ymport,
from yade.gridpfacet import *
rad,gap=.05,.01
r=0.5
phi=30.
E=1e6
O.materials.
O.materials.append( CohFrictMat( young=E,
O.materials.append( FrictMat( young=E,
kw={'material':0}
kwBoxes=
kwMeshes=
nodesIds=[]
cylIds=[]
color=[1,0,0]
cylgrid = cylinder(
# uncomment this to make the pfacet-cylinder move
# O.bodies[
cylTuple = O.bodies.
O.bodies[
cylTuple2 = O.bodies.
O.bodies[
beltId = O.bodies.
O.bodies[
wall1Id = O.bodies.
wall2Id = O.bodies.
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
Ig2_
Ig2_
Ig2_
Ig2_
],
[Ip2_
],
[Law2_
Law2_
Law2_
Law2_
],
),
NewtonIntegrat
]
O.dt=PWaveTimeS
O.run(1,True)
try:
from yade import qt
qt.Controller()
qt.View()
except ImportError: pass
O.saveTmp()
O.timingEnabled
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Klaus Thoeni
- Solved:
- Last query:
- Last reply: