← Back to team overview

yade-users team mailing list archive

Re: [Question #211968]: fabric tensor calc and exportSpheres

 

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

    Status: Answered => Open

ceguo is still having a problem:
Hi Bruno,

I'm using version bzr3149, quite a new one. Also when I use your method,
it reports:

File "HOMEDIR/yade/lib/yade-trunk/py/yade/export.py", line 237, in exportSpheres
    test = eval(command)
  File "<string>", line 1, in <module>
NameError: name 's' is not defined

My code is:
vtkExporter = export.VTKExporter('particleInfo')
s=bodyStressTensors()
vtkExporter.exportSpheres(what=[('particleVelocity','b.state.vel'),('particleDisplacement','b.state.displ()'),('particleStress','s[b.id]')])

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.