# Temperature Functions for walls

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

 January 17, 2004, 17:37 Temperature Functions for walls #1 Optixxx Guest   Posts: n/a Sponsored Links ************************************************** * I want to set for a wall a time-dependent temperature 1. 0-10 min temp is increasing linear from 300 to 400k 2. after 10 min to 60min temp is constant 400k Sure that must be done with unsteady time steps lets say a time step has 0.5 sec Sorry,i´m learning UDF atm and not familiar with it atm. with my small programming knowledge if t<= 1200 T=T+0,0833333 else T=400 end if 10min=1200 timesteps and 0,08333= 100/1200 can someone help me..setting a profile or UDF for it? would be happy about any help Optixxx

 January 18, 2004, 21:21 Re: Temperature Functions for walls #2 TAMO2 Guest   Posts: n/a You don't need time step. And time scale is "second". Please use the file as below; cut and paste, and name as "it.c", and read Define/User-Defined/Functions/Interpreted and write in "Source File Name" as "it.c" and Define/Boundary Conditions/ If you are Fluent User, after explanation will not be necessary. /* -------increasing temperature file--------- */ #include "udf.h" /* temperatu define */ DEFINE_PROFILE(temperature_profile,thread,position ) { face_t f; begin_f_loop(f,thread) { real t = RP_Get_Real("flow-time"); if ( t < 600.0 ) F_PROFILE(f,thread,position) = 300.0+0.16666667 * t; else if ( t < 3600.0 ) F_PROFILE(f,thread,position) = 400.0; else F_PROFILE(f,thread,position) = 400.0; } end_f_loop(f,thread) }

 January 19, 2004, 07:11 Re: Temperature Functions for walls #3 Optixxx Guest   Posts: n/a ************************************************ Wonderbra It works without any errors...many Thx TAMO2 Tested it on the surface intergal result-panel Greetz Optixxx

 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 cboss OpenFOAM 10 March 5, 2015 07:57 Mihail CFX 7 September 7, 2014 06:27 Attesz CFX 7 January 5, 2013 04:32 NPU_conanxie FLUENT 0 March 30, 2011 05:56 Peter FLUENT 5 January 26, 2009 19:04