|
[Sponsors] |
January 18, 2005, 00:13 |
In UDF, how to judge the type of boundary?
|
#1 |
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 |
|
January 18, 2005, 04:48 |
Re: In UDF, how to judge the type of boundary?
|
#2 |
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
|
|
January 18, 2005, 06:08 |
Re: In UDF, how to judge the type of boundary?
|
#3 |
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 |
|
January 18, 2005, 06:26 |
Re: In UDF, how to judge the type of boundary?
|
#4 |
Guest
Posts: n/a
|
in the "src" folder. Luca
|
|
January 18, 2005, 06:27 |
Re: In UDF, how to judge the type of boundary?
|
#5 |
Guest
Posts: n/a
|
Sorry the thread.h file! not thread.c. Luca
|
|
January 18, 2005, 09:50 |
Re: In UDF, how to judge the type of boundary?
|
#6 |
Guest
Posts: n/a
|
Luca, Thanks a lots again!!!
|
|
|
|
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 |