CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

How to find adjacent cells

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 3, 2006, 12:30
Default Hi, all! Is it possible to
  #1
Member
 
Efimenko Evgenii
Join Date: Mar 2009
Location: Nizhnij Novgorod, Russia
Posts: 52
Rep Power: 8
evgenii is on a distinguished road
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
evgenii is offline   Reply With Quote

Old   December 3, 2006, 12:32
Default Easy: mesh.cellCells() gives y
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,758
Rep Power: 21
hjasak will become famous soon enough
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
hjasak is offline   Reply With Quote

Old   December 3, 2006, 13:05
Default Thanks! Eugene
  #3
Member
 
Efimenko Evgenii
Join Date: Mar 2009
Location: Nizhnij Novgorod, Russia
Posts: 52
Rep Power: 8
evgenii is on a distinguished road
Thanks!

Eugene
evgenii is offline   Reply With Quote

Old   September 27, 2008, 02:03
Default In line with the previous post
  #4
Member
 
Heng Xiao
Join Date: Mar 2009
Location: Zurich, Switzerland
Posts: 58
Rep Power: 8
xiao is on a distinguished road
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
xiao is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Finding adjacent cells by UDFs Ertan Taskin FLUENT 0 May 5, 2005 12:02
find degenerated cells Pete CD-adapco 3 April 22, 2005 05:49
Pointers to wall adjacent cells in CFX 5 Fabian CFX 2 November 21, 2002 12:14
Adjacent cell number Jing CD-adapco 5 October 21, 2002 06:29
a way to find out wall-neighboring cells? Christian FLUENT 4 May 10, 2002 08:30


All times are GMT -4. The time now is 08:36.