|
[Sponsors] |
October 8, 2009, 12:48 |
UDF for wall temperature
|
#1 |
New Member
Sakthivale Roshan Dhaneswar
Join Date: Oct 2009
Posts: 2
Rep Power: 0 |
Hello, I am new to using UDFs on fluent and am finding it quite hard. I need to specify a wall (vertical walls) temperature boundary condition : T(x) = 800*X/0.2 where X (m) is the distance of the point from the top of the geometry (rectangular) which is totally 50 cm long. The origin of the geometry is at the bottom.
This is the code I have written so far: #include "udf.h" DEFINE_PROFILE(wall_temp, thread, position) { real x[ND_ND]; /* this will hold the position vector */ real y; cell_t f; begin_f_loop(f,thread) { F_CENTROID(x, f, thread); y = x[1]; F_T(f,thread,position) = (800.*(50.-y))/20; } end_f_loop(f, thread) } When I interpret the udf and run my calculation on fluent, I do not get the result I expect and instead I get a contant temperature of 2000 K. I also get an 'nmake' error during compilation. Is compilation necessary ? Thanks in advance. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF for a horizontal temperature profile | CD | Fluent UDF and Scheme Programming | 9 | May 6, 2018 12:13 |
UDF or any approach for Bulk Temperature calculation | vemps | FLUENT | 0 | May 1, 2009 01:09 |
UDF velocity and temperature | Raj | FLUENT | 3 | February 1, 2009 18:29 |
Access Granular Temperature in UDF | Gavin | FLUENT | 5 | July 22, 2005 11:06 |
UDF: Repatching part temperature | Mcgregor | FLUENT | 1 | June 2, 2003 08:51 |