CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Open Source Meshers: Gmsh, Netgen, CGNS, ...

GmshToFoam undefined faces

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 8, 2006, 02:05
Default Hi to all my name is Giusepp
  #1
New Member
 
Giuseppe Noviello
Join Date: Mar 2009
Location: Palese bari
Posts: 19
Rep Power: 8
derath is on a distinguished road
Hi to all
my name is Giuseppe and I'm new user of OF and gmsh.
I've a problem with my simple case a cube, so when I use gmshToFoam utility it report this warning:

Exec : gmshToFoam
/home/giuseppe/OpenFOAM/giuseppe-1.3/run/tutorials/simpleFoam prova cubef.msh
Date : May 08 2006
Time : 08:00:30
Host : linux
PID : 7819
Root : /home/giuseppe/OpenFOAM/giuseppe-1.3/run/tutorials/simpleFoam
Case : prova
Nprocs : 1
Create time

Read nVerts:865

Read nElems:4928

Mapping region 6 to Foam patch 0
Mapping region 15 to Foam patch 1
Mapping region 19 to Foam patch 2
Mapping region 23 to Foam patch 3
Mapping region 27 to Foam patch 4
Mapping region 28 to Foam patch 5
Mapping region 1 to Foam cellZone 0
Cells:
total:4016
hex :0
prism:0
pyr :0
tet :4016

Patches:
Patch Size
0 228
1 94
2 94
3 94
4 86
5 228

CellZones:
Zone Size
0 4016

--> FOAM Warning :
From function polyMesh::polyMesh(... construct from shapes...)
in file meshes/polyMesh/polyMeshFromShapeMesh.C at line 573
Found 824 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 cellZone_0 and cellSet
End

where is my error?
someone can help me?
Thanks to all.
Giuseppe
derath is offline   Reply With Quote

Old   May 15, 2006, 04:39
Default It means you do not have defin
  #2
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
It means you do not have defined gmsh surfaces on all boundary faces. You obviously have some:

Patch Size
0 228
1 94
2 94
3 94
4 86
5 228

but there are still 824 boundary faces that are not covered by gmsh surfaces.
mattijs is offline   Reply With Quote

Old   May 19, 2006, 06:35
Default Hi Mattijs exactly which is t
  #3
New Member
 
Giuseppe Noviello
Join Date: Mar 2009
Location: Palese bari
Posts: 19
Rep Power: 8
derath is on a distinguished road
Hi Mattijs
exactly which is the right procedure?
This is my simple geo file:
Point(1) = {0,0,0,0.1};
Point(2) = {0.5,0,0,0.1};
Point(3) = {0.0,0.5,0,0.1};
Point(4) = {0.5,0.5,0,0.1};
Line(1) = {1,2};
Line(2) = {2,4};
Line(3) = {4,3};
Line(4) = {3,1};
Line Loop(5) = {2,3,4,1};
Plane Surface(6) = {5};
Extrude {0,0,0.5} {
Surface{6};
}
Physical Surface(101) = {15,6,23,28,19,27};
Physical Volume(100)= {1};
I've seen that 824 faces is the number of prism which gmsh produce, beside tetrahedra is right?
Thanks in advantage
Giuseppe
derath is offline   Reply With Quote

Old   May 19, 2006, 12:58
Default Sorry not prism but triangles.
  #4
New Member
 
Giuseppe Noviello
Join Date: Mar 2009
Location: Palese bari
Posts: 19
Rep Power: 8
derath is on a distinguished road
Sorry not prism but triangles....
derath is offline   Reply With Quote

Old   May 19, 2006, 13:38
Default Hi, maybe its a bug and can be
  #5
newbee
Guest
 
Posts: n/a
Hi, maybe its a bug and can be solved by running the newest gmsh version (v1.65) at: http://geuz.org/gmsh/src/
If you are to use the mesh you might want to use the extra recombine posibillity in the extruded direction. see the totorial 3 for this.
  Reply With Quote

Old   May 20, 2006, 07:53
Default Hi, Giuseppe, I ran your si
  #6
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 9
hsieh is on a distinguished road
Hi, Giuseppe,

I ran your simple geo file. I got 336 triangles and the rests are Tets. I used gmsh 1.65. Your geo file looked fine to me.

Recombine Surface will give you hex and/or prism elements, which are better than tet elements.

Pei
hsieh is offline   Reply With Quote

Old   May 21, 2006, 01:47
Default Hi,Pei I've put Recombine Sur
  #7
New Member
 
Giuseppe Noviello
Join Date: Mar 2009
Location: Palese bari
Posts: 19
Rep Power: 8
derath is on a distinguished road
Hi,Pei
I've put Recombine Surface im my geo file but i've 96 Triangles 120 Quads 0 Tet 0 Hex and 0 prism
..............
Plane Surface(6) = {5};
Extrude {0,0,0.5} {
Surface{6};
}

Recombine Surface{15,6,23,28,19,27};
..............................

moreover when I use gmshToFoam for import mesh I've FOAM FATAL ERROR : faces deallocated
Where is my mistake?
Thanks Giuseppe
derath is offline   Reply With Quote

Old   May 22, 2006, 04:54
Default I don't know much about gmsh b
  #8
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
I don't know much about gmsh but an error like

FOAM FATAL ERROR : faces deallocated

probably means that there are no volume elements (tets, hexes etc.) in the file you are trying to read. Just look at the file with an editor. 2nd number is the element type acc. to the gmsh documentation.
mattijs 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
GmshToFoam FOAM FATAL ERROR faces deallocated Tobias Prousa (Prousa) Open Source Meshers: Gmsh, Netgen, CGNS, ... 14 January 31, 2012 11:45
GmshToFoam keyword patch0 is undefined steve999 Open Source Meshers: Gmsh, Netgen, CGNS, ... 5 September 14, 2008 14:45
GmshToFoam example guillaume OpenFOAM Mesh Utilities 3 February 25, 2008 21:06
Undefined internal faces becoming default patches hjasak OpenFOAM Pre-Processing 1 June 16, 2006 10:25
Undefined faces in mesh derath OpenFOAM Mesh Utilities 1 May 13, 2006 06:57


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