← Back to team overview

yade-users team mailing list archive

Re: [Question #681115]: How to plot vector plot in Paraview for particle displacement of simulation run in Yade?

 

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

    Status: Open => Answered

Jan Stránský proposed the following answer:
Thanks for the code

> Do I make any mistake in command?

yes :-)

VTKExporter remembers how many times it saved something and use
contiguous numbering, starting from 0. In your case, every time doExport
is called, it creates new VTKExporter, which starts saving from 0.

Fix:
###
vtk= export.VTKExporter('.../101_dspl-') # called only once
def doExport():
 vtk.exportSpheres(useRef=True,what=[('dspl','b.state.displ()')]) # now each time a new file with new number is saved
###

cheers
Jan

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