CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Gmsh] GmshTo Foam Warning

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   October 23, 2015, 15:29
Default GmshTo Foam Warning
  #1
New Member
 
vito
Join Date: Jun 2015
Posts: 22
Rep Power: 10
vitocorleone is on a distinguished road
Hello Guys,

I have been using Gmsh for sometime to simulate flow past a cylinder and I keep getting this warning that I have posted below. I know that this has been posted separately in a thread and an answer was to check if all the external faces of the boundary have been defined or not. I have already checked that and ensured that all the boundary faces have been defined.

I also tried visualizing this cell set called Internal and writing it to VTK and trying to view it in Parafoam. but unfortunately nothing turns up as in it is blank althiough the vtk file is quite huge..(by using the following command)

foamToVTK -cellSet Internal

My check mesh is ok and simulation runs fine but for the love of god I am not able to understand why this error is coming up.

If some body can tell me what files they need me to upload I can do that and await suggestions. I am not ablr to upload the vtk file as it is too big.

Also I am not able to find the default patch

FOAM Warning :

From function polyMesh:olyMesh(... construct from shapes...)
in file meshes/polyMesh/polyMeshFromShapeMesh.C at line 627
Found 220340 undefined faces in mesh; adding to default patch.


vitocorleone is offline   Reply With Quote

Old   October 23, 2015, 16:01
Default
  #2
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,

If you open gmshToFoam.C, go to line 869, you find commentary there:

Code:
    // Problem is that the orientation of the patchFaces does not have to
    // be consistent with the outwards orientation of the mesh faces. So
    // we have to construct the mesh in two stages:
    // 1. define mesh with all boundary faces in one patch
    // 2. use the read patchFaces to find the corresponding boundary face
    //    and repatch it.
And that is what gmshToFoam does, creates mesh with all boundary faces added to defaultFaces patch, redistributes faces to correct patches:

Code:
    faceListList boundaryFaces(patchFaces.size());
    ...
    polyMesh mesh
    (
        ...
    );
    ...
    forAll(patchFaces, patchI)
    {
        const DynamicList<face>& pFaces = patchFaces[patchI];

        Info<< "Finding faces of patch " << patchI << endl;

        forAll(pFaces, i)
        {
            const face& f = pFaces[i];

            // Find face in pp using all vertices of f.
            label patchFaceI = findFace(pp, f);

            if (patchFaceI != -1)
            {
                label meshFaceI = pp.start() + patchFaceI;

                repatcher.changePatchID(meshFaceI, patchI);
            }
        ...
        }
    ...
    }
And if all faces found their owner, defaultFaces patch becomes empty and is deleted during conversion (you can find code near the end of gmshToFoam.C).
vitocorleone likes this.
alexeym is offline   Reply With Quote

Old   October 24, 2015, 12:51
Default
  #3
New Member
 
vito
Join Date: Jun 2015
Posts: 22
Rep Power: 10
vitocorleone is on a distinguished road
Thank you very Much alexeym.

So I guess all my faces found their owners ..

Thank you much again.
vitocorleone 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
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 18:22
[blockMesh] error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Meshing & Mesh Conversion 2 March 14, 2012 10:56
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 15:11
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 11:23
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 15:00


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