CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [General] File format for Paraview (https://www.cfd-online.com/Forums/paraview/97490-file-format-paraview.html)

Bajji February 18, 2012 04:48

File format for Paraview
 
Hi,

I have written a 1 D convection diffusion equation solution solver using c++. (As in Peric). right now, I use PlotDrop and I have got output plots right.Now I wanna use paraView for the plotting as I have to use it anyway for my project work and I may as well get familiar with it. What is the format i should write my output file? I have data as X,Y .(2 arrays)

Can anybody give any pointers please?:o

P.S: I have googled and got a link to CSVreader . But no details on how to write the file.

RameshK February 18, 2012 05:14

File format
 
Hi

You can use vtk data format and use it in paraview

sbaffini February 22, 2012 03:39

You can google for vtk file formats or go trough the full documentation. However, this helped me a lot:

http://www.vtk.org/VTK/img/file-formats.pdf

elvis May 29, 2012 10:45

Hi,

take a look at
http://vtk.org/gitweb?p=VTK.git;a=bl...sv_to_graph.py
http://www.vtk.org/doc/release/5.8/html/a00520.html "vtkDelimitedTextReader"

http://vtk.org/gitweb?p=VTK.git;a=bl...hon/tables2.py

So you can do a little scripting in paraview with that vtkDelimitedTextReader and get the same thing done as in pur vtk

Bajji May 31, 2012 02:40

Thank you
 
Thank you for the reply.Right now I am writing plotScript.gp files from my code and loading them into gnuplot to create simple 2D views in the development stage.
I will do nice Post processing with paraview once I validate the code.
Thanks again :-):)


All times are GMT -4. The time now is 03:10.