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

How to find cells within a distance

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 8, 2009, 12:49
Default How to find cells within a distance
  #1
Senior Member
 
Ivan Flaminio Cozza
Join Date: Mar 2009
Location: Torino, Piemonte, Italia
Posts: 210
Rep Power: 18
ivan_cozza is on a distinguished road
Send a message via MSN to ivan_cozza
Hi Foamers,
I need to find, given a cell in the mesh, the labels of the cells within a given distance. Now I do it sweeping for all cells all the other cells and saving the ones that are nearer than a certain length in a labelListList, but this procedure is clearly heavy. Is there anything in OF that could help me to do it in a faster way?
I was managing to do it with mesh.cellCells(), but I can't find a way...
Thanks!!!
Ivan
ivan_cozza 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
Level set & distance functions Renato. Main CFD Forum 7 February 7, 2006 06:46
Ignore cells on partition boundary Karl FLUENT 7 May 11, 2002 22:12
Looping over cells Karl FLUENT 4 March 26, 2002 21:18
UDF: neighbour cells, upwind cells Dmitriy Makarov FLUENT 0 February 18, 2001 13:53
Dead cells created on edges when a grid file is generated in GAMBIT and imported into FLUENT4 Isaac Manohar Ch. FLUENT 1 June 2, 2000 04:58


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