|
[Sponsors] |
July 1, 2016, 13:20 |
Getting neighboring patches
|
#1 |
New Member
Bodhi Biswas
Join Date: Jun 2016
Posts: 3
Rep Power: 10 |
Hello FOAMers,
I'm working on a surface nucleate boiling model for multiple bubbles. In order to determine which wall patch makes contact with which bubble, I'd like to use a sorting algorithm to group the patch faces based on the bubble it makes contact with. In order to accomplish that, I would like to get the index values of all adjacent wall patch faces for each wall patch face. This is where I am stuck. How can I go about finding the adjacent patch faces of a given patch face? Any help is greatly appreciated! -Bodhi |
|
July 4, 2016, 09:45 |
|
#2 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
Hi Bodhi,
at the moment I only know how you access to the neighbor cells of the face. From the fvPatchField you can get the fvPatch where you have access to the Cn() member function. This returns a vectorField with the cellCenters of the neighbors ... maybe this will help you at the beginning. I checked doxygen but could not find a function that will return the face neighbors (maybe I just did not see it).
__________________
Keep foaming, Tobias Holzmann |
|
July 4, 2016, 17:04 |
|
#3 |
Senior Member
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22 |
Perhaps this post might help: http://www.cfd-online.com/Forums/ope...tml#post566118
It determines the indices of all cells which have faces on a boundary patch. From the cell index you should be able to get its neighbors. Then you should be able to get the faces of the neighbors so you can check, if they lie on the face and are a neighbor of your starting face. |
|
July 5, 2016, 16:35 |
|
#4 |
New Member
Bodhi Biswas
Join Date: Jun 2016
Posts: 3
Rep Power: 10 |
Thank you, Tobias and Joachim.
Joachim, I will try the method you posted. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Foam::error::PrintStack | almir | OpenFOAM Running, Solving & CFD | 92 | May 21, 2024 08:56 |
[Commercial meshers] fluentMeshToFoam: "fluent patch type shadow not recognised" | preibie | OpenFOAM Meshing & Mesh Conversion | 28 | March 29, 2017 05:56 |
Possible bug with stitchMesh and cyclics in OpenFoam | Jack001 | OpenFOAM Pre-Processing | 0 | May 21, 2016 09:00 |
[blockMesh] Merging edge patches | Yosmcer | OpenFOAM Meshing & Mesh Conversion | 11 | November 16, 2014 15:51 |