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

Time-Varying Temperature Profiles

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 7, 2010, 16:55
Talking Time-Varying Temperature Profiles
  #1
New Member
 
Steve
Join Date: Oct 2010
Posts: 1
Rep Power: 0
shepardsp is on a distinguished road
Hi,

Is there a way to enter time-varying profiles for external wall boundary conditions in Fluent? Specifically, I would like to vary the free stream temperature and external radation temperature as functions of time for an unsteady flow calculation. Reading through the documentation on profiles, it sounds like you can specify spacial profiles but I have not found any literature on time-varying profiles. I attempted to read in a profile but it gave me errors, and the help documentation is limited. It's not clear what variable names to assign to the free stream temperature and radiation temperature, and it also gives me an error saying the number of points entered don't match the number specified at the top (I believe this is because you need to enter x/y coords for the 'point' option, but I want time varying, not spacial varying).

There is a drop-down menu under the wall boundary conditions window for each of the free stream temperature and external radiation temperature profiles, but each is set to constant and there are no other options. However since there are drop-down arrows, this leads me to believe that there is a way to read in a time-varying profile, unless this is just there for reading in spacial-varying profiles.

Thanks for the help!
Steve
shepardsp is offline   Reply With Quote

Old   October 14, 2010, 16:33
Default
  #2
Member
 
NormalVector's Avatar
 
NormalVector
Join Date: Oct 2010
Posts: 72
Rep Power: 6
NormalVector is on a distinguished road
Are you familiar with the tutorial for Fluent V6? One of the tutorials uses a time varying pressure boundary condition. I am also trying to tackle similar problem: heat transfer with a time dependent boundary condition. I'm trying to decipher the UDF that goes with the tutorial but I don't know C. = /

Anyone else have ideas?
NormalVector is offline   Reply With Quote

Old   October 16, 2010, 10:24
Default
  #3
New Member
 
omair
Join Date: Oct 2010
Posts: 2
Rep Power: 0
omair11 is on a distinguished road
You need to know a little bit of C to use this.
Just copy and paste the given udf code in a text file and save it with a .c extension. in this file x1[0] is the x coordinate, x1[1] is the y coordinate and if your case is 3d, x1[2] is z coordinate. tima is the time.

just enter a mathematical expression for your profile and vala! time varying profiles.

==========================================
#include "udf.h"
DEFINE_PROFILE(profilename, thread, nv)
{
face_t f;
real x1[ND_ND];
real tima;
begin_f_loop (f,thread)
{

F_CENTROID(x1,f,thread);
tima=CURRENT_TIME;
F_PROFILE(f,thread,nv) =!!!!--enter expression here as a function of space and time------!!!!!
}
end_f_loop (f,thread)

}
omair11 is offline   Reply With Quote

Old   October 17, 2010, 14:36
Default
  #4
Member
 
NormalVector's Avatar
 
NormalVector
Join Date: Oct 2010
Posts: 72
Rep Power: 6
NormalVector is on a distinguished road
Thanks for the code! If you just want a boundary condition as a function of time only, just leave out the spacial coordinates?
NormalVector is offline   Reply With Quote

Reply

Tags
free stream temperature, temperature profile, time-varying, unsteady, wall boundary conditions

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
plot temperature vs time in paraview - chtMultiRegionFoam phsieh2005 OpenFOAM Paraview & paraFoam 2 March 16, 2014 07:50
directMapped problem panda60 OpenFOAM Bugs 4 July 8, 2010 10:23
calculation diverge after continue to run zhajingjing OpenFOAM 0 April 28, 2010 04:35
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 02:58
Time Varying Boundary Conditon ashish CFX 3 February 15, 2005 07:21


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