CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Main CFD Forum

USD for heat flux BC

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 12, 2009, 09:24
Default USD for heat flux BC
  #1
shannag
Guest
 
Posts: n/a
Dear Fluent User, Could you please help me to write a UDF for the following boundary condition: Heat flux at some wall= aT^2 where T is temperature and a is constant. Many thanks
  Reply With Quote

Old   March 16, 2009, 10:42
Default
  #2
New Member
 
Mavis Milton
Join Date: Mar 2009
Posts: 10
Rep Power: 7
milton.tafadzwa is on a distinguished road
You can try this. My computer does not have both c and fluent software so did not test it.
#include "udf.h"
#define A (value of a)
DEFINE_PROFILE(heat_flux, c, t)
{
cell_t c;
real x[ND_ND];
real T = C_T(c, t);

begin_c_loop (c,t)
{
C_CENTROID(x,c,t);
y =x[1];
F_PROFILE(c,t,i) =A*T*T;
}
end_c_loop (c,t)
}
milton.tafadzwa 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
Wind turbine simulation Saturn CFX 34 October 16, 2014 05:27
Problem setting with chtmultiregionFoam Antonin OpenFOAM 10 April 24, 2012 09:50
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 04:05
Definition of Mass flux F1 Gavin CD-adapco 1 April 17, 2006 17:51
Replace periodic by inlet-outlet pair lego CFX 3 November 5, 2002 20:09


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