← Back to team overview

yade-users team mailing list archive

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

 

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

Dear all,

In the process of exporting the force chain, I found that the output result cannot be saved in a certain time step, and the previous result will be overwritten. What should be done so that the results of different time steps can be saved periodically?

Thanks in advance.
Jie

Here's MWE:
############
def  vtkExport():
    export.VTKExporter('vtk/forcechain').exportInteractions(ids=intrs,what=dict(forceN='i.phys.normalForce.norm()'))
O.engines=O.engines+[PyRunner(iterPeriod=500, command='vtkExport()',firstIterRun=60000)]

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