CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   time dont effect in heat source in udf (https://www.cfd-online.com/Forums/fluent-udf/110067-time-dont-effect-heat-source-udf.html)

weldman December 3, 2012 07:56

time dont effect in heat source in udf
 
hi.i am writting below udf.i want that place of heat source in my code changing with time.but dont change.....please help me.....

HTML Code:

/**************************************************************************/
/* UDF for specifying a sinusoidal temperature profile boundary condition */
/**************************************************************************/

# include "udf.h"

# define A 113795786.3

# define B 333333.33
# define v 0.003
DEFINE_PROFILE(Heato,thread, position)
{
    real x[ND_ND]; /* this will hold the position vector */
  real r;
  real z;
  real current_time;
  face_t f;
    begin_f_loop(f, thread)
    {
        F_CENTROID(x,f,thread);
    z=current_time;
        r = (x[0]-0.03-v*z)*(x[0]-0.03-v*z)+(x[1]-0.05)*(x[1]-0.05);
        F_PROFILE(f, thread, position) = A*exp(-B*r);
       
      }
    end_f_loop(f, thread)
 }



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