CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] Visualizing faces of an OpenFOAM mesh by ID in Paraview

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 4 Post By ViktorKL

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 7, 2017, 08:38
Default Visualizing faces of an OpenFOAM mesh by ID in Paraview
  #1
New Member
 
Timm Feigel
Join Date: Sep 2017
Location: Braunschweig, Germany
Posts: 3
Rep Power: 8
Timm Feigel is on a distinguished road
Dear all,

I need to locate a face in an OpenFOAM mesh by knowing its ID using Paraview. Although this seems possible for cells and points using the spread sheet option after splitting the view (see attached screenshot), it is not obvious to me how to do the same for faces.

Any help is highly appreciated, many thanks in advance.
Regards,
Timm
Attached Images
File Type: jpg Screenshot from 2017-09-07 14-22-05.jpg (199.6 KB, 135 views)
Timm Feigel is offline   Reply With Quote

Old   October 12, 2017, 20:15
Default
  #2
New Member
 
Appu
Join Date: Apr 2016
Posts: 15
Rep Power: 10
ullal is on a distinguished road
Timm,

Did you figure out how to do this, i had exactly the same problem
ullal is offline   Reply With Quote

Old   October 13, 2017, 09:46
Default
  #3
New Member
 
Timm Feigel
Join Date: Sep 2017
Location: Braunschweig, Germany
Posts: 3
Rep Power: 8
Timm Feigel is on a distinguished road
Quote:
Originally Posted by ullal View Post
Timm,

Did you figure out how to do this, i had exactly the same problem
Hello ullal!

No, unfortunately I haven't found a satisfying answer yet. In case I will, I will naturally post here for future readers.

Regards, Timm
Timm Feigel is offline   Reply With Quote

Old   April 30, 2020, 05:19
Default Use topoSet and foamToVTK
  #4
New Member
 
Viktor Klüber
Join Date: Jan 2018
Posts: 10
Rep Power: 8
ViktorKL is on a distinguished road
If there is no other way you can create a faceSet with topoSet and visualize it as VTK-format.

In a topoSet dictionary, you need to provide the Face-IDs in a list by using the labelToFace-source as in the following example:
Code:
    {
        name        zeroArea_f;
        type        faceSet;
        action      new;
        source      labelToFace;
        sourceInfo
        {
            value
            (
            339
            13055
            ...
            );
        }
    }
After executing topoSet you can convert the resulting faceSet (named "zeroArea_f" in the example) into a VTK with the help of foamToVTK.
Code:
foamToVTK -faceSet zeroArea_f
It will create a .vtk-file with the faceSet's name in a VTK folder of your OpenFOAM case repository. You can open this file in paraview and visualize the faces.

This is a cumbersone workaround. However, it works when there is no other option.

Last edited by ViktorKL; May 4, 2020 at 03:16.
ViktorKL is offline   Reply With Quote

Reply

Tags
face id, faces, parafoam, paraview, spreadsheet


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[snappyHexMesh] Layers not growing at all zonda OpenFOAM Meshing & Mesh Conversion 12 June 6, 2020 11:28
[Other] Mesh Importing Problem cuteapathy ANSYS Meshing & Geometry 2 June 24, 2017 05:29
[Gmsh] Vertex numbering is dense KateEisenhower OpenFOAM Meshing & Mesh Conversion 7 August 3, 2015 10:49
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 21:11
DecomposePar unequal number of shared faces maka OpenFOAM Pre-Processing 6 August 12, 2010 09:01


All times are GMT -4. The time now is 05:09.