CFD Online URL
[Sponsors]
Home > Forums > Open Source Meshers: Gmsh, Netgen, CGNS, ...

gmshToFoam warning messages

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 14, 2012, 04:00
Default gmshToFoam warning messages
  #1
Member
 
Join Date: Feb 2012
Posts: 57
Rep Power: 4
matt.mech.eng is on a distinguished road
Hi guys,

I have just generated my own mesh to use in the bubbleFoam, bubbleColumn tutorial in OF2.0.1. I wanted to try and play around with the geometry in the tute so that I can get some preliminary 2d results from which to build a model..

I have generated the mesh in gmsh and copied it into the case directory. I then ran gmshToFoam from the case directory to convert the mesh to OpenFOAM and I get the following 2 warning messages:

--> FOAM Warning :
From function polyMesh:: polyMesh(... construct from shapes...)
in file meshes/polyMesh/polyMeshFromShapeMesh.C at line 614
Found 3041 undefined faces in mesh; adding to default patch.
Finding faces of patch 0

Can someone please shed some light on the possible causes of such an error?


Kind Regards

Matt
matt.mech.eng is offline   Reply With Quote

Old   March 14, 2012, 06:55
Default
  #2
Member
 
Join Date: Feb 2012
Posts: 57
Rep Power: 4
matt.mech.eng is on a distinguished road
I had a look at the statistics for the mesh generated in gmsh, the .msh file and the foam terminal output..

I can see that the .msh file has 4456 elements listed under the $Elements tag yet in stats there are only 1448 prisms...

What other elements does the $Elements tag include?? It is clear that this is where the error is coming from ie the 3008 (4456-1448=3008) undefined faces!!!!

Can someone shed some light on this??

Thanks

Matt
Attached Images
File Type: jpg mesh_stats&terminal_output.jpg (58.7 KB, 14 views)
matt.mech.eng is offline   Reply With Quote

Old   March 14, 2012, 08:03
Default
  #3
Senior Member
 
Join Date: Mar 2011
Posts: 174
Rep Power: 5
anon_a is on a distinguished road
EDIT: I just saw your screenshot with the extra information and removed my previous answer to avoid misleading you, sorry :-)

Out of curiosity, have you visualized these defaultFaces in paraFoam? what do they look like? do they really belong to your boundary?
Also, I think that the 2D elements (i.e. faces of each 3D element) such as the triangles and quads are also counted in 4456, right?
anon_a is offline   Reply With Quote

Old   March 14, 2012, 09:13
Default
  #4
Member
 
Join Date: Feb 2012
Posts: 57
Rep Power: 4
matt.mech.eng is on a distinguished road
Yes I think the 4456 elements listed in the .msh file under the $Elements tag includes 2d elements ie triangles and quadrangles (2896 and 112 respectively) ie it is these faces that are not being defined... It seems that the gmshToFoam utility is reading the element faces which are listed in the .msh file as well as the 3d elements.

I have visualized the resultant foam mesh in parafoam and it seems ok to me..

I run the solver on the mesh and everything seems fine it's just that the error blows up and the solver crashes prior to finishing for all time steps set in controlDict.. I don't think so but maybe the mesh is having something to do with this?
matt.mech.eng 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
latest OpenFOAM-1.6.x from git failed to compile phsieh2005 OpenFOAM Bugs 25 February 9, 2010 05:37
Version 15 on Mac OS X gschaider OpenFOAM Installation 120 December 2, 2009 11:23
Compilation errors in ThirdPartymallochoard feng_w OpenFOAM Installation 1 January 25, 2009 07:59
OpenFOAM14 for Mac OSX Darwin 104 gschaider OpenFOAM Installation 118 July 20, 2008 06:19
Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Native Meshers: blockMesh 10 April 2, 2007 15:00


All times are GMT -4. The time now is 16:55.