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. |
Quote:
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 |
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 |
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. |
Quote:
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 |
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 07:06. |