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

[Gmsh] gmshToFOAM: Found undefined faces in mesh

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By sisi
  • 1 Post By alexeym

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   November 30, 2014, 17:32
Default gmshToFOAM: Found undefined faces in mesh
  #1
Member
 
Join Date: Mar 2014
Location: Austrian abroad in Germany
Posts: 48
Rep Power: 12
sisi is on a distinguished road
I am having some trouble with gmshToFOAM. So far the OpenFOAM "cavity" tutorial with the blockMesh utility works fine. Now I would like to solve the "cavity" problem using an unstructured mesh created by Gmesh:

Code:
lc = 0.01;
tc = 0.001; // top corners
bc = 0.0025; // bottom corners
 
Point(1) = { 0, 0, 0, lc };
Point(2) = { 0.05, 0, 0, lc };
Point(3) = { 0.1, 0, 0, lc };
Point(4) = { 0.1, 0.05, 0, lc };
Point(5) = { 0.1, 0.1, 0, tc };
Point(6) = { 0.05, 0.1, 0, lc };
Point(7) = { 0, 0.1, 0, tc };
Point(8) = { 0, 0.05, 0, lc };
 
Line(1) = {1,2};  
Line(2) = {2,3};  
Line(3) = {3,4};  
Line(4) = {4,5};  
Line(5) = {5,6};  
Line(6) = {6,7};  
Line(7) = {7,8};  
Line(8) = {8,1};  
 
Line Loop (9) = {1:8};  
 
Plane Surface(1) = {9};  
 
Extrude {0, 0, 0.1} {
Surface{1};
Layers{1};
Recombine;
}
 
Physical Surface("front") = {46,50};
Physical Surface("back") = {34,30};
Physical Surface("bottom") = {22,26};
Physical Surface("left") = {1};
Physical Surface("top") = {42,38};
Physical Surface("right") = {51};
 
Physical Volume("internal") = {1};
 
Mesh 3;
Save "cavity.msh";
I am getting the following terminal outputs:

Code:
$ gmshToFoam cavity.msh

...

Create time

Starting to read mesh format at line 2
Read format version 2.2  ascii 0

Starting to read physical names at line 5
Physical names:7
    Surface 1    front
    Surface 2    back
    Surface 3    bottom
    Surface 4    left
    Surface 5    top
    Surface 6    right
    Volume 7    internal

Starting to read points at line 15
Vertices to be read:652
Vertices read:652

Starting to read cells at line 670
Cells to be read:1806

Mapping region 4 to Foam patch 0
Mapping region 6 to Foam patch 1
Mapping region 3 to Foam patch 2
Mapping region 2 to Foam patch 3
Mapping region 5 to Foam patch 4
Mapping region 1 to Foam patch 5
Mapping region 7 to Foam cellZone 0
Cells:
    total:578
    hex  :0
    prism:578
    pyr  :0
    tet  :0

CellZones:
Zone    Size
    0    578

Skipping tag  at line 2479
Patch 0 gets name left
Patch 1 gets name right
Patch 2 gets name bottom
Patch 3 gets name back
Patch 4 gets name top
Patch 5 gets name front

--> FOAM Warning :
    From function polyMesh::polyMesh(... construct from shapes...)
    in file meshes/polyMesh/polyMeshFromShapeMesh.C at line 627
    Found 1228 undefined faces in mesh; adding to default patch.
Finding faces of patch 0
Finding faces of patch 1
Finding faces of patch 2
Finding faces of patch 3
Finding faces of patch 4
Finding faces of patch 5

FaceZones:
Zone    Size

Writing zone 0 to cellZone internal and cellSet
End
and

Code:
$ icoFoam

Create time

Create mesh for time = 0

Reading transportProperties

Reading field p



--> FOAM FATAL IO ERROR:
Cannot find patchField entry for left

file: ~/.../run/tutorials/incompressible/icoFoam/cavity/0/p.boundaryField from line 25 to line 35.

    From function GeometricField<Type, PatchField, GeoMesh>::GeometricBoundaryField::readField(const DimensionedField<Type, GeoMesh>&, const dictionary&)
    in file ~/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude/GeometricBoundaryField.C at line 209.

FOAM exiting
Any ideas how to solve this problem?
charlliemarshalll likes this.
sisi is offline   Reply With Quote

 


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
Building OpenFOAM1.7.0 from source ata OpenFOAM Installation 46 March 6, 2022 13:21
[OpenFOAM.org] OF2.3.1 + OS13.2 - Trying to use the dummy Pstream library aylalisa OpenFOAM Installation 23 June 15, 2015 14:49
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 flakid OpenFOAM Installation 16 December 28, 2010 08:48
[snappyHexMesh] external flow with snappyHexMesh chelvistero OpenFOAM Meshing & Mesh Conversion 11 January 15, 2010 19:43
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08


All times are GMT -4. The time now is 13:38.