Discussion:
[Paraview] How to visualize multipart/multiblock models
M. Nawijn
2008-12-17 16:12:35 UTC
Permalink
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20081217/239c0091/attachment.htm>
M. Nawijn
2008-12-18 11:15:28 UTC
Permalink
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?


BTW. I hope this is not a double post. I posted this message
yesterday, but did not receive it though my subscription. I actually
found this message in the Paraview mail-archive. Maybe there is a
problem/restriction on the message format. I mailed from my GMAIL
account in the default rich text format. I will try now in plain text.
If it is a double post, please forgive me ;).


Kind regards,

Marco
Utkarsh Ayachit
2008-12-18 14:07:28 UTC
Permalink
Currently there is no way to hide-show individual blocks in a
multiblock dataset or assign colors to them. However, you can apply
the "Extract Block" filter to extract each individual blocks and then
apply colors to them or show/hide them.

Utkarsh
Post by M. Nawijn
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.
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?
BTW. I hope this is not a double post. I posted this message
yesterday, but did not receive it though my subscription. I actually
found this message in the Paraview mail-archive. Maybe there is a
problem/restriction on the message format. I mailed from my GMAIL
account in the default rich text format. I will try now in plain text.
If it is a double post, please forgive me ;).
Kind regards,
Marco
_______________________________________________
ParaView mailing list
ParaView at paraview.org
http://www.paraview.org/mailman/listinfo/paraview
Samuel Key
2008-12-18 19:52:45 UTC
Permalink
Nawijn,

ParaView is quite happy to read multiple copies of your *pvd file as in
1 below. You can then process them independently. You also create
multiple "edited" *.pvd files that each has only one part. PV can read
them all and have individual pipelines in which a Transform filter can
translated and rotate the part (side-by-side view, symmetric halves used
to create a whole, "exploded" part views, two different orientations of
the same part with the same or different information displayed on the
part, et cetera). The more you use PV the smarter it gets. With multiple
parts, each with its own pipeline, you can use the "eyeball" icon in the
pipeline display window to turn on/off any combination of parts you like.

I personally find PV amazingly versatile. What is limiting is my
imagination to realize everything it can do just as it is.

Sam Key
Post by M. Nawijn
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.
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?
BTW. I hope this is not a double post. I posted this message
yesterday, but did not receive it though my subscription. I actually
found this message in the Paraview mail-archive. Maybe there is a
problem/restriction on the message format. I mailed from my GMAIL
account in the default rich text format. I will try now in plain text.
If it is a double post, please forgive me ;).
Kind regards,
Marco
_______________________________________________
ParaView mailing list
ParaView at paraview.org
http://www.paraview.org/mailman/listinfo/paraview
-------------- next part --------------
A non-text attachment was scrubbed...
Name: samuelkey.vcf
Type: text/x-vcard
Size: 282 bytes
Desc: not available
URL: <http://www.paraview.org/pipermail/paraview/attachments/20081218/3063bac7/attachment-0001.vcf>
Berk Geveci
2008-12-18 14:22:58 UTC
Permalink
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
Post by M. Nawijn
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.
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
Jacques Papper
2008-12-19 10:00:01 UTC
Permalink
Hi All,

I have been thinking of a potential improvement for visualization of
multipart models in ParaView.
I would really like to develop the following functionality :

Have support for multiple views where you can :
-> Select one or several blocks and move them to another view (maybe with a
keyboard shortcut like alt+numberofView)
-> flip between the views by just typing a number on the keyboard
-> Have a system where blocks can only be present in one view at a time

Would the structure of ParaView enable me to do this ? If so - where would I
start ? I know that the pipeline and the extract selections offer somewhat a
similar capability, but there are still a few things missing ?

Jacques

-----Original Message-----
From: paraview-bounces at paraview.org [mailto:paraview-bounces at paraview.org]
On Behalf Of Berk Geveci
Sent: 18 December 2008 14:23
To: M. Nawijn
Cc: paraview at paraview.org
Subject: Re: [Paraview] How to visualize multipart/multiblock models

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
Post by M. Nawijn
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.
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
_______________________________________________
ParaView mailing list
ParaView at paraview.org
http://www.paraview.org/mailman/listinfo/paraview


---------------------------
This email contains information that is private and confidential and is intended only for the addressee. If you are not the intended recipient please delete it and notify us immediately by e-mailing the sender.
Note: All email sent to or from this address may be accessed by someone other than the recipient, for system management and security reasons.
Aircraft Research Association Ltd. Registered in England, Registration No 503668 Registered Office: Manton Lane, Bedford MK41 7PF England VAT No GB 196351245
Utkarsh Ayachit
2009-01-07 15:16:53 UTC
Permalink
Jacques,

Is this functionality for a custom application developed over ParaView
or for a plugin extending standard ParaView?

Utkarsh
Post by Jacques Papper
Hi All,
I have been thinking of a potential improvement for visualization of
multipart models in ParaView.
-> Select one or several blocks and move them to another view (maybe with a
keyboard shortcut like alt+numberofView)
-> flip between the views by just typing a number on the keyboard
-> Have a system where blocks can only be present in one view at a time
Would the structure of ParaView enable me to do this ? If so - where would I
start ? I know that the pipeline and the extract selections offer somewhat a
similar capability, but there are still a few things missing ?
Jacques
-----Original Message-----
From: paraview-bounces at paraview.org [mailto:paraview-bounces at paraview.org]
On Behalf Of Berk Geveci
Sent: 18 December 2008 14:23
To: M. Nawijn
Cc: paraview at paraview.org
Subject: Re: [Paraview] How to visualize multipart/multiblock models
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
Post by M. Nawijn
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.
Post by M. Nawijn
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.
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
_______________________________________________
ParaView mailing list
ParaView at paraview.org
http://www.paraview.org/mailman/listinfo/paraview
---------------------------
This email contains information that is private and confidential and is intended only for the addressee. If you are not the intended recipient please delete it and notify us immediately by e-mailing the sender.
Note: All email sent to or from this address may be accessed by someone other than the recipient, for system management and security reasons.
Aircraft Research Association Ltd. Registered in England, Registration No 503668 Registered Office: Manton Lane, Bedford MK41 7PF England VAT No GB 196351245
_______________________________________________
ParaView mailing list
ParaView at paraview.org
http://www.paraview.org/mailman/listinfo/paraview
Jacques Papper
2009-01-08 11:51:01 UTC
Permalink
Either way. I haven't thought of creating a custom application over ParaView
for the moment. I think I would like most developments to be in ParaView as
a standard. Why?Jacques

2009/1/7 Utkarsh Ayachit <utkarsh.ayachit at kitware.com>
Post by Utkarsh Ayachit
Jacques,
Is this functionality for a custom application developed over ParaView
or for a plugin extending standard ParaView?
Utkarsh
Post by Jacques Papper
Hi All,
I have been thinking of a potential improvement for visualization of
multipart models in ParaView.
-> Select one or several blocks and move them to another view (maybe with
a
Post by Jacques Papper
keyboard shortcut like alt+numberofView)
-> flip between the views by just typing a number on the keyboard
-> Have a system where blocks can only be present in one view at a time
Would the structure of ParaView enable me to do this ? If so - where
would I
Post by Jacques Papper
start ? I know that the pipeline and the extract selections offer
somewhat a
Post by Jacques Papper
similar capability, but there are still a few things missing ?
Jacques
-----Original Message-----
paraview-bounces at paraview.org]
Post by Jacques Papper
On Behalf Of Berk Geveci
Sent: 18 December 2008 14:23
To: M. Nawijn
Cc: paraview at paraview.org
Subject: Re: [Paraview] How to visualize multipart/multiblock models
Hi Marco,
Which version of ParaView are you using? In 3.4, you can create a vtm
file
Post by Jacques Papper
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
Post by Jacques Papper
(RGB) for each block to the file and then color by that array (make sure
to
Post by Jacques Papper
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
Post by Jacques Papper
in the Display page in the future but it is not currently supported.
What I described here should also work with Xdmf.
-berk
Post by M. Nawijn
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.
Post by M. Nawijn
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.
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
_______________________________________________
ParaView mailing list
ParaView at paraview.org
http://www.paraview.org/mailman/listinfo/paraview
---------------------------
This email contains information that is private and confidential and is
intended only for the addressee. If you are not the intended recipient
please delete it and notify us immediately by e-mailing the sender.
Post by Jacques Papper
Note: All email sent to or from this address may be accessed by someone
other than the recipient, for system management and security reasons.
Post by Jacques Papper
Aircraft Research Association Ltd. Registered in England, Registration
No 503668 Registered Office: Manton Lane, Bedford MK41 7PF England VAT No GB
196351245
Post by Jacques Papper
_______________________________________________
ParaView mailing list
ParaView at paraview.org
http://www.paraview.org/mailman/listinfo/paraview
_______________________________________________
ParaView mailing list
ParaView at paraview.org
http://www.paraview.org/mailman/listinfo/paraview
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20090108/3e789d8f/attachment.htm>
Utkarsh Ayachit
2009-01-08 14:19:22 UTC
Permalink
Jacques,
Post by Jacques Papper
Post by Jacques Papper
-> flip between the views by just typing a number on the keyboard
This should be easy. You need to create a QShortcut that captures come
key combination, say Ctrl+Num and then simply changes the active view.
Ofcourse the ordering of views is not necessarily obvious but
shouldn't be too hard to come up with a convention. Look at
Qt/Components/pqActiveView. It's a singleton. Simply call setCurrent()
on it to change the active view. Look at pqApplicationCore::loadState
to see how to get the list of current views.

The other cases dealing with blocks and views are a bit tricky. Let me
get back to you.

Utkarsh
Post by Jacques Papper
Either way. I haven't thought of creating a custom application over ParaView
for the moment. I think I would like most developments to be in ParaView as
a standard. Why?
Jacques
2009/1/7 Utkarsh Ayachit <utkarsh.ayachit at kitware.com>
Post by Jacques Papper
Jacques,
Is this functionality for a custom application developed over ParaView
or for a plugin extending standard ParaView?
Utkarsh
Post by Jacques Papper
Hi All,
I have been thinking of a potential improvement for visualization of
multipart models in ParaView.
-> Select one or several blocks and move them to another view (maybe with a
keyboard shortcut like alt+numberofView)
-> flip between the views by just typing a number on the keyboard
-> Have a system where blocks can only be present in one view at a time
Would the structure of ParaView enable me to do this ? If so - where would I
start ? I know that the pipeline and the extract selections offer somewhat a
similar capability, but there are still a few things missing ?
Jacques
-----Original Message-----
From: paraview-bounces at paraview.org
[mailto:paraview-bounces at paraview.org]
On Behalf Of Berk Geveci
Sent: 18 December 2008 14:23
To: M. Nawijn
Cc: paraview at paraview.org
Subject: Re: [Paraview] How to visualize multipart/multiblock models
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
Post by M. Nawijn
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.
Post by M. Nawijn
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.
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
_______________________________________________
ParaView mailing list
ParaView at paraview.org
http://www.paraview.org/mailman/listinfo/paraview
---------------------------
This email contains information that is private and confidential and is
intended only for the addressee. If you are not the intended recipient
please delete it and notify us immediately by e-mailing the sender.
Note: All email sent to or from this address may be accessed by someone
other than the recipient, for system management and security reasons.
Aircraft Research Association Ltd. Registered in England, Registration
No 503668 Registered Office: Manton Lane, Bedford MK41 7PF England VAT No GB
196351245
_______________________________________________
ParaView mailing list
ParaView at paraview.org
http://www.paraview.org/mailman/listinfo/paraview
_______________________________________________
ParaView mailing list
ParaView at paraview.org
http://www.paraview.org/mailman/listinfo/paraview
Loading...