contact point with periodic boundary

Asked by Chiara Modenese on 2012-02-28

Hi there (Bruno?),
when periodic boundary is employed, is the position of the contact point (which can be accessed from i.geom) always inside the main periodic cell or can it be in other locations too? I know that particles position should be wrapped if one wants to refer them to the main cell but am wondering now what about the contact point.

Thanks for answer,
Chiara

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Bruno Chareyre
Solved:
2012-02-29
Last query:
2012-02-29
Last reply:
2012-02-28

The contact point is at the surface of body i->id1. If this body is out
of the (0,0,0) cell, the contact point is out to.
See e.g. Ig2_Sphere_Sphere_ScGeom.cpp:29,
scm->contactPoint=se31.position+(s1->radius-0.5*penetrationDepth)*normal;

Thanks Chareyre, that solved my question.