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

[Gmsh] False name of internal faceZone/faceSet by Gmsh

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Hisham

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 29, 2012, 09:01
Default False name of internal faceZone/faceSet by Gmsh
  #1
Senior Member
 
Hisham's Avatar
 
Hisham Elsafti
Join Date: Apr 2011
Location: Braunschweig, Germany
Posts: 257
Blog Entries: 10
Rep Power: 17
Hisham is on a distinguished road
Dear Foamers,

I try to make an internal faceZone/faceSet in a Gmsh geometry. I defined a physical surface of the internal surfaces in question. I run
Code:
gmsh -3 file.geo; gmshToFoam file.msh
. By viewing the output in paraFoam, the faceZone/faceSet exists but has a different name than the physical surface. It has the name of a cellZone that is not even adjacent to the surfaces.

Question time:
1. Did anyone face the same problem or has anyone produced internal faceZones without this problem?
2. Is there a workaround?

Best regards,
Hisham
Hisham is offline   Reply With Quote

Old   November 29, 2012, 10:25
Default
  #2
Senior Member
 
Hisham's Avatar
 
Hisham Elsafti
Join Date: Apr 2011
Location: Braunschweig, Germany
Posts: 257
Blog Entries: 10
Rep Power: 17
Hisham is on a distinguished road
It seems that there is a bug in gmshToFoam. Changing:
Code:
01058         forAll(zoneFaces, zoneI)
01059         {
01060             if (zoneFaces[zoneI].size())
01061             {
01062                 label physReg = zoneToPhys[zoneI];
01063 
01064                 Map<word>::const_iterator iter = physicalNames.find(physReg);
01065 
01066                 word zoneName = "faceZone_" + name(zoneI);
01067                 if (iter != physicalNames.end())
01068                 {
01069                     zoneName = iter();
01070                 }
01071 
01072                 Info<< "Writing zone " << zoneI << " to faceZone "
01073                     << zoneName << " and faceSet"
01074                     << endl;
to:

Code:
01058         forAll(zoneFaces, zoneI)
01059         {
01060             if (zoneFaces[zoneI].size())
01061             {
01062                 label physReg = patchToPhys[zoneI];
01063 
01064                 Map<word>::const_iterator iter = physicalNames.find(physReg);
01065 
01066                 word zoneName = "faceZone_" + name(zoneI);
01067                 if (iter != physicalNames.end())
01068                 {
01069                     zoneName = iter();
01070                 }
01071 
01072                 Info<< "Writing zone " << zoneI << " to faceZone "
01073                     << zoneName << " and faceSet"
01074                     << endl;
solves the problem for me!

Regards,
Hisham
Ramzy1990 likes this.
Hisham is offline   Reply With Quote

Reply

Tags
faceset, facezone, gmsh, gmshtofoam, internal face


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
using chemkin JMDag2004 OpenFOAM Pre-Processing 2 March 8, 2016 23:38
[Gmsh] Internal faces from gmsh how to create patches in OpenFoam podallaire OpenFOAM Meshing & Mesh Conversion 27 April 25, 2012 22:24
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 04:52
[Gmsh] Import problem ARC OpenFOAM Meshing & Mesh Conversion 0 February 27, 2010 11:56
CFX4.3 -build analysis form Chie Min CFX 5 July 13, 2001 00:19


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