# Time-Varying Temperature Profiles

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

 October 14, 2010, 16:33 #2 Member     NormalVector Join Date: Oct 2010 Posts: 72 Rep Power: 6 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, 10: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, 14:36 #4 Member     NormalVector Join Date: Oct 2010 Posts: 72 Rep Power: 6 Thanks for the code! If you just want a boundary condition as a function of time only, just leave out the spacial coordinates?

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post phsieh2005 OpenFOAM Paraview & paraFoam 2 March 16, 2014 07:50 panda60 OpenFOAM Bugs 4 July 8, 2010 10:23 zhajingjing OpenFOAM 0 April 28, 2010 04:35 msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 02:58 ashish CFX 3 February 15, 2005 07:21

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