CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > ParaView

Paraview VTK Help ??

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   July 3, 2011, 13:49
Default Paraview VTK Help ??
  #1
New Member
 
tek
Join Date: Jul 2011
Posts: 8
Rep Power: 5
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: 136
Rep Power: 7
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
Member
 
Hans Bihs
Join Date: Jun 2009
Location: Trondheim, Norway
Posts: 34
Rep Power: 8
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: 5
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: 136
Rep Power: 7
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: 5
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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie: Install ParaView 3.81 on OF-1.6-ext/OpenSuse 11.2? lentschi OpenFOAM Installation 1 March 9, 2011 03:32
Paraview Windows VTK Reader trex930 OpenFOAM Paraview & paraFoam 0 November 3, 2010 20:31
Paraview in Prallel (server-client) prapanj OpenFOAM Paraview & paraFoam 11 September 24, 2010 07:12
paraFoam reader for OpenFOAM 1.6 smart OpenFOAM Installation 13 November 16, 2009 22:41
Paraview and VTK Mattijs Janssens (Mattijs) OpenFOAM Paraview & paraFoam 120 October 3, 2008 16:08


All times are GMT -4. The time now is 02:08.