|
[Sponsors] | |||||
How to access the number of faces on a boundary |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
Member
Alain Martin
Join Date: Mar 2009
Posts: 40
Rep Power: 18 ![]() |
Hi all,
What is the function to access the total number of faces ( triangles) on each boundary? I have this function: Info << "number " << mesh.boundaryMesh()[0] << endl; which give: patch patch0 5506 945258 for patch no 0. I would like to extract the number 5506 from this lot to do some calculation. Thanks, -Alain |
|
|
|
|
|
|
|
|
#2 |
|
Member
Alain Martin
Join Date: Mar 2009
Posts: 40
Rep Power: 18 ![]() |
I found it:
scalar number = mesh.boundaryMesh()[PatchID].size() ; where PatchID is the patch number. -Alain |
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [blockMesh] Inconsistent number of faces | derath | OpenFOAM Meshing & Mesh Conversion | 15 | February 1, 2023 03:51 |
| How to access to faces of a patch | jaswi | OpenFOAM Running, Solving & CFD | 17 | October 7, 2020 11:30 |
| DecomposePar unequal number of shared faces | maka | OpenFOAM Pre-Processing | 6 | August 12, 2010 10:01 |
| Number of Faces on a thread inside a UDF | Nathan | FLUENT | 1 | April 26, 2006 12:15 |
| Access to name of a boundary | stephan | OpenFOAM Running, Solving & CFD | 1 | March 4, 2006 13:49 |