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

Transient Temperature Profile

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

Like Tree4Likes
  • 4 Post By alven299

Reply
 
LinkBack Thread Tools Display Modes
Old   April 18, 2011, 02:21
Default Transient Temperature Profile
  #1
New Member
 
alven
Join Date: Mar 2009
Location: Malaysia
Posts: 25
Blog Entries: 1
Rep Power: 8
alven299 is on a distinguished road
Dear all,

I wish to impose a transient temperature profile to my inlet boundary condition. I have liquid entering a system at 300K and after 40s, I would like the liquid to enter at 340K, in brief:

when 0<t<40s, T=300K
when t>=40s, T=340K

I know that this is manageable by using UDF, but since I'm very new to UDF and to C programming language, I'd appreciate if anybody could provide me with a sample code to define the said profile.

many thanks.
alven299 is offline   Reply With Quote

Old   April 18, 2011, 22:18
Default
  #2
New Member
 
alven
Join Date: Mar 2009
Location: Malaysia
Posts: 25
Blog Entries: 1
Rep Power: 8
alven299 is on a distinguished road
Have figured it out. Here is the script, hope it might be of help to others:

#include "udf.h"

DEFINE_PROFILE(inlet_temperature,t,i)
{
real x[ND_ND];
real time;
face_t f;

begin_f_loop(f,t)
{
F_CENTROID(x,f,t);
time=CURRENT_TIME;
if(time<40)
F_PROFILE(f,t,i)=300;

else

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

Old   February 23, 2015, 06:33
Default Thank you.
  #3
Member
 
Baradwaj B S
Join Date: Jan 2015
Posts: 70
Rep Power: 2
Bharadwaj B S is on a distinguished road
Hi Alven,

Thanks a lot for your UDF. This will help me for sure.
Bharadwaj B S is offline   Reply With Quote

Old   August 26, 2015, 07:25
Default
  #4
New Member
 
Batuhan Savaskan
Join Date: Aug 2015
Posts: 4
Rep Power: 2
Batuhan is on a distinguished road
Hello Everyone;

I am using fluent and I have transient experimental temperature data for a surface in excel format. I want to import them to fluent and run. How can I do that? Is there anyone who has the code of this. The code that is written above is a good example but I have 45820 temperature datas and these datas are changing in 1 s . So I have to read the file directly and than run it . Could you help me ?

Thank you very much.
Batuhan is offline   Reply With Quote

Reply

Tags
temperature profile, udf profile bounday, unsteady

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 for a horizontal temperature profile CD Fluent UDF and Scheme Programming 7 December 15, 2013 17:07
set temperature on subdomain, in transient mode nicolas CFX 0 August 16, 2006 06:42
stationary flow - transient temperature Nicola CD-adapco 5 June 16, 2003 05:44
Parabolic temperature Inlet Profile in a tube majestywzh FLUENT 0 April 9, 2003 06:37
temperature profile on boundary sivakumar FLUENT 5 November 24, 2002 01:58


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