CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[General] Paraview VTK Help ??

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 3, 2011, 13:49
Default Paraview VTK Help ??
  #1
New Member
 
tek
Join Date: Jul 2011
Posts: 8
Rep Power: 14
tek_cfd is on a distinguished road
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.
tek_cfd is offline   Reply With Quote

Old   July 4, 2011, 01:59
Default
  #2
Senior Member
 
Raashid Baig
Join Date: Mar 2010
Location: Bangalore, India
Posts: 135
Rep Power: 16
cfd_newbie is on a distinguished road
Quote:
Originally Posted by tek_cfd View Post
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
cfd_newbie is offline   Reply With Quote

Old   July 4, 2011, 03:42
Default VTK Fileformat
  #3
Super Moderator
 
Hans Bihs
Join Date: Jun 2009
Location: Trondheim, Norway
Posts: 377
Rep Power: 17
valgrinda is on a distinguished road
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
valgrinda is offline   Reply With Quote

Old   July 4, 2011, 22:09
Default
  #4
New Member
 
tek
Join Date: Jul 2011
Posts: 8
Rep Power: 14
tek_cfd is on a distinguished road
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.
tek_cfd is offline   Reply With Quote

Old   July 5, 2011, 01:00
Default
  #5
Senior Member
 
Raashid Baig
Join Date: Mar 2010
Location: Bangalore, India
Posts: 135
Rep Power: 16
cfd_newbie is on a distinguished road
Quote:
Originally Posted by tek_cfd View Post
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
cfd_newbie is offline   Reply With Quote

Old   July 8, 2011, 14:20
Default
  #6
Member
 
Join Date: Jul 2011
Location: US
Posts: 39
Rep Power: 14
Docfreezzzz is on a distinguished road
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
Docfreezzzz is offline   Reply With Quote

Reply

Tags
paraview, visulization


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 13:48.