CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

Getting neighboring patches

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By jherb

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 1, 2016, 13:20
Default Getting neighboring patches
  #1
New Member
 
Bodhi Biswas
Join Date: Jun 2016
Posts: 3
Rep Power: 9
Bodhi B is on a distinguished road
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
Bodhi B is offline   Reply With Quote

Old   July 4, 2016, 09:45
Default
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
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
Tobi is offline   Reply With Quote

Old   July 4, 2016, 17:04
Default
  #3
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21
jherb is on a distinguished road
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.
Tobi likes this.
jherb is offline   Reply With Quote

Old   July 5, 2016, 16:35
Default
  #4
New Member
 
Bodhi Biswas
Join Date: Jun 2016
Posts: 3
Rep Power: 9
Bodhi B is on a distinguished road
Thank you, Tobias and Joachim.
Joachim, I will try the method you posted.
Bodhi B is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Foam::error::PrintStack almir OpenFOAM Running, Solving & CFD 91 December 21, 2022 05:50
[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


All times are GMT -4. The time now is 22:39.