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

[Gmsh] gmshToFoam warning messages

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 14, 2012, 02:00
Default gmshToFoam warning messages
  #1
Member
 
Join Date: Feb 2012
Posts: 57
Rep Power: 14
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, 04:55
Default
  #2
Member
 
Join Date: Feb 2012
Posts: 57
Rep Power: 14
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, 06:03
Default
  #3
Disabled
 
Join Date: Mar 2011
Posts: 174
Rep Power: 15
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, 07:13
Default
  #4
Member
 
Join Date: Feb 2012
Posts: 57
Rep Power: 14
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 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
foamToTecplot360 thomasduerr OpenFOAM Post-Processing 121 June 11, 2021 10:05
Caffa 3D code Waliur Rahman Main CFD Forum 0 May 29, 2018 00:53
[swak4Foam] installation problem with version 0.2.3 Claudio87 OpenFOAM Community Contributions 9 May 8, 2013 10:20
latest OpenFOAM-1.6.x from git failed to compile phsieh2005 OpenFOAM Bugs 25 February 9, 2010 04:37
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 10:23


All times are GMT -4. The time now is 20:18.