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 |
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
|
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 |
Re: In UDF, how to judge the type of boundary?
in the "src" folder. Luca
|
Re: In UDF, how to judge the type of boundary?
Sorry the thread.h file! not thread.c. Luca
|
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. |