# Heat generation is depend on x value and time.

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

 September 5, 2010, 13:17 Heat generation is depend on x value and time. #1 New Member   Omur Join Date: Mar 2010 Posts: 4 Rep Power: 8 Hi, Heat generation is depend on x value and time in my simulation. How to add x variation below code? #include "udf.h" DEFINE_SOURCE(heat_gen_time,cell,thread,dS,eqn) { real source; real time; time = CURRENT_TIME; source = 86.44*pow(time,-.3); dS[eqn] = -25.932*pow(time,-1.3); return source; }

 September 20, 2010, 07:08 how i can solve this error in fluent heat vulometric source #2 New Member   behzad Join Date: Sep 2010 Posts: 3 Rep Power: 8 #include "udf.h" #include "defines.h" #define Q 20000000 #define H 5// flame hight above floor #define D .5//cell size #define DX D #define DY D #define DZ D DEFINE_SOURCE(heat_source, c, t, dS, eqn) { real x[ND_ND]; real V=DX*DY*DZ; C_CENTROID(x,c,t); if (fabs(x[0])

 October 26, 2010, 15:46 #3 New Member   Omur Join Date: Mar 2010 Posts: 4 Rep Power: 8 Hi, Heat generation is depend on x value in my simulation. What is problem in my udf? #include "udf.h" #define pi 3.141592653589793238462643383279502884197169399375 10 DEFINE_SOURCE(heat_gen_x,cell,thread,dS,eqn) { real source; real x [ND_ND]; real a; face_t f; begin_f_loop(f,thread) { F_CENTROID(x, f, thread); a=x[0]; source = 6500000*1.2*cos(pi*(1.0267*((2*(a-1.189)/0.793)-1))); } end_f_loop(f,thread) }

 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

All times are GMT -4. The time now is 00:39.