|
[Sponsors] |
February 24, 2005, 07:24 |
Double sides wall?
|
#1 |
Guest
Posts: n/a
|
Hi, all
What is the Thread in Fluent for DSW? It is a boundary or interior face? I need some info about these for UDF? Thanks |
|
February 24, 2005, 08:36 |
Re: Double sides wall?
|
#2 |
Guest
Posts: n/a
|
You can verify doing a loop over all boundary threads and check the tread id.
thread_loop_f(tf,domain) /*loop over all face's threads in a domain*/ { if(BOUNDARY_FACE_THREAD_P(tf)) /*check if is a boundary thread*/ printf("\n %d \n",(tf)->id); } |
|
February 25, 2005, 02:30 |
Re: Double sides wall?
|
#3 |
Guest
Posts: n/a
|
Thank you, Doru Grosan
your acessment is right, I believe.There two domain in my case(a solid one and fluid one).The double side wall exits. Whether the C0 and C1 cell of the DSW exist? If I add a energy source in the fliud zone, how can I do these? Thanks to anyone who can help |
|
February 25, 2005, 04:21 |
Re: Double sides wall?
|
#4 |
Guest
Posts: n/a
|
If a side of the wall is a boundary then c0 will be the cell inside the domain and c1 will be -1. This should be valid for the solid domain (the adjacent boundary to the solid) and also for the fluid domain (the adjacent boundary of the fluid).
To add a source term for fluid, in the boundary condition panel you have to chose the fluid zone and set the source (see Fluent manual pp. 6-88 and pp. 6-186). |
|
February 25, 2005, 21:05 |
Re: Double sides wall?
|
#5 |
Guest
Posts: n/a
|
Thank you!
|
|
February 26, 2005, 01:17 |
Re: Double sides wall?
|
#6 |
Guest
Posts: n/a
|
whether (th)->id can be used in UDF? I want to choose one boundary face which I already know its ID.(use a loop over all boundary faces)
|
|
February 27, 2005, 05:42 |
Re: Double sides wall?
|
#7 |
Guest
Posts: n/a
|
When you are looping over threads you can find the id of the thread using (thread)->id. When you know the id of the boundary you have this possibility:
int wall=3; /*3 is the id of the boundary*/ Thread *t_wall=Lookup_Thread(domain,wall); /*find the pointer to the thread*/ begin_f_loop(f,t_wall) { .... } end_f_loop(f,t_wall); /*loop over thread faces*/ see UDF Manual page 6-16. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Continuing User Defined Real Gas Model issues | aeroman | FLUENT | 6 | April 8, 2016 03:34 |
Parallel User Defined Real Gas Model | aeroman | FLUENT | 4 | July 1, 2015 06:09 |
natural convection | mehrdadeng | CFX | 10 | February 25, 2011 05:25 |
AMG versus ICCG | msrinath80 | OpenFOAM Running, Solving & CFD | 2 | November 7, 2006 15:15 |
Quick Question - Wall Function | D.Tandra | Main CFD Forum | 2 | March 16, 2004 04:29 |