|
[Sponsors] |
April 7, 2012, 18:28 |
First UDF with temperature
|
#1 |
Member
Robert
Join Date: Mar 2011
Location: Warsaw
Posts: 62
Rep Power: 15 |
Hello everyone!
I try to write an UDF which will be defining a temperature or heat flux profile on the front wall of my model. It would be ideally to use example UDF from manual wit necessary changes. I tried to do it on my own but nothing happens. Can you help me to change it? I know that I have to change "inlet_x_velocity" (name) for sth different and how to add additional conditions (convection etc.)? #include "udf.h" DEFINE_PROFILE(inlet_x_velocity, thread, index) { real x[ND_ND]; real y; face_t f; begin_f_loop(f, thread) { F_CENTROID(x,f,thread); y = x[1]; F_PROFILE(f, thread, index) = 20. - y*y*20.; } end_f_loop(f, thread) } Last edited by Kwiaci; April 9, 2012 at 12:40. |
|
Tags |
heat flux, profile, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF temperature profile | NeoGamaes | Fluent UDF and Scheme Programming | 5 | January 16, 2012 04:10 |
UDF for linear temperature profile across the hemispherical surface | tshv247 | Fluent UDF and Scheme Programming | 1 | October 3, 2011 13:44 |
UDF or any approach for Bulk Temperature calculation | vemps | FLUENT | 0 | May 1, 2009 02:09 |
UDF reading the temperature gradient | Fabian | FLUENT | 1 | May 29, 2003 21:18 |
udf for repatching a temperature in a volume | McGregor | FLUENT | 4 | April 10, 2003 05:28 |