|
[Sponsors] |
September 4, 2003, 06:09 |
boundary cells
|
#1 |
Guest
Posts: n/a
|
Hi to all,
is it possible to identify (by a UDF) whether or not a cell is a boundary cell, and which one of its faces belongs to the boundary? Thank you! Ale |
|
September 4, 2003, 07:24 |
Re: boundary cells
|
#2 |
Guest
Posts: n/a
|
You can directly check if a face belongs to a boundary looping over all faces and using the
THREAD_TYPE (t) where t is the faces thread. There are many values which THREAD_TYPE (t) may assume, according to which part of your domain the face belongs to. I report some values. Value of THREAD_TYPE (t) Part of the domain THREAD_F_INTERIOR Face is internal to the domain THREAD_F_VINLET Face belongs to a velocity inlet THREAD_F_POUTLET Face belongs to a pressure outlet THREAD_F_OUTFLOW Face belongs to an outflow You have to use a multiple if like: if (THREAD_TYPE(t) == THREAD_F_INTERIOR) /* Interior { ... } else if(THREAD_TYPE(t) == THREAD_F_POUTLET) { } else if(THREAD_TYPE(t) == THREAD_F_VINLET) { } Hope this helps Hi ap |
|
September 4, 2003, 11:31 |
Re: boundary cells
|
#3 |
Guest
Posts: n/a
|
Thanks a lot!
I found also the functions: BOUNDARY_FACE_THREAD_P(tf) BOUNDARY_FACE_GEOMETRY(f,tf,A,ds,es,A_by_es,dr0) that can be useful to identify boundary cells and to get some information about them. Regards, Ale |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Define source on boundary cells in UDF | mingersai | Fluent UDF and Scheme Programming | 20 | October 23, 2017 05:41 |
Domain Imbalance | HMR | CFX | 5 | October 10, 2016 06:57 |
Water subcooled boiling | Attesz | CFX | 7 | January 5, 2013 04:32 |
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! | sc298 | OpenFOAM Meshing & Mesh Conversion | 2 | March 27, 2011 22:11 |
Convective Heat Transfer - Heat Exchanger | Mark | CFX | 6 | November 15, 2004 16:55 |