← Back to team overview

yade-users team mailing list archive

Re: [Question #684504]: stress field

 

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

Jan Stránský proposed the following answer:
> the stress is set just once, so there is no reason for the stress to be different..
> can you give me some hints to solve this problem.

sure. Set the stress value more than once :-)

something like:
###
while ...:
  ...
  O.run(...)
  s=bodyStressTensors()
  for b in O.bodies:
    if isinstance(b.shape,Sphere):
      b.mystress = s[b.id]
  vtk.exportSpheres(...)
  ...
###

cheers
Jan

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