|
[Sponsors] |
October 1, 2014, 14:38 |
Locating surrounding cells
|
#1 |
New Member
Join Date: Aug 2014
Posts: 2
Rep Power: 0 |
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! |
|
Tags |
average, surrounding cells |
|
|
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 |