facet-polyhedra collision din not work
hello
i have creat a fecetBox with many polyhedra in it and expect them collide with each other, but when i click the "start" button, the polyhedra just go through the facetBox. my code is as below:
from yade import polyhedra_
import random
polyMat = PolyhedraMat(
O.materials.
O.bodies.
polyhedra_
O.engines=[
ForceResetter(),
InsertionSor
InteractionLoop(
[
[
[
),
NewtonIntegr
# call the checkUnbalanced function (defined below) every 2 seconds
PyRunner(
# call the addPlotData function every 200 steps
PyRunner(
]
O.dt=.5*
# enable energy tracking; any simulation parts supporting it
# can create and update arbitrary energy types, which can be
# accessed as O.energy[
O.trackEnergy=True
# if the unbalanced forces goes below .05, the packing
# is considered stabilized, therefore we stop collected
# data history and stop
def checkUnbalanced():
if unbalancedForce
O.pause()
plot.
# plot.saveGnuplo
# collect history of data which will be plotted
def addPlotData():
# each item is given a names, by which it can be the unsed in plot.plots
# the **O.energy converts dictionary-like O.energy to plot.addData arguments
plot.
# define how to plot data: 'i' (step number) on the x-axis, unbalanced force
# on the left y-axis, all energies on the right y-axis
# (O.energy.keys is function which will be called to get all defined energies)
# None separates left and right y-axis
plot.plots=
# show the plot on the screen, and update while the simulation runs
plot.plot()
O.saveTmp()
##end
i have no idea why this situation happend because when i tried with sphere, everything is just fine. i would appreciate it if you can help me!
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask lip for more information if necessary.