|
[Sponsors] |
March 31, 2009, 08:56 |
How to get the name of a patch
|
#1 |
New Member
Join Date: Mar 2009
Posts: 20
Rep Power: 17 |
Hi all!
I need to get the name of the patches that are set in the PolyMesh/boundary file. I have to connect the following pieces of code (wallViscosityI.H)that is the reason why I need a vector with the names of the patches. Code 1: const fvPatchList& patches = mesh_.boundary(); forAll(patches,patchy) { const fvPatch& curPatch = patches[patchi]; . . . Code 2: label Patchid=mesh_.boundaryMesh().findPatchID("_______" ). The vector I need to get should be included inside the brackets. All advices are wellcome. Thank you in advance. Xabi |
|
March 31, 2009, 09:09 |
I got it
|
#2 |
New Member
Join Date: Mar 2009
Posts: 20
Rep Power: 17 |
Hi,
I got it: Code 2: label Patchid=mesh_.boundaryMesh().findPatchID(curPatch. name()). Thank you anyway. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CheckMeshbs errors | ivanyao | OpenFOAM Running, Solving & CFD | 2 | March 11, 2009 03:34 |
[Netgen] Create boundary | fabrizio | OpenFOAM Meshing & Mesh Conversion | 1 | October 26, 2008 15:12 |
Problem with rhoSimpleFoam | matteo_gautero | OpenFOAM Running, Solving & CFD | 0 | February 28, 2008 07:51 |
[Gmsh] Import gmsh msh to Foam | adorean | OpenFOAM Meshing & Mesh Conversion | 24 | April 27, 2005 09:19 |
Multicomponent fluid | Andrea | CFX | 2 | October 11, 2004 06:12 |