CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [General] Paraview VTK Help ?? (https://www.cfd-online.com/Forums/paraview/90178-paraview-vtk-help.html)

tek_cfd July 3, 2011 13:49

Paraview VTK Help ??
 
I am writing a program in C++ to solve the Laplace equation in 2D. The aim is to illustrate the way CFD code works. For this purpose, I would like to visualize the mesh and the data generated (.dat) using paraview (vtk ).
Could give me some indications on how to deal with this ?
I am looking forward to having your advice.
Many thanks in advance for your response.

cfd_newbie July 4, 2011 01:59

Quote:

Originally Posted by tek_cfd (Post 314531)
I am writing a program in C++ to solve the Laplace equation in 2D. The aim is to illustrate the way CFD code works. For this purpose, I would like to visualize the mesh and the data generated (.dat) using paraview (vtk ).
Could give me some indications on how to deal with this ?
I am looking forward to having your advice.
Many thanks in advance for your response.

so whats preventing you from doing so ? are you able to create gird and result files in vtk file format ?

One suggestion use EnSight Binary format instead of the vtk, it's far better than vtk file format and is very well supported in ParaView.

Raashid

valgrinda July 4, 2011 03:42

VTK Fileformat
 
Hei,

check this document: http://www.vtk.org/VTK/img/file-formats.pdf
This is the reference for the vtk and paraview formats.
My recommendation: use the "new" format with XML headers, this supports parallel output. Then use binary format to write the data itself for speed and file size optimization.

Cheers
Hans

tek_cfd July 4, 2011 22:09

Thank you for reactions.
My question is how to include the vtk in the C++ code ? and how to generate vtk format or Ensight ?

A sample of code on these points will be very useful to me.
Many thanks valgrinda for the document.

cfd_newbie July 5, 2011 01:00

Quote:

Originally Posted by tek_cfd (Post 314699)
Thank you for reactions.
My question is how to include the vtk in the C++ code ? and how to generate vtk format or Ensight ?

A sample of code on these points will be very useful to me.
Many thanks valgrinda for the document.

These links will help you in creating vtk and EnSight file formats -
http://www.vtk.org/VTK/img/file-formats.pdf

For ensight gold format look into the Ensight help document on EnSight website.
https://visualization.hpc.mil/wiki/E...SE_File_Format

Docfreezzzz July 8, 2011 14:20

The following link will likely be helpful.

https://visualization.hpc.mil/wiki/V...eading_in_Data

I would suggest using the legacy VTK format as they are the simplest, the XML format is a bit harder to understand and to write as everything much be bracketed correctly.


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