[Paraview] Multi-block(zone) data: which is best file format for Paraview?

Jean Favre jfavre at cscs.ch
Thu Apr 2 03:56:39 EDT 2009


szaghi at infinito.it 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


More information about the ParaView mailing list