CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

UDF For Wall Temperature

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 16, 2017, 09:31
Smile UDF For Wall Temperature
  #1
New Member
 
Heng Kok Nguan
Join Date: Dec 2016
Posts: 4
Rep Power: 9
heng94 is on a distinguished road
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)
}
heng94 is offline   Reply With Quote

Reply

Tags
fluent - udf, temperature gradient, udf


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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 04:01
whats the cause of error? immortality OpenFOAM Running, Solving & CFD 13 March 24, 2021 07:15
UDF temperature profile asal Fluent UDF and Scheme Programming 67 August 7, 2018 12:41
UDF slip and temperature jump from IFRT abir Fluent UDF and Scheme Programming 1 July 30, 2012 05:44
UDF or any approach for Bulk Temperature calculation vemps FLUENT 0 May 1, 2009 01:09


All times are GMT -4. The time now is 08:32.