|
[Sponsors] |
[Gmsh] False name of internal faceZone/faceSet by Gmsh |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 29, 2012, 09:01 |
False name of internal faceZone/faceSet by Gmsh
|
#1 |
Senior Member
Hisham Elsafti
Join Date: Apr 2011
Location: Braunschweig, Germany
Posts: 257
Blog Entries: 10
Rep Power: 17 |
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 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 |
|
November 29, 2012, 10:25 |
|
#2 |
Senior Member
Hisham Elsafti
Join Date: Apr 2011
Location: Braunschweig, Germany
Posts: 257
Blog Entries: 10
Rep Power: 17 |
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; 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; Regards, Hisham |
|
Tags |
faceset, facezone, gmsh, gmshtofoam, internal face |
|
|
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 |