|
[Sponsors] |
June 27, 2001, 13:14 |
UDF : boundary condition ID
|
#1 |
Guest
Posts: n/a
|
Every boundary condition has got an ID number.
example : boundary name : duct_inlet ID : 4 How do you get the name of the boundary condition given its ID ? In other words, what is the function that you can use in a UDF in order to get the name when you know the ID ? |
|
June 27, 2001, 15:31 |
Re: UDF : boundary condition ID
|
#2 |
Guest
Posts: n/a
|
1. Read in your mesh into FLUENT 5.
2. In the console (text interface) go to grid/modify-zones/list-zones |
|
June 28, 2001, 00:08 |
Re: UDF : boundary condition ID
|
#3 |
Guest
Posts: n/a
|
Another thing that's useful is to use:
thread = Lookup_Thread(domain,thread_id) which returns the thread given a thread_id. define extern Domain *domain in your code. Check out the threads.h header file for further definitions.... Greg |
|
June 28, 2001, 06:07 |
Re: UDF : boundary condition ID
|
#4 |
Guest
Posts: n/a
|
Thanks for your help, Lanre. The problem is that the line "thread = Lookup_Thread(domain,thread_id)" provides the pointer to the thread, but not the thread name. I need to get the string which contains the name of the thread. And I can't find it, either in thread.h nor thread_tools.h.
|
|
June 28, 2001, 10:52 |
Re: UDF : boundary condition ID
|
#5 |
Guest
Posts: n/a
|
As far as I know, you cannot get the thread name through the UDF (read:solver) as this is something that Cortex (read:interface) associates with the thread-id. Talk to Fluent directly.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
mixed inflow/outflow downstream boundary condition question | peob | OpenFOAM Running, Solving & CFD | 3 | February 3, 2017 11:54 |
Resolved: Changing boundary condition with UDF according to pressure outlet boundary | alpemre | Fluent UDF and Scheme Programming | 12 | February 24, 2014 11:18 |
UDF for inhomogenous Neumann boundary condition | akhilesh | Fluent UDF and Scheme Programming | 3 | December 24, 2012 12:14 |
Boundary Condition Types Using Scheme and UDF | Nasir | FLUENT | 0 | September 15, 2008 22:54 |
UDF for the boundary condition | Sridhar | FLUENT | 3 | July 13, 2001 20:18 |