histogram for distribution of interaction directions

Asked by kalogeropoulos on 2020-08-26

Hello all,

i hope you are going well during convid.
I would like an advise please.
I have used the function plotDirections to plot the histogram for distribution of ineraction directions. All good as far.
My question is why is plotted between 0 and 180 and not between 0 and 360 degrees??
Is it wrong? i cant change it inside the function.

Thank you

Question information

English Edit question
Yade Edit question
No assignee Edit question
Last query:
Last reply:
Bettina Suhr (bettina-suhr) said : #1


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,

Can you help with this problem?

Provide an answer of your own, or ask kalogeropoulos for more information if necessary.

To post a message you must log in.