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

First UDF with temperature

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   April 7, 2012, 17:28
Default First UDF with temperature
  #1
Member
 
Robert
Join Date: Mar 2011
Location: Warsaw
Posts: 62
Rep Power: 6
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 11:40.
Kwiaci is offline   Reply With Quote

Reply

Tags
heat flux, profile, udf

Thread Tools
Display Modes

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 On
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 12:44
UDF or any approach for Bulk Temperature calculation vemps FLUENT 0 May 1, 2009 01:09
UDF reading the temperature gradient Fabian FLUENT 1 May 29, 2003 20:18
udf for repatching a temperature in a volume McGregor FLUENT 4 April 10, 2003 04:28


All times are GMT -4. The time now is 13:30.