Extracting Boundaries in Paraview

Mesh generators, CAD programs, and other tools
Bdefleur
Posts: 9
Joined: 20 Apr 2012, 11:37
Antispam: Yes

Extracting Boundaries in Paraview

Post by Bdefleur »

Hi

I am working on a 2D plan problem which is delt by Elmer as the boundary condition of a larger 3D computation. I would be glad to get only this boundary when post processing my data with paraview.
So, do you know if it is possible to extract only one boundary from the general geometry in paraview.
I was thinking of slicing my body with respect to the boundary condition index (as done with the grouping in ElmerPost) but these indexes does not seem to be acessible in paraview.

Cheers
Basile
mzenker
Posts: 1999
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: Extracting Boundaries in Paraview

Post by mzenker »

Hi,

did you try the slice filter? There is also a filter called "extract surface" which I have never used.
You may get a better answer if you post your question on the ParaView mailing list http://www.paraview.org/mailman/listinfo/paraview.

HTH,

Matthias
Bdefleur
Posts: 9
Joined: 20 Apr 2012, 11:37
Antispam: Yes

Re: Extracting Boundaries in Paraview

Post by Bdefleur »

Slice filter will only work on a flat surface which is not the usual for my geometries. The "extract surface" work well when coupled to a "clip" filter to get rid of top and side surfaces but it is still not perfect, I will see if paraview users have more ideas.

Thanks
Basile
cemg
Posts: 26
Joined: 02 Feb 2012, 17:41
Antispam: Yes
Location: Vigo, Spain

Re: Extracting Boundaries in Paraview

Post by cemg »

Hi,

perhaps you can filter the surface by its material id, defining a "threshold" filter over the cell data (material ids) in the "selection inspector".

Regards,

Cesar
raback
Site Admin
Posts: 4812
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Extracting Boundaries in Paraview

Post by raback »

Hi Cesar

There is, if I remember correctly, something like "Mask Variable". If this is living just on the BCs (the permutation vector is only there nonzero) then you can just save the boundaries when using VTU format.

-Peter
Bdefleur
Posts: 9
Joined: 20 Apr 2012, 11:37
Antispam: Yes

Re: Extracting Boundaries in Paraview

Post by Bdefleur »

Hi Peter

I see the point of your answer but I don't see how to access to the permutation vector in paraview.

Basile
raback
Site Admin
Posts: 4812
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Extracting Boundaries in Paraview

Post by raback »

Hi Basile

This is something to be added as a keyword in the Solver section of the ResultOutputSolver. Then only the boundaries where the variable is active will be saved. The permutation vector is not saved and cannot be accessed in Paraview.

-Peter
Bdefleur
Posts: 9
Joined: 20 Apr 2012, 11:37
Antispam: Yes

Re: Extracting Boundaries in Paraview

Post by Bdefleur »

Hi

I was fearing this answer. In fact I also want to be abble to see the body of my material so your solution does not seem to fit (Or could I run two ResultOutput solver, one for the boundary and one for the all geometry).
raback
Site Admin
Posts: 4812
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Extracting Boundaries in Paraview

Post by raback »

Hi

Do you suggestions how the VTU file could be augmented to allow the recognization of BCs?

-Peter
Bdefleur
Posts: 9
Joined: 20 Apr 2012, 11:37
Antispam: Yes

Re: Extracting Boundaries in Paraview

Post by Bdefleur »

Hi

My first thought were to pick directly the nodeindexes of BC I am interested in in the mesh.boundary file and to create a selection in paraview. But I don't know anything in Python to write the needed macro. So If the BC indexes could be saved in the vtu file this would be perfect.

Basile
Post Reply