← Back to team overview

yade-users team mailing list archive

Re: [Question #693279]: How to periodically output vtk files without overwriting previous results?

 

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

    Status: Open => Answered

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

create one instance of VTKExporter (not every time a new one), it increase internal "counter" and therefore does not overwrite the existing files.
############ [1]
vtk = export.VTKExporter('vtk/forcechain')
def vtkExport():
    vtk.exportInteractions(ids=intrs,what=dict(forceN='i.phys.normalForce.norm()'))
O.engines ...
###

cheers
Jan

[1] https://yade-dem.org/doc/yade.export.html#yade.export.VTKExporter

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