[Paraview] Multi-block(zone) data: which is best file format for Paraview?
szaghi at infinito.it
szaghi at infinito.it
Thu Apr 2 08:42:38 EDT 2009
<<
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>
>>
Hi Jean,
thank you very much for your tip! It works perfectly.
Just another question: how can I "handle" the single block? It
seems that I
can "play" (applay filters, display ecc...) with only all blocks
together
while in the "information" tab I can see the hierarchical data
with each
block separately. It would be wonderfull if it is possible to maintain the
hierarchical data set and, at the same time, to manage each single block.
Thank you very much.
Stefano
More information about the ParaView
mailing list