CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[General] Export to CSV using CreateWriter

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 2, 2013, 03:37
Default Export to CSV using CreateWriter
  #1
Senior Member
 
Julien de Charentenay
Join Date: Jun 2009
Location: Australia
Posts: 230
Rep Power: 14
julien.decharentenay is on a distinguished road
Send a message via Skype™ to julien.decharentenay
Hi,

I am trying to write a python script that export a patch values to a CSV file.

Using the GUI, one would do the following:
1) Load the case (openFoam in my case);
2) Select the relevant item in the pipeline browser;
3) Select File > Save Data.

The code that I entered in the python shell is as follows:

Code:
w = CreateWriter("minX.csv")
w.UpdatePipeline()
del w
It returns neither error message, nor does it create the csv file (which I am looking for in the ParaView directory). If I change the file to be writen to "minX.vtm", it does write file(s) - but not in a format that is easy to read and use.

I am using ParaView 3.98.1 32b on Windows.

Julien
__________________
---
Julien de Charentenay
julien.decharentenay is offline   Reply With Quote

Old   September 2, 2013, 22:09
Default
  #2
Senior Member
 
Julien de Charentenay
Join Date: Jun 2009
Location: Australia
Posts: 230
Rep Power: 14
julien.decharentenay is on a distinguished road
Send a message via Skype™ to julien.decharentenay
I have bypassed my problem by using a Programmable Filter that output the data in a vtkTable.

The code stated above then correctly output the data from the vtkTable.
__________________
---
Julien de Charentenay
julien.decharentenay is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM.org] blockMesh issue on openfoam6 startup - ubuntu 16.04 bjdarrer OpenFOAM Installation 7 August 25, 2020 20:15
[foam-extend.org] foam-extend-4.0 gcc errors & maybe paraFoam powerline332 OpenFOAM Installation 3 May 24, 2018 22:16
A CFX-POST error (ver 14.5.7) wangyflp88 CFX 2 July 22, 2017 01:17
Unable to install OpenFOAM 1.6-ext Maimouna OpenFOAM Installation 23 May 8, 2014 06:47
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08


All times are GMT -4. The time now is 17:43.