yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #08358
Re: [Question #237006]: Summary of contact orientations in a specimen
Question #237006 on Yade changed:
https://answers.launchpad.net/yade/+question/237006
jduriez proposed the following answer:
Hi,
For the branch vector, if you use the vector between the centers of the
two bodies, it is easy to obtain with something like (not tested) :
bod1 = O.bodies[i.id1]
bod2 = O.bodies[i.id2]
branch = bod1.state.pos - bod2.state.pos # the vector between the two centres
But before writing too much code (excepted if you're interested to do it
yourself), give maybe a look to getStress() function.
Also, for your 1., give a look to plotDirections() function (may let
hang your yade terminal depending on the version you use)
--
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.