|
[Sponsors] |
How to identify boundary cell and internal cell |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 25, 2008, 21:30 |
Hi,
I have a cubic mesh whi
|
#1 |
Member
roy fokker
Join Date: Mar 2009
Posts: 44
Rep Power: 17 |
Hi,
I have a cubic mesh which needs a special weigh treatment of boundary cell and internal cell. My intention is like this: forAll(cellWeigh, mI) { if (cellIsBoundary(mI)) cellWeigh[mI]=0; else cellWeigh[mI]=1; } Is there any way to identify whether the cell is a boundary cell or internal cell? Is it a simple function or should I do some field calculation? Thanks a lot! |
|
August 25, 2008, 22:59 |
I'm assuming that by "boundary
|
#2 |
Senior Member
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 403
Rep Power: 25 |
I'm assuming that by "boundary cells", you want to identify cells adjacent to boundary faces. If so, then it's not too difficult to obtain - loop through boundaryMesh (boundary patches), and obtain the owner cell from the allOwner list. All other cells are internal.
|
|
November 6, 2016, 10:11 |
|
#3 | |
New Member
DU Shen
Join Date: Nov 2016
Posts: 14
Rep Power: 10 |
Quote:
Since this post has passed so long time, I am not sure are you still available to answer my question. I want to identify cells belonging to a solid zone adjacent to boundary faces. Could you please show me how can I do this? Best wishes, Shen |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF: Given coordinates, How to identify the cell? | Zhang | Fluent UDF and Scheme Programming | 26 | August 15, 2022 06:54 |
[Technical] How to identify cell neighbours | booz | OpenFOAM Meshing & Mesh Conversion | 59 | November 20, 2017 01:40 |
cell velocity U and its cell face area | Chinayu | Siemens | 0 | May 6, 2006 23:44 |
Cell-vertex and cell-centered finite volume method | Praveen | Main CFD Forum | 4 | September 9, 2003 00:58 |
identify Cell face | Sunlight007 | Siemens | 3 | August 30, 2003 06:30 |