[Paraview] FW: Paraview

Moreland, Kenneth kmorel at sandia.gov
Thu Aug 11 09:51:09 EDT 2011


Does anyone know the answer to Tony's question?  In summary, how do you write a time series of csv files?

-Ken

   ****      Kenneth Moreland
    ***      Sandia National Laboratories
***********
*** *** ***  email: kmorel at sandia.gov
**  ***  **  phone: (505) 844-8919
    ***      web:   http://www.cs.unm.edu/~kmorel

From: "Martinez, Luis" <Luis.Martinez at nrel.gov<mailto:Luis.Martinez at nrel.gov>>
Date: Wed, 10 Aug 2011 09:04:28 -0600
To: Kenneth Moreland <kmorel at sandia.gov<mailto:kmorel at sandia.gov>>
Subject: Paraview

Hi Kenneth,

I took the Paraview training with you a couple of weeks ago in Denver. I have gotten many of the things working but I am still having trouble with one minor detail. I am writing a batch script to do post-processing without having to open paraview GUI but I found a bug on the trace tool. It will not show the commands for saving data as .csv from the “Plot Over Line” filter. I found on the wiki how to do this by:

writer=CreateWriter("myFile.csv",PlotOverLine1)
writer.FieldAssociation = "Points"
writer.UpdatePipeline()
del writer

http://www.paraview.org/Wiki/ParaView/Python_Scripting#Exporting_CSV_Data

Now this will only save my data for the first time step. I am interested in saving the data from the latest time step, or all time steps. If I try

Writer.WriteAllTimeSteps = 1

I will get the following error:

In /home/kgruchal/scratch/ParaView-3.10.1/Servers/Filters/vtkCSVWriter.cxx, line 80
vtkCSVWriter (0x2aab60975680): Unable to open file: /myFile.0.csv

How can I specify a time step to save the data?

I don’t know if you would know the answer for this or could point me in the right direction.

Thanks,

Luis (Tony) Martinez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20110811/9ed53fc9/attachment-0001.htm>


More information about the ParaView mailing list