[Paraview] How to visualize multipart/multiblock models
Berk Geveci
berk.geveci at kitware.com
Thu Dec 18 09:22:58 EST 2008
Hi Marco,
Which version of ParaView are you using? In 3.4, you can create a vtm
file that points to the individual vtu files. You can then color the
blocks separately using the vtkCompositeIndex array (just color by
it). You can control the color of each block by editing the color map.
Alternatively, you can add a cell-centered, 3 component, unsigned char
array (RGB) for each block to the file and then color by that array
(make sure to turn off the Map Scalar option).
As for turning on/off individual block, I am afraid you have to use
the Extract Block filter to achieve that. I hope that we will have
that option in the Display page in the future but it is not currently
supported.
What I described here should also work with Xdmf.
-berk
On Wed, Dec 17, 2008 at 11:12 AM, M. Nawijn <nawijn at gmail.com> wrote:
> Hello,
>
> I am trying to find a way to subdivide a structural analysis model in
> several parts in such a way that I can post-process the results in Paraview.
> The primary objective for me is to be able to hide and show different parts
> of the structure. The model itself is not too large (say 50.000 cells). A
> bonus for me would be that I can assign a different color (or different
> properties in general) to each of the parts.
>
> I have tried a few things with Paraview:
> 1. Create a set of individual .VTU files and combine them in a .PVD
> file. This works very nice for building result sequences of the complete
> model.
> 2. Create a set of individual .VTU files and combine them in a .PVM
> file. This works in the sense that I can import a complete model build up
> from several pieces, but I cannot assign colors to each of the parts and are
> unable to hide and show individual parts (tried by using the "extract
> datasets" filter).
> 3. Create a XDMF XML file with 2 GRID elements in a single domain. This
> again allows me to import the model and show hide individual parts. I can
> still assign only 1 color to the complete model.
>
> Is subdivision into multiple showable/hideable parts, including individual
> color assignment, possible with either XDMF or VTK XML files?
> If so, can someone post a minimal example?
>
> Kind regards,
>
> Marco
>
>
>
>
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>
>
More information about the ParaView
mailing list