CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 3, 2012, 07:56
Default time dont effect in heat source in udf
  #1
New Member
 
reezaa
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) 
    {
        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)
 }
weldman is offline   Reply With Quote

Reply

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 24 August 23, 2015 22:41
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 10:57
Extrusion with OpenFoam problem No. Iterations 0 Lord Kelvin OpenFOAM 6 April 12, 2011 11:24
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 06:09.