|
[Sponsors] |
July 3, 2011, 13:49 |
Paraview VTK Help ??
|
#1 |
New Member
tek
Join Date: Jul 2011
Posts: 8
Rep Power: 14 |
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. |
|
July 4, 2011, 01:59 |
|
#2 | |
Senior Member
Raashid Baig
Join Date: Mar 2010
Location: Bangalore, India
Posts: 135
Rep Power: 16 |
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 |
||
July 4, 2011, 03:42 |
VTK Fileformat
|
#3 |
Super Moderator
Hans Bihs
Join Date: Jun 2009
Location: Trondheim, Norway
Posts: 377
Rep Power: 17 |
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 |
|
July 4, 2011, 22:09 |
|
#4 |
New Member
tek
Join Date: Jul 2011
Posts: 8
Rep Power: 14 |
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. |
|
July 5, 2011, 01:00 |
|
#5 | |
Senior Member
Raashid Baig
Join Date: Mar 2010
Location: Bangalore, India
Posts: 135
Rep Power: 16 |
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 |
||
July 8, 2011, 14:20 |
|
#6 |
Member
Join Date: Jul 2011
Location: US
Posts: 39
Rep Power: 14 |
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.
__________________
CFD engineering resource |
|
Tags |
paraview, visulization |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM] Paraview problem: loading the VTK cellSets changes the time | anon_q | ParaView | 1 | November 3, 2018 20:53 |
[General] How to relate tensor data in vtk file to Paraview | awa5114 | ParaView | 0 | March 7, 2017 04:56 |
[General] Creating VTK image compatible to Paraview Visualizer | het | ParaView | 0 | January 7, 2016 08:20 |
[General] paraview ignores SPACING in STRUCTURED_POINTS vtk data? | jaffar | ParaView | 0 | November 27, 2012 09:36 |
paraFoam reader for OpenFOAM 1.6 | smart | OpenFOAM Installation | 13 | November 16, 2009 21:41 |