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

macro to get Boundary condition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 7, 2003, 07:59
Default macro to get Boundary condition
  #1
Seb
Guest
 
Posts: n/a
Hi All,

does somebody know any UDF macro to get the type of boundary condition assigned to a boundary face?

Thanks.
  Reply With Quote

Old   November 7, 2003, 12:26
Default Re: macro to get Boundary condition
  #2
ap
Guest
 
Posts: n/a
If you just want to understand if a face belongs to a face, you can use an if statement like the following:


if (BOUNDARY_FACE_THREAD_P(thread))
{
//Code
}


If you need to know what kind of boundary condition you have, you can do the following:


if (THREAD_TYPE(t) == THREAD_F_INTERIOR) //Interior
{
//Code
}
else if(THREAD_TYPE(t) == THREAD_F_POUTLET) //Pressure outlet
{
//Code
}
else if(THREAD_TYPE(t) == THREAD_F_VINLET) // Velocity inlet
{
//Code
}


changing the THREAD_F_ and adding other if, in order to adapt the if statment to your needs.

Outflow is THREAD_F_OUTFLOW
Pressure inlet is THREAD_F_PINLET

Hi

ap
  Reply With Quote

Reply


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
Domain Imbalance HMR CFX 5 October 10, 2016 05:57
Can anyone give me some hint on how to make traction free boundary condition? poplar OpenFOAM 3 January 14, 2015 02:37
Boundary Conditions Thomas P. Abraham Main CFD Forum 20 July 7, 2013 05:05
Setting outlet Pressure boundary condition using CAFFA code Mukund Pondkule Main CFD Forum 0 March 16, 2011 03:23
How to set boundary condition in Fluent for the fo Peiyong FLUENT 1 November 10, 2006 11:44


All times are GMT -4. The time now is 10:40.