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

impose temperature udf

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 24, 2013, 05:16
Default impose temperature udf
  #1
Member
 
rayan
Join Date: Jun 2013
Posts: 65
Rep Power: 13
rayan24 is on a distinguished road
Hi,

I want to impose a different temperature a different time, i want to impose 700K between t=0 and t=10s and T=400 K between t=10s and t=50s, can you see this udf and suggest me a correction, please?

Code:
#include "udf.h"
DEFINE_PROFILE(inlet_temperature,t,i)

{
real x[ND_ND];
real r;
face_t f;
real dt=CURRENT_TIME;
begin_f_loop(f,t)
{
F_CENTROID(x,f,t);

if ( dt <= 10)
F_PROFILE(f,t,i) =700;
}

if (10 < dt <= 50)

    F_PROFILE(f,t,i) =400;
end_f_loop(f,t)
}
rayan24 is offline   Reply With Quote

Reply


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 boundaries Condition sylvix48 Fluent UDF and Scheme Programming 3 July 20, 2012 13:26
UDF for heat convection coefficient with fixed surface temperature Boo85 Fluent UDF and Scheme Programming 2 July 10, 2012 19:43
Please Help! Temperature profile UDF for 3D geometry subhankar_bhandari FLUENT 2 April 16, 2011 06:30
how to write a 3D linear temperature of UDF venus FLUENT 1 October 28, 2008 03:46
ho to input a computed temperature value in a UDF mcb FLUENT 0 March 7, 2007 07:06


All times are GMT -4. The time now is 14:39.