|
[Sponsors] |
![]() |
![]() |
#1 |
Member
Horst van Gras
Join Date: Oct 2018
Posts: 45
Rep Power: 7 ![]() |
Hi,
I'm looping over cells and than of each cell I'm looping over the faces. Each time I got a face I want to check if it's a boundary zone face. Is there a macro, which is resolving this? d = Get_Domain(1); /* mixture domain if multiphase */ thread_loop_c(t,d) { begin_c_loop(c,t) check_if_boundary(f,t); c_face_loop(c, t, n) { f = C_FACE(c,t,n); faces[n]=f; } |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Join Date: Sep 2017
Posts: 246
Rep Power: 11 ![]() |
Hi Yann,
You won't get very far with "f=C_FACE(c,t,n);" without "ft=C_FACE_THREAD(c,t,n);" as well. When you have the thread ft (which is of type Thread*), you can test that using BOUNDARY_FACE_THREAD_P(ft) -- check it out in the UDF manual. You can get other information about the thread type -- see for example In UDF, how to judge the type of boundary? . Remember that each face of a cell could be in a different thread. Good luck! Ed |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Member
Horst van Gras
Join Date: Oct 2018
Posts: 45
Rep Power: 7 ![]() |
Thx, it worked!
|
|
![]() |
![]() |
![]() |
Tags |
boundaries, cell, face, looping over cells |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Radiation in semi-transparent media with surface-to-surface model? | mpeppels | CFX | 11 | August 22, 2019 07:30 |
Question about heat transfer coefficient setting for CFX | Anna Tian | CFX | 1 | June 16, 2013 06:28 |
[blockMesh] non-orthogonal faces and incorrect orientation? | nennbs | OpenFOAM Meshing & Mesh Conversion | 7 | April 17, 2013 05:42 |
[Netgen] Import netgen mesh to OpenFOAM | hsieh | OpenFOAM Meshing & Mesh Conversion | 32 | September 13, 2011 05:50 |
Problems in compiling paraview in Suse 10.3 platform | chiven | OpenFOAM Installation | 3 | December 1, 2009 07:21 |