← Back to team overview

yade-users team mailing list archive

Re: [Question #432837]: how to get stress values with VTKExporter

 

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

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hi Alma,

####################################
stresses = ... # list of stress tensor for each body, e.g. [1] from your
1st message
for b in O.bodies:
   b.mystress = stresses[b.id]
vtk = VTKExporter(...)
vtk.exportSpheres(what=[("stress","b.mystress")])
####################################

cheers
Jan

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