yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #29221
Re: [Question #706191]: How to take the displacement of O.bodies.append(geom.facetCylinder())
Question #706191 on Yade changed:
https://answers.launchpad.net/yade/+question/706191
Status: Open => Answered
Jan Stránský proposed the following answer:
Hello,
> Does YADE have a program to determine the displacement of the created
cylinder
Yes.
To get displacement of one specific body, use state.displ [1]
If you just use TranslationEngine to move whole cylinder, displacement of all facets of the cylinder is equal.
So to get displacement of the cylinder:
cylDisplacement = O.bodies[idsCyl2[0]].state.displ()
Cheers
Jan
[1] https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.State.displ
--
You received this question notification because your team yade-users is
an answer contact for Yade.