← Back to team overview

yade-users team mailing list archive

Re: [Question #692608]: histogram for distribution of interaction directions

 

Question #692608 on Yade changed:
https://answers.launchpad.net/yade/+question/692608

    Status: Open => Answered

Bettina Suhr proposed the following answer:
Hi,

I think it is correct that the interaction direction is returning values
between 0 and 179.

Imagine two spheres in contact. The direction of the contact normal
vector will change depending if you calculate it from sphere 1 to sphere
2 or the other way around. If the contact normal vector is e.g. parallel
to the x-axis, how will you decide if the contact has 0 degree or 180
degree?

You can use the plotDirections() function as it is.

Hope that helps,
Bettina

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