yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #07631
Overlapping volume
Hi,
am trying to compute the total overlapping volume within a sample but am not
sure am doing it right. I think that perhaps am computing the distance
between two contacting particles in the wrong way. Is the following line of
code correct in case of periodic conditions (Bruno?) ?
// distance between two contact spheres
d=((Body::byId(id1,scene)->state->pos) - (Body::byId(id2,scene)->state->pos)
+ (scene->cell->hSize*I->cellDist.cast<Real>())).norm();
Thanks a lot.
Chiara
Follow ups