CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

First UDF with temperature

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 7, 2012, 18:28
Default First UDF with temperature
  #1
Member
 
Robert
Join Date: Mar 2011
Location: Warsaw
Posts: 62
Rep Power: 15
Kwiaci is on a distinguished road
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.
Kwiaci is offline   Reply With Quote

Reply

Tags
heat flux, profile, 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 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


All times are GMT -4. The time now is 15:18.