CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

time dont effect in heat source in udf

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread 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


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


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


All times are GMT -4. The time now is 20:27.