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

help me

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 28, 2012, 12:11
Default help me
  #1
New Member
 
KAKI
Join Date: Aug 2011
Posts: 17
Rep Power: 14
lopital03000 is on a distinguished road
hello, I want to simulate the heat transfer by convection in a cavity, the cavity subjected to a heat flux in terms of (y), q = 1-(y/0.04)*(y/0.04),
i want the udf of heat flux.
thanks....
lopital03000 is offline   Reply With Quote

Old   November 28, 2012, 12:30
Default
  #2
Senior Member
 
ghost82's Avatar
 
Rick
Join Date: Oct 2010
Posts: 1,016
Rep Power: 26
ghost82 will become famous soon enough
Quote:
Originally Posted by lopital03000 View Post
hello, I want to simulate the heat transfer by convection in a cavity, the cavity subjected to a heat flux in terms of (y), q = 1-(y/0.04)*(y/0.04),
i want the udf of heat flux.
thanks....
Try this:

Code:
#include "udf.h"
     
/* profile for heat flux*/
DEFINE_PROFILE(heatflux_profile, t, i)
{

  real x[ND_ND];   /* this will hold the position vector */
  face_t f;
     
  begin_f_loop(f, t)
  {
    F_CENTROID(x, f,t);
    F_PROFILE(f, t, i) =1.-(x[1]/0.04)*(x[1]/0.04);
  }
  end_f_loop(f, t)
}
ghost82 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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



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