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

modelling heat flux in udf

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 24, 2010, 06:10
Default modelling heat flux in udf
  #1
New Member
 
Rafał Kryjak
Join Date: Jul 2010
Posts: 11
Rep Power: 16
dzuodoka is on a distinguished road
I have problem with defining moving heat flux in udf. Heat flux is limited by circle and rest of the face transfering heat by convection.

I tried many times to modify this code but I even wasn't able to have stable heat flux circle on a face with desired parameters.

Mesh geometry is a cube.

I'll be really gratefull to anyone who help me with this code.

Code:
#include "udf.h"

DEFINE_PROFILE(laser,thread,i)

{
  real q = 1000;
  real t = CURRENT_TIME;
  real x[ND_ND]; 
  real qO;
  real xO = 5;
  real xOt;
  real z = 0;     
  real v = 0.003;
  real r = 0.001; 
  real alfa = 20;
  real TO = 290; 
  real Tp = 280; 
  face_t f;
  
  xOt = xO + v*t; 
  qO = alfa*(TO-Tp);  


 
  

      begin_f_loop(f,thread)
{
  
       F_CENTROID(x,f,thread);
        
       if ( ((x[0]-xOt)*(x[0]-xOt) + (x[1]-z)*(x[1]-z) ) <= r*r )
    
       F_PROFILE(f,thread,i) = q;

       else  

       F_PROFILE(f,thread,i) = qO;
}
       end_f_loop(f,thread)

}
dzuodoka 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
Wall Heat Flux & Temperature Greg Perkins FLUENT 10 November 20, 2015 10:32
Variable name for heat flux peterle CFX 4 February 13, 2014 03:21
Heat Flux Wall Boundary Confusion. Joee FLUENT 1 August 21, 2010 13:20
Heterogeneous heat flux Kev STAR-CD 4 July 7, 2009 05:48
Wall Heat Flux not a listed variable mike CFX 8 February 5, 2009 14:32


All times are GMT -4. The time now is 03:43.