Polyhedron interaction with sphere
Hello,
I was understanding how polyhedron interacts with sphere in yade and encountered a problem with the dictionary of the interaction.
I created a system with one sphere and a box (made by polyhedron). The box touches the sphere from the bottom and has a velocity. I look at the interaction between the box and sphere after a time step. Below is the MWE:
#------
from yade import pack,polyhedra_
import shutil, sys, imp
import numpy as np
#------
rad_p = 0.1
Xl = 0.
Yl = 0.
Xr = 1.
Yr = 1.
Zl = rad_p
Zr = 1.
eps_pos = 1e-5
#------
O.bodies.
O.bodies.
#------
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_Sphere_
[Ip2_FrictMat_
[Law2_
),
PyRunner(command = 'load()', iterPeriod = 1, label = "checker"),
NewtonIntegrat
]
def load():
O.bodies[
if ( O.iter > 3):
O.pause()
#------
O.dt=.5e-
O.stopAtIter= int(1e6)
O.step()
#------
Case I: If the sphere is positioned not at the center of box bottom face (non-zero eps_pos in the code above), O.interactions[
Case II: When the sphere is located just at the center of the box (eps_pos = 0), there is an interaction between the two objects, but without any dictionary.
#Yade [1]: O.interactions[
#------
#AttributeError Traceback (most recent call last)
#/home/
#----> 1 O.interactions[
#AttributeError: 'NoneType' object has no attribute 'dict'
Any reason for this?
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 Nishant for more information if necessary.