← Back to team overview

yade-users team mailing list archive

[Question #707285]: Interactions between a boxes isn't 'real'

 

New question #707285 on Yade:
https://answers.launchpad.net/yade/+question/707285

Hello there.
I can't find a functor for interactions between box-type objects. There is 'Ig2_Sphere_Sphere_ScGeom()' functor for interactions between spheres, but I don't see similar one for the boxes.
I detect the interaction between two boxes in the attached MWE , but it isn't real, so one box just fall through the other one whereas sphere's behavior is correct.
Help me please to solve this small problem. Thanks a lot.

Interaction that I found when boxes has contact:
In [19]: O.interactions[box_1, box_2].dict()
Out[19]: 
{'id1': 0,
 'id2': 1,
 'iterMadeReal': -1,
 'geom': None,
 'phys': None,
 'cellDist': Vector3i(0,0,0),
 'iterBorn': 0,
 'isReal': False}


MWE:
box_1 = O.bodies.append(box((2.5,2.5,0.5), (5,5,1), fixed=True))
box_2 = O.bodies.append(box((2,2,3), (1,1,1)))
sphere = O.bodies.append(sphere((4,4,3), 1, material=FrictMat()))
O.engines = [
    ForceResetter(),
    InsertionSortCollider([Bo1_Sphere_Aabb(), Bo1_Box_Aabb()]),
    InteractionLoop(
            [Ig2_Sphere_Sphere_ScGeom(), Ig2_Box_Sphere_ScGeom()],
            [Ip2_FrictMat_FrictMat_FrictPhys()],
            [Law2_ScGeom_FrictPhys_CundallStrack()]
    ),
    NewtonIntegrator(damping=0.1, gravity=(0,0,-9.81)),
    GlobalStiffnessTimeStepper(),
]


-- 
You received this question notification because your team yade-users is
an answer contact for Yade.