|March 31, 2009, 07:56||
How to get the name of a patch
Join Date: Mar 2009
Posts: 20Rep Power: 9
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();
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.
|Thread||Thread Starter||Forum||Replies||Last Post|
|CheckMeshbs errors||ivanyao||OpenFOAM Running, Solving & CFD||2||March 11, 2009 03:34|
|Create boundary||fabrizio||Open Source Meshers: Gmsh, Netgen, CGNS, ...||1||October 26, 2008 15:12|
|Problem with rhoSimpleFoam||matteo_gautero||OpenFOAM Running, Solving & CFD||0||February 28, 2008 07:51|
|Import gmsh msh to Foam||adorean||Open Source Meshers: Gmsh, Netgen, CGNS, ...||24||April 27, 2005 08:19|
|Multicomponent fluid||Andrea||CFX||2||October 11, 2004 05:12|