|
[Sponsors] |
April 13, 2011, 06:39 |
Profile temperature
|
#1 |
New Member
Chahinez
Join Date: Apr 2011
Posts: 4
Rep Power: 15 |
Hi everybody,
I have a square geometry with imposed heat flux (1000 w/m²) at north and south faces and velocity inlet (25m/s, 300K) and outflow at est and west. I want to use UDFs to define periodic phenomenon. Actually, for every iteration, I want to take velocity and temperature profiles at outflow and imposed them to velocity inlet. But i don't know how to read velocity and temperature profiles for being able to manipulated them. Thanks Last edited by chany; April 13, 2011 at 08:32. |
|
April 13, 2011, 07:06 |
|
#2 |
New Member
Ján
Join Date: Mar 2010
Location: Slovakia
Posts: 24
Rep Power: 16 |
I usually use this: /cell variables accessing for instance/
UDF for data access: DEFINE_PROFILE(my_profile, thread, index) { real x[ND_ND]; real y; cell_t c; int ID = ?; //outflow ID Thread *tf; Domain *domain; domain = Get_Domain(1); tf = Lookup_Thread(domain,ID); if (! Data_Valid_P()) return; begin_c_loop(c, thread) { F_CENTROID(x, c, thread); y = x[1]; C_U = C_T(c,tf); // example for "u" direction, check UDF manual F_PROFILE(c, thread, index) = ?; //setting outflow } end_c_loop(c,thread) } DEFINE_PROFILE(my_velocity, thread, index) //profile for velocity inlet { . . . |
|
April 13, 2011, 08:35 |
|
#3 |
New Member
Chahinez
Join Date: Apr 2011
Posts: 4
Rep Power: 15 |
Thanks a lot argeus, I'll try this method, hope that it will solve my problem!
|
|
April 13, 2011, 10:39 |
|
#4 |
New Member
Chahinez
Join Date: Apr 2011
Posts: 4
Rep Power: 15 |
Please, I want to let fluent do calculations without UDF, and after some iterations (100 iterations for example), fluent begins to use my UDF.
The program of "argeux" has wored very good for field velocity, but for temperature, I have some problems. |
|
April 14, 2011, 05:14 |
|
#5 |
New Member
Ján
Join Date: Mar 2010
Location: Slovakia
Posts: 24
Rep Power: 16 |
You can run the simulation without UDF, and the after a few iterations interpret UDF anyway, I guess. What kind of problems do you have with temperature? Using heat transfer you need to have a fine mesh on the walls. Use boundary layers.
|
|
Tags |
udf read profile |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Please Help! Temperature profile UDF for 3D geometry | subhankar_bhandari | FLUENT | 0 | August 16, 2010 09:40 |
Help please! UDF for Temperature profile in 3D | subhankar_bhandari | Fluent UDF and Scheme Programming | 2 | August 16, 2010 09:37 |
how to set temperature profile in atmospheric boundary layer | vickrenz | FLUENT | 0 | September 16, 2009 14:26 |
Temperature profile on an interface | Thomas Vanneste | FLUENT | 0 | February 9, 2009 10:06 |
temperature profile on boundary | sivakumar | FLUENT | 5 | November 24, 2002 01:58 |