CFD Online Logo CFD Online URL
Home > Forums > Fluent UDF and Scheme Programming

time dont effect in heat source in udf

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

LinkBack Thread Tools Display Modes
Old   December 3, 2012, 07:56
Default time dont effect in heat source in udf
New Member
Join Date: Dec 2012
Posts: 1
Rep Power: 0
weldman is on a distinguished road
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) 
        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)
weldman is offline   Reply With Quote


Thread Tools
Display Modes

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
groovyBC in openFOAM-2.0 for parabolic velocity bc ofslcm OpenFOAM Pre-Processing 25 March 6, 2017 11:03
Extrusion with OpenFoam problem No. Iterations 0 Lord Kelvin OpenFOAM Running, Solving & CFD 8 March 28, 2016 11:08
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 10:57
UDF for Heat Exchanger model francois louw FLUENT 2 July 16, 2010 02:21
udf with moving heat source Ryan FLUENT 0 April 10, 2003 19:13

All times are GMT -4. The time now is 05:56.