Packing Cylinder with MakeCloud
Hello everybody,
i am doing a script to fill a cylinder and then it is going to apply a force on the normal direction.
So, how can i get to do it by using packing cylinder and makecloud? Also, is it possible to include spheres material?
Following the examples that i have done separate.
#Only pack cylinder
pred=pack.
sp=SpherePack()
sp=pack.
sp.toSimulation()
#Only MakeCloud
sp=pack.
sp.makeCloud(
sp.toSimulation()
There is one script example that i found which is joining the two command, but it's not working as well as i expect. how is it working the predicate?
from yade import pack
sp = pack.SpherePack()
maxCorner = (45,45,45)
sp.makeCloud(
pred = pack.inCylinder
for c,r in sp:
if pred(c,r): # determines if a sphere with center c and radius r is inside
#predicate...
O.bodies.
Hope to hear from guys some ideas to solve these problems.
Thanks,
Felipe
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- mohsen
- Solved:
- Last query:
- Last reply: