CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Access to name of a boundary (http://www.cfd-online.com/Forums/openfoam-solving/60301-access-name-boundary.html)

stephan March 4, 2006 07:17

hi all, i am looking for an
 
hi all,

i am looking for an opportunity to access the name of a boundary (user-given in blockMeshDict) in OpenFoam. actually i have the patch but dont know how to get the name of the boundary, which the patch belongs to.
thanks for help
stephan

hartinger March 4, 2006 13:49

you've got aPatch > const p
 
you've got aPatch

> const polyPatch& aPatch = ....;

this will print the name as specified in blockMeshDict

> Info<< aPatch.name() << endl;

markus


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