|
[Sponsors] |
November 7, 2003, 08:59 |
macro to get Boundary condition
|
#1 |
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. |
|
November 7, 2003, 13:26 |
Re: macro to get Boundary condition
|
#2 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Domain Imbalance | HMR | CFX | 5 | October 10, 2016 06:57 |
Can anyone give me some hint on how to make traction free boundary condition? | poplar | OpenFOAM | 3 | January 14, 2015 03:37 |
Boundary Conditions | Thomas P. Abraham | Main CFD Forum | 20 | July 7, 2013 06:05 |
Setting outlet Pressure boundary condition using CAFFA code | Mukund Pondkule | Main CFD Forum | 0 | March 16, 2011 04:23 |
How to set boundary condition in Fluent for the fo | Peiyong | FLUENT | 1 | November 10, 2006 12:44 |