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

[OpenFOAM] How to display badFaces from surfaceCheck in paraview

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By alexeym

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 26, 2015, 04:37
Default How to display badFaces from surfaceCheck in paraview
  #1
Member
 
Join Date: Dec 2012
Posts: 81
Rep Power: 13
pizzaspinate is on a distinguished road
Hi FOAMers,

I have a question regarding surfaceCheck:
Unfortunately OpenFOAM doesn't like my geometry according to surfaceCheck. It creates in the triSurface folder several subfolders such as badfaces, illegalFaces and problemFaces.
My question is:
How can I display the faces in paraview so that I know how to improve this faces?

Thank you very much in advance for your help.
pizzaspinate is offline   Reply With Quote

Old   February 26, 2015, 08:55
Default
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi,

you can visualize them using:
  1. setSet
  2. foamToVTK
With the first one, you can create a new faceSet and insert the faces to that set. This can be visualized with paraview. The easier way is to use the second command with the argument "-faceSet <faceSet>".
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   February 26, 2015, 09:33
Default
  #3
Member
 
Join Date: Dec 2012
Posts: 81
Rep Power: 13
pizzaspinate is on a distinguished road
Hi Tobias,

thanks for the quick response. I tried the 2nd approach but it gives me the following error:
Code:
--> FOAM FATAL IO ERROR: 
problem while reading header for object problemFaces

file: /home/localuser/OpenFOAM/localuser-2.3.1/run/Straight_Wing_3d_Mesh9/constant/polyMesh/sets/problemFaces at line 1.

    From function regIOobject::readStream()
    in file db/regIOobject/regIOobjectRead.C at line 95
Do I have to copy the problemFaces out of the triSurface folder to another location?
pizzaspinate is offline   Reply With Quote

Old   February 26, 2015, 09:44
Default
  #4
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
As you see in your error message:
Code:
file: /home/localuser/OpenFOAM/localuser-2.3.1/run/Straight_Wing_3d_Mesh9/constant/polyMesh/sets/problemFaces at line 1.
Its searching for the file in the given folder.
Copy it to that place!
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   February 26, 2015, 09:51
Default
  #5
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

You can (or should) use surfaceSubset to write results of surfaceCheck. In fact it states it explicitly (here's an example for badFaces):

Code:
            if (!problemFaces.empty())
            {
                OFstream str("badFaces");

                Info<< "Dumping bad quality faces to " << str.name() << endl
                    << "Paste this into the input for surfaceSubset" << nl
                    << nl << endl;

                str << problemFaces;
            }
You can find surfaceSubsetDict in $FOAM_APP/utilities/surface/surfaceSubset folder. Here's how surfaceSubset should be used:

Code:
surfaceSubset [OPTIONS] <surfaceSubsetDict> <surfaceFile> <output surfaceFile>
Output surface file format can be: stl, stlb (binary stl), gts, obj, off, tri, ac, nas, vtk. Guess you can go with STL or VTK.
Tobi likes this.
alexeym is offline   Reply With Quote

Old   February 26, 2015, 10:03
Default
  #6
Member
 
Join Date: Dec 2012
Posts: 81
Rep Power: 13
pizzaspinate is on a distinguished road
I have tried both ways now:
for the FoamToVTK I get:
Code:
--> FOAM FATAL IO ERROR: 
problem while reading header for object problemFaces
and for the surfaceSubset i get:
Code:
surfaceSubset [OPTIONS] <surfaceSubsetDict> <surfaceFile> <output surfaceFile>
in fact my problem faces file looks only like this:
4(174 175 386 387)
pizzaspinate is offline   Reply With Quote

Old   February 26, 2015, 10:25
Default
  #7
Member
 
Join Date: Dec 2012
Posts: 81
Rep Power: 13
pizzaspinate is on a distinguished road
uuups, for the surfaceSubset i get:
--> FOAM FATAL IO ERROR:
Istream not OK for reading dictionary

sorry for that!
pizzaspinate is offline   Reply With Quote

Old   February 26, 2015, 11:02
Default
  #8
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Oh you are using STL
I did not get that ... thought you have this faces with "checkMesh". Sorry...
Once I figured it out but its long time ago because now I know how to generate beautfilul CFD STL files

Anyway. Maybe this will help you: http://www.cfd-online.com/Forums/ope...d-surface.html
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[OpenFOAM.org] Paraview 5.4 in shell environment of5x - Segmentation fault (core dumped) dslbkxd OpenFOAM Installation 1 February 3, 2018 01:56
[OpenFOAM] Paraview display problem jiejie ParaView 4 October 13, 2013 22:29
[OpenFOAM] Xlib: extension "GLX" missing on display goldbeard ParaView 5 March 24, 2013 14:12
errors when installing openfoam2.1 on ubuntu12.o4 hewei OpenFOAM Installation 5 May 29, 2012 08:43
paraFoam reader for OpenFOAM 1.6 smart OpenFOAM Installation 13 November 16, 2009 22:41


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