CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   In UDF, how to judge the type of boundary? (https://www.cfd-online.com/Forums/fluent/35487-udf-how-judge-type-boundary.html)

scubme January 17, 2005 23:13

In UDF, how to judge the type of boundary?
 
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


Luca January 18, 2005 03:48

Re: In UDF, how to judge the type of boundary?
 
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

scubme January 18, 2005 05:08

Re: In UDF, how to judge the type of boundary?
 
Hi Luca

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

With regards

Luca January 18, 2005 05:26

Re: In UDF, how to judge the type of boundary?
 
in the "src" folder. Luca

Luca January 18, 2005 05:27

Re: In UDF, how to judge the type of boundary?
 
Sorry the thread.h file! not thread.c. Luca

scubme January 18, 2005 08:50

Re: In UDF, how to judge the type of boundary?
 
Luca, Thanks a lots again!!!


All times are GMT -4. The time now is 00:29.