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

[Gmsh] GmshToFoam undefined faces

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 8, 2006, 03:05
Default GmshToFoam undefined faces
  #1
New Member
 
Giuseppe Noviello
Join Date: Mar 2009
Location: Palese bari
Posts: 19
Rep Power: 17
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, 05:39
Default It means you do not have defin
  #2
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
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, 07:35
Default Hi Mattijs exactly which is t
  #3
New Member
 
Giuseppe Noviello
Join Date: Mar 2009
Location: Palese bari
Posts: 19
Rep Power: 17
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, 13:58
Default Sorry not prism but triangles.
  #4
New Member
 
Giuseppe Noviello
Join Date: Mar 2009
Location: Palese bari
Posts: 19
Rep Power: 17
derath is on a distinguished road
Sorry not prism but triangles....
derath is offline   Reply With Quote

Old   May 19, 2006, 14: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, 08:53
Default Hi, Giuseppe, I ran your si
  #6
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 18
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, 02: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: 17
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, 05:54
Default I don't know much about gmsh b
  #8
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
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


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
Foam::error::PrintStack almir OpenFOAM Running, Solving & CFD 92 May 21, 2024 08:56
GenerateVolumeMesh Error - Surface Wrapper Self Interacting (?) AndreP STAR-CCM+ 10 August 2, 2018 08:48
[snappyHexMesh] sHM layer process keeps getting killed MBttR OpenFOAM Meshing & Mesh Conversion 4 August 15, 2016 04:21
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08
G95 + CGNS Bruno Main CFD Forum 1 January 30, 2007 01:34


All times are GMT -4. The time now is 04:50.