|
[Sponsors] |
December 3, 2006, 12:30 |
Hi, all!
Is it possible to
|
#1 |
Member
Efimenko Evgenii
Join Date: Mar 2009
Location: Nizhnij Novgorod, Russia
Posts: 52
Rep Power: 17 |
Hi, all!
Is it possible to to find all cells adjacent to given one (by label) or just check if cell is adjacent to given one? It seems for me that it should be possible, but I failed to find it in documentation. Hopefuly someone can shed me some light on this problem! Best regards, Efimenko Evgeny |
|
December 3, 2006, 12:32 |
Easy: mesh.cellCells() gives y
|
#2 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33 |
Easy: mesh.cellCells()[yourCellID] gives you the list of cells sharing a face with your cell. For more complex addressing (ALL of it is there), have a look at the PrimitiveMesh class.
Enjoy, Hrv
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
|
December 3, 2006, 13:05 |
Thanks!
Eugene
|
#3 |
Member
Efimenko Evgenii
Join Date: Mar 2009
Location: Nizhnij Novgorod, Russia
Posts: 52
Rep Power: 17 |
Thanks!
Eugene |
|
September 27, 2008, 03:03 |
In line with the previous post
|
#4 |
Member
Heng Xiao
Join Date: Mar 2009
Location: Zurich, Switzerland
Posts: 58
Rep Power: 17 |
In line with the previous post, Is it possible to find the cells sharing a point (vertex) with this cell? I think this can be done by using the info from pointCells() and cellPoints() in the same way as in "calcCellCells" (looping over the list and discard nonunique ones), but I want to make sure this information has not already been calculated by Foam.
Could any body tell me whether this information exist somewhere? Thanks very much! Heng |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Finding adjacent cells by UDFs | Ertan Taskin | FLUENT | 0 | May 5, 2005 13:02 |
find degenerated cells | Pete | Siemens | 3 | April 22, 2005 06:49 |
Pointers to wall adjacent cells in CFX 5 | Fabian | CFX | 2 | November 21, 2002 12:14 |
Adjacent cell number | Jing | Siemens | 5 | October 21, 2002 07:29 |
a way to find out wall-neighboring cells? | Christian | FLUENT | 4 | May 10, 2002 09:30 |