|
[Sponsors] |
December 13, 2018, 11:12 |
list of faces of a patch
|
#1 |
New Member
omar osama
Join Date: Feb 2017
Posts: 3
Rep Power: 9 |
Dear Foamers!,
I have some search to in oder to get a list of the boundary faces in openfoam but i still do not know how can i do that. In a nutshell, i managed to create isoContour of a field and I want to calculated the distance between the nearest point of the contour to each face centre on the boundaries. so i want to loop each face on the boundaries, access its centre and then find the minimum distance to the contour. my problem is only the first step how can i get the face ID ? any suggestion ? |
|
December 14, 2018, 03:20 |
|
#2 | |
New Member
Weiliang Zhu
Join Date: Apr 2016
Posts: 11
Rep Power: 10 |
Quote:
polyPatch patch = mesh.boundaryMesh()[“inlet”]; forAll( patch, pi) { Info<<patch.start()+pi<<endl; } |
||
December 14, 2018, 03:28 |
|
#3 |
New Member
Weiliang Zhu
Join Date: Apr 2016
Posts: 11
Rep Power: 10 |
what is more,
polyPatch::faceCentres() function can return the face center of a patch directly. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Decomposing meshes | Tobi | OpenFOAM Pre-Processing | 22 | February 24, 2023 10:23 |
[snappyHexMesh] Error snappyhexmesh - Multiple outside loops | avinashjagdale | OpenFOAM Meshing & Mesh Conversion | 53 | March 8, 2019 10:42 |
Problem with cyclic boundaries in Openfoam 1.5 | fs82 | OpenFOAM | 36 | January 7, 2015 01:31 |
[GAMBIT] periodic faces not matching | Aadhavan | ANSYS Meshing & Geometry | 6 | August 31, 2013 12:25 |
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! | sc298 | OpenFOAM Meshing & Mesh Conversion | 2 | March 27, 2011 22:11 |