← Back to team overview

yade-users team mailing list archive

Re: [Question #673124]: Triaxial compression test displacement field

 

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.