CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Locating surrounding cells

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 1, 2014, 14:38
Default Locating surrounding cells
  #1
New Member
 
Join Date: Aug 2014
Posts: 2
Rep Power: 0
Tomas C is on a distinguished road
Hello All,

I want to find a value (C_UDMI) of a cell which is the average of all its surrounding cells. If the cell in question is located at a wall, it will only have 3 surrounding cells (assuming 2D) so therefore the value of the cell in question will be the sum of the values of the surrounding cells divided by 3. If it is not touching a wall it will have 4 surrounding cells, so the value of the cell will be the sum of the surrounding cells divided by 4. How do I find a macro to do this?

Thanks!
Tomas C is offline   Reply With Quote

Reply

Tags
average, surrounding cells


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
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 10:38
[Netgen] Import netgen mesh to OpenFOAM hsieh OpenFOAM Meshing & Mesh Conversion 32 September 13, 2011 06:50
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 22:11
[snappyHexMesh] snappyHexMesh aborting Tobi OpenFOAM Meshing & Mesh Conversion 0 November 10, 2010 04:23
physical boundary error!! kris Siemens 2 August 3, 2005 01:32


All times are GMT -4. The time now is 13:52.