|
[Sponsors] |
March 16, 2017, 10:31 |
UDF For Wall Temperature
|
#1 |
New Member
Heng Kok Nguan
Join Date: Dec 2016
Posts: 4
Rep Power: 9 |
Hello all. I am new to UDF on fluent. I need to specify a wall (z direction) temperature boundary condition: T(z) = 10.+(30.*(y/1000)) where 30°C/km. Where y (m) is the distance of the point from the top of the geometry which is 3.4km long.
The code i have so far is as below. When i try change real y to z, error occurs. Can someone help me with the UDF coding? Thank you very much #include "udf.h" DEFINE_PROFILE(wall_temp,thread,index) { real x[ND_ND]; real y; face_t f; begin_f_loop(f,thread) in the DEFINE macro argument */ { F_CENTROID(x,f,thread); y = x[1]; F_PROFILE(f,thread,index) = 10.+(30.*(y/1000); } end_f_loop(f,thread) } |
|
Tags |
fluent - udf, temperature gradient, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF for Temperature Dependent Energy Source | er.mkumar | Fluent UDF and Scheme Programming | 9 | March 14, 2024 05:01 |
whats the cause of error? | immortality | OpenFOAM Running, Solving & CFD | 13 | March 24, 2021 08:15 |
UDF temperature profile | asal | Fluent UDF and Scheme Programming | 67 | August 7, 2018 13:41 |
UDF slip and temperature jump from IFRT | abir | Fluent UDF and Scheme Programming | 1 | July 30, 2012 06:44 |
UDF or any approach for Bulk Temperature calculation | vemps | FLUENT | 0 | May 1, 2009 02:09 |