<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Dominik Szczerba wrote:
<blockquote cite="mid:200801222301.14694.domi@vision.ee.ethz.ch"
 type="cite">
  <pre wrap="">Exporting data to legacy formats is an option if you 1) just want to see it, 
never read back 2) have plenty space to waste to keep your data in an extra 
format. Using VTK to store CFD data you are going to read back later will 
require you use VTK in your CFD code. I would not recommend it.
  </pre>
</blockquote>
These are good points. But, it does depend on the case. Some CFD data
sets don't translate cleanly into VTK data sets, in which case you, and
especially so if the conversion is time consuming, may wish store
visualization files separately. In that case some sort of converter or
to simply write VTK files in the first place does make sense. One point
in this regard is that the simplicity  of the legacy files make it
trivial to code up your own writer or reader, thus it is also not true
that you would have to include VTK in your code. Again, good points,
and on target, I would generally agree with you.<br>
<br>
Burlen<br>
<br>
<br>
<blockquote cite="mid:200801222301.14694.domi@vision.ee.ethz.ch"
 type="cite">
  <pre wrap="">
-- Dominik

On Tuesday 22 January 2008 17.49:27 Mike Jackson wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">So basically, you need to read the data from the HDF5 file and render  
that using VTK. This can be done for your dataset but you will need  
to write the conversion code. The basic outline would be something like.

Read a timestep of HDF5 data into memory (assuming it will fit)
Instantiate the appropriate vtk object (would vtkImage be appropriate  
or vtkStructuredGrid?)
copy all the data to the vtk object creating scalar and vector  
attributes as needed.
save the resulting file to a vtk file (vtkXML....Writer)

View data in ParaView  (or vtk for that matter).

Does this help?

On Jan 22, 2008, at 11:18 AM, Ogedengbe, Emmanuel wrote:

    </pre>
    <blockquote type="cite">
      <pre wrap="">After installation of VTK for use with purely C++ on windows, I  
have been struggling with how to get started with reading my CFD  
datasets for visualization. I have done some research with HDF5 but  
having problem with having to go into increasing number of third  
party software and libraries. Recently, I learnt that H5utils can  
convert HDF5 datasets into the formats required by other free  
visualization software like VTK. But it’s only for UNIX systems,  
though it appears help can come from CygWin .

Can anyone help? I just want to visualize simple 2D/3D grid-based  
scalar and vector flow fields simulated with my native codes.


Thanks in anticipation

Emmanuel

      </pre>
    </blockquote>
    <pre wrap="">

    </pre>
  </blockquote>
  <pre wrap=""><!---->


  </pre>
</blockquote>
<br>
</body>
</html>