[email protected] wrote:
>
> Hi all,
>
> for a structured, multiblock CFD data which is the best Paraview-readable
> file format?

the solution is to write a wrapper which is a collection of grids. Each
item in the collection can itself be a collection of sub-grids. So it is
fully hierarchical.

here is an example, which ParaView will read in a single button click:

<?xml version="1.0"?>
<VTKFile type="vtkMultiBlockDataSet" version="1.0"
byte_order="LittleEndian" compressor="vtkZLibDataCompressor">
  <vtkMultiBlockDataSet>
    <Block index="0">
      <DataSet index="0" file="foo/foo_0.vts"></DataSet>
      <DataSet index="1" file="foo/foo_1.vts"></DataSet>
    </Block>
    <Block index="1">
      <Block index="0">
        <DataSet index="0" file="foo/foo_896.vts"></DataSet>
        <DataSet index="1" file="foo/foo_897.vts"></DataSet>
        <DataSet index="2" file="foo/foo_898.vts"></DataSet>
      </Block>
      <Block index="1">
        <DataSet index="0" file="foo/foo_1397.vts"></DataSet>
        <DataSet index="1" file="foo/foo_1398.vts"></DataSet>
        <DataSet index="2" file="foo/foo_1399.vts"></DataSet>
      </Block>
    </Block>
  </vtkMultiBlockDataSet>
</VTKFile>

Jean --
Swiss National Supercomputing Center
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to