|
[Sponsors] |
Finding neighbouring cells when looping over faces in faceSet |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 13, 2007, 06:10 |
Hi,
I have a faceSet defini
|
#1 |
Member
Ola Widlund
Join Date: Mar 2009
Location: Sweden
Posts: 87
Rep Power: 17 |
Hi,
I have a faceSet defining an internal interface between two media. I need to set source terms in the neighbouring cells on either side of the interface. Looping over the faceSet, how do I find cell labels of the "neighbor" and "owner" cells on either side of a face with a given face label? Thanks in advance, Ola |
|
December 13, 2007, 07:42 |
Easy:
mesh.owner() and mesh
|
#2 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33 |
Easy:
mesh.owner()[faceIndex] and mesh.neighbour()[faceIndex] Enjoy, Hrv
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
|
December 13, 2007, 09:03 |
Thanks, Hrv!
I assumed it w
|
#3 |
Member
Ola Widlund
Join Date: Mar 2009
Location: Sweden
Posts: 87
Rep Power: 17 |
Thanks, Hrv!
I assumed it would be easy, but it beats my expectations, as usual. Interesting stuff brewing in new application... /Ola |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Neighbouring Cells | Carlos V. | FLUENT | 4 | February 1, 2007 09:45 |
The coefficient value for neighbouring cells | olivier | OpenFOAM Running, Solving & CFD | 2 | December 18, 2005 19:52 |
neighbouring cells | kaokanya | Siemens | 1 | October 13, 2003 06:21 |
Looping over faces in a cell | Senthil | FLUENT | 3 | April 11, 2002 12:41 |
Accessing neighbouring cells in UDF | Hiranya Nath | FLUENT | 5 | March 23, 2002 00:29 |