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

UDF : boundary condition ID

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   June 27, 2001, 12:14
Default UDF : boundary condition ID
  #1
Flav
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 ?

  Reply With Quote

Old   June 27, 2001, 14:31
Default Re: UDF : boundary condition ID
  #2
Lanre
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

  Reply With Quote

Old   June 27, 2001, 23:08
Default Re: UDF : boundary condition ID
  #3
Greg Perkins
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
  Reply With Quote

Old   June 28, 2001, 05:07
Default Re: UDF : boundary condition ID
  #4
Flav
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.

  Reply With Quote

Old   June 28, 2001, 09:52
Default Re: UDF : boundary condition ID
  #5
Lanre
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.
  Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
mixed inflow/outflow downstream boundary condition question peob OpenFOAM Running, Solving & CFD 2 August 14, 2014 09:07
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 21:54
UDF for the boundary condition Sridhar FLUENT 3 July 13, 2001 19:18


All times are GMT -4. The time now is 08:24.