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

Bruno Chareyre proposed the following answer:
Hi, 
Your script executes 
"vtk.exportSpheres(useRef=True,what=[('dspl','b.state.displ()')])" once, and as 
a consequence you have one vtk snapshot saved. There is no "error" here.

If you want multiple snapshots you can:

for k in range(N): #or any other control loop  
    O.run(M,1)
    vtk.exportSpheres(useRef=True,what=[('dspl','b.state.displ()')])

or insert a PyRunner in O.engines and run as usual:
O.engines=O.engines+[PyRunner(interval=M,command="vtk.exportSpheres(useRef=True,what=[('dspl','b.state.displ()')])")]

Bruno

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

_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to     : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to