[Paraview] Parallel XML VTK with arbitrary polyhedra

Le Chenadec, Vincent vlc at illinois.edu
Mon Jan 5 08:40:49 EST 2015


Hi there,

I’m attempting to write a parallel XML file to source unstructured data to read in Paraview (written from an in-house fortran CFD code). Everything works out of the box when I use zoo elements (hexahedra, tetrahedra, …), not so when using arbitrary polyhedra.

I’m attaching a sample test (a sphere discretized on a 16x16x16 lattice, see sphere1.png). The .vtu files I dump seem to be valid, for the external boundaries are displayed accurately when visualizing them separately (see attached sphere2.png to see the partitioning).

When loading the .pvtu file, however, the external boundary considers only the zoo elements (hex only, in this case), not the polyhedral cells. Paraview also crashes whenever I apply a filter, which suggests I’m doing something wrong.

I’m most likely missing something in the .pvtu file? I tried a few things, e.g. adding a <PCells/> element where with <PDataArray/>’s referencing the faces and faceoffsets arrays specific to polyhedral cells, but no success so far… Any input is much welcome at this point!

Thanks,
Vincent

PS: I’m using the 4.2.0 built of Paraview. The ASCII .vtu and .pvtu files I use are attached in a tarball.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150105/847bb7fe/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sphere.png
Type: image/png
Size: 6829 bytes
Desc: sphere.png
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150105/847bb7fe/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sphere2.png
Type: image/png
Size: 11241 bytes
Desc: sphere2.png
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150105/847bb7fe/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sphere.tar.gz
Type: application/x-gzip
Size: 205717 bytes
Desc: sphere.tar.gz
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150105/847bb7fe/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sphere3.png
Type: image/png
Size: 7747 bytes
Desc: sphere3.png
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150105/847bb7fe/attachment-0005.png>


More information about the ParaView mailing list