yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #08060
Re: [Question #234676]: Stress measures in Yade
Question #234676 on Yade changed:
https://answers.launchpad.net/yade/+question/234676
Alexander Smith posted a new comment:
Thanks Jan,
Yes my question was kind of 'useless'. What I am looking for is the
stress of each particle so I can map it against its position in 3D
space, to develop a 3d 'stress map' for various loads, ball size and
contact parameters. So it sounds like exactly what bodyStressTensors()
returns. But this function returns a tuple of length 1.
I have since found my answer, it turns out it is my amateur python
skills that let me down. The bodyStressTensors() module returns a tuple
of length 1, but that single entry is a list of the stress tensor for
each body (walls and facets included).
i.e.
stress=utils.bodyStressTensors()
stress=stress[0]
now 'stress' is a list of tensors (Matrix3) for each body.
I assume now I can loop through O.bodies and match the list index number
of 'stress' to body id numbers to map the stress to the bodies position
in 3D space.
Cheers
Alex
--
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.