|
[Sponsors] |
October 7, 2010, 17:55 |
Time-Varying Temperature Profiles
|
#1 |
New Member
Steve
Join Date: Oct 2010
Posts: 1
Rep Power: 0 |
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 |
|
October 14, 2010, 17:33 |
|
#2 |
Member
NormalVector
Join Date: Oct 2010
Posts: 71
Rep Power: 16 |
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? |
|
October 16, 2010, 11:24 |
|
#3 |
New Member
omair
Join Date: Oct 2010
Posts: 2
Rep Power: 0 |
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) } |
|
October 17, 2010, 15:36 |
|
#4 |
Member
NormalVector
Join Date: Oct 2010
Posts: 71
Rep Power: 16 |
Thanks for the code! If you just want a boundary condition as a function of time only, just leave out the spacial coordinates?
|
|
Tags |
free stream temperature, temperature profile, time-varying, unsteady, wall boundary conditions |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM] plot temperature vs time in paraview - chtMultiRegionFoam | phsieh2005 | ParaView | 2 | March 16, 2014 07:50 |
directMapped problem | panda60 | OpenFOAM Bugs | 4 | July 8, 2010 11:23 |
calculation diverge after continue to run | zhajingjing | OpenFOAM | 0 | April 28, 2010 05:35 |
IcoFoam parallel woes | msrinath80 | OpenFOAM Running, Solving & CFD | 9 | July 22, 2007 03:58 |
Time Varying Boundary Conditon | ashish | CFX | 3 | February 15, 2005 07:21 |