|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
tek
Join Date: Jul 2011
Posts: 8
Rep Power: 15 ![]() |
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. |
|
![]() |
![]() |
![]() |
![]() |
#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 |
||
![]() |
![]() |
![]() |
![]() |
#3 |
Super Moderator
Hans Bihs
Join Date: Jun 2009
Location: Trondheim, Norway
Posts: 403
Rep Power: 19 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#4 |
New Member
tek
Join Date: Jul 2011
Posts: 8
Rep Power: 15 ![]() |
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. |
|
![]() |
![]() |
![]() |
![]() |
#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 |
||
![]() |
![]() |
![]() |
![]() |
#6 |
Member
Join Date: Jul 2011
Location: US
Posts: 39
Rep Power: 15 ![]() |
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 |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM] Paraview problem: loading the VTK cellSets changes the time | anon_q | ParaView | 1 | November 3, 2018 21:53 |
[General] How to relate tensor data in vtk file to Paraview | awa5114 | ParaView | 0 | March 7, 2017 05:56 |
[General] Creating VTK image compatible to Paraview Visualizer | het | ParaView | 0 | January 7, 2016 09:20 |
[General] paraview ignores SPACING in STRUCTURED_POINTS vtk data? | jaffar | ParaView | 0 | November 27, 2012 10:36 |
paraFoam reader for OpenFOAM 1.6 | smart | OpenFOAM Installation | 13 | November 16, 2009 22:41 |