|
[Sponsors] |
![]() |
![]() |
#1 |
Senior Member
Thomas Oliveira
Join Date: Apr 2015
Posts: 114
Rep Power: 12 ![]() |
Given the number of a face, how can I identify if it is on a patch of type "empty"?
|
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Thomas Oliveira
Join Date: Apr 2015
Posts: 114
Rep Power: 12 ![]() |
Use:
Code:
label facePatchId = -1; facePatchId = mesh.boundaryMesh().whichPatch(faceID); const polyPatch& pp = mesh.boundaryMesh()[facePatchId]; if (isA<emptyPolyPatch>(pp)){ // face faceID is on patch of type "empty". } |
|
![]() |
![]() |
![]() |
![]() |
#3 | |
Member
Jerry
Join Date: Oct 2013
Location: Salt Lake City, UT, USA
Posts: 52
Rep Power: 13 ![]() |
Hi Thomas,
I think you can also do it this way when you try to determine whether the type of patch is empty. Quote:
|
||
![]() |
![]() |
![]() |
Tags |
patch type |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] sHM quality of multi-region | aminem | OpenFOAM Meshing & Mesh Conversion | 0 | April 16, 2015 12:38 |
[swak4Foam] Air Conditioned room groovyBC | Sebaj | OpenFOAM Community Contributions | 7 | October 31, 2012 15:16 |
singularity? | mihaipruna | OpenFOAM Running, Solving & CFD | 5 | April 24, 2012 18:18 |
Problems in compiling paraview in Suse 10.3 platform | chiven | OpenFOAM Installation | 3 | December 1, 2009 08:21 |