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

In UDF, how to judge the type of boundary?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 18, 2005, 00:13
Default In UDF, how to judge the type of boundary?
  #1
scubme
Guest
 
Posts: n/a
Hi everyone

My problem is unsteady and the model have four boundaries: one Pressure-inlet, two Pressure-outlets and one Wall. Now I want to calculate the mass flux of pressure-inlet and pressure-outlet in every time-step, and write the flux into a txt file. In UDF, I can judge if a face is a boundary face, but don't know how to judge which boundary the face is belong to. Please someone give me any advices.

Thanks in advance.

With regards

  Reply With Quote

Old   January 18, 2005, 04:48
Default Re: In UDF, how to judge the type of boundary?
  #2
Luca
Guest
 
Posts: n/a
There's a macro you can use: THREAD_TYPE(Thread *tf) It gives you a int(type)code that identifies the type of your thread. Look at the thread.c file to see the list of the types. For example a wall thread is identified by the number 3. Luca
  Reply With Quote

Old   January 18, 2005, 06:08
Default Re: In UDF, how to judge the type of boundary?
  #3
scubme
Guest
 
Posts: n/a
Hi Luca

Thanks for your reply. However, where is the file thread.c? I amnot find it from the directory of fluent.

With regards
  Reply With Quote

Old   January 18, 2005, 06:26
Default Re: In UDF, how to judge the type of boundary?
  #4
Luca
Guest
 
Posts: n/a
in the "src" folder. Luca
  Reply With Quote

Old   January 18, 2005, 06:27
Default Re: In UDF, how to judge the type of boundary?
  #5
Luca
Guest
 
Posts: n/a
Sorry the thread.h file! not thread.c. Luca
  Reply With Quote

Old   January 18, 2005, 09:50
Default Re: In UDF, how to judge the type of boundary?
  #6
scubme
Guest
 
Posts: n/a
Luca, Thanks a lots again!!!
  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
Instable natural convection case Peter88 OpenFOAM 5 August 18, 2011 02:23
CFX does not continue Shafiul CFX 10 February 17, 2011 08:57
[Other] StarToFoam error Kart OpenFOAM Meshing & Mesh Conversion 1 February 4, 2010 05:38
CFX doesn't continue calculation... mactech001 CFX 6 November 15, 2009 22:25
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 05:15


All times are GMT -4. The time now is 16:17.