CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Paraview & paraFoam

How to display badFaces from surfaceCheck in paraview

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 26, 2015, 04:37
Default How to display badFaces from surfaceCheck in paraview
  #1
Member
 
Join Date: Dec 2012
Posts: 65
Rep Power: 4
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
Senior Member
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 1,100
Blog Entries: 6
Rep Power: 19
Tobi will become famous soon enough
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>".
__________________
Best regards,
Tobias Holzmann

Some interesting OpenFOAM tutorials and videos on www.Holzmann-cfd.de
Tobi is offline   Reply With Quote

Old   February 26, 2015, 09:33
Default
  #3
Member
 
Join Date: Dec 2012
Posts: 65
Rep Power: 4
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
Senior Member
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 1,100
Blog Entries: 6
Rep Power: 19
Tobi will become famous soon enough
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!
__________________
Best regards,
Tobias Holzmann

Some interesting OpenFOAM tutorials and videos on www.Holzmann-cfd.de
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,132
Rep Power: 20
alexeym will become famous soon enoughalexeym will become famous soon enough
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.
alexeym is offline   Reply With Quote

Old   February 26, 2015, 10:03
Default
  #6
Member
 
Join Date: Dec 2012
Posts: 65
Rep Power: 4
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: 65
Rep Power: 4
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
Senior Member
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 1,100
Blog Entries: 6
Rep Power: 19
Tobi will become famous soon enough
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: .STL: non-closed manifold surface
__________________
Best regards,
Tobias Holzmann

Some interesting OpenFOAM tutorials and videos on www.Holzmann-cfd.de
Tobi is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Paraview display problem jiejie OpenFOAM Paraview & paraFoam 4 October 13, 2013 21:29
Xlib: extension "GLX" missing on display goldbeard OpenFOAM Paraview & paraFoam 5 March 24, 2013 14:12
errors when installing openfoam2.1 on ubuntu12.o4 hewei OpenFOAM Installation 5 May 29, 2012 07:43
Paraview does not display fields mirko OpenFOAM Paraview & paraFoam 1 August 11, 2011 07:19
paraFoam reader for OpenFOAM 1.6 smart OpenFOAM Installation 13 November 16, 2009 22:41


All times are GMT -4. The time now is 19:01.