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

Check if face is Boundary

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 31, 2018, 07:32
Default Check if face is Boundary
  #1
Member
 
Horst van Gras
Join Date: Oct 2018
Posts: 45
Rep Power: 8
HorstvanGrass is on a distinguished road
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;
}
HorstvanGrass is offline   Reply With Quote

Old   October 31, 2018, 17:02
Default
  #2
Senior Member
 
Join Date: Sep 2017
Posts: 246
Rep Power: 12
obscureed is on a distinguished road
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
obscureed is offline   Reply With Quote

Old   November 2, 2018, 10:26
Default
  #3
Member
 
Horst van Gras
Join Date: Oct 2018
Posts: 45
Rep Power: 8
HorstvanGrass is on a distinguished road
Thx, it worked!
HorstvanGrass is offline   Reply With Quote

Reply

Tags
boundaries, cell, face, looping over 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
Radiation in semi-transparent media with surface-to-surface model? mpeppels CFX 11 August 22, 2019 08:30
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 07:28
[blockMesh] non-orthogonal faces and incorrect orientation? nennbs OpenFOAM Meshing & Mesh Conversion 7 April 17, 2013 06:42
[Netgen] Import netgen mesh to OpenFOAM hsieh OpenFOAM Meshing & Mesh Conversion 32 September 13, 2011 06:50
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 08:21


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